sbitLed1=P2^2;sbitLed2=P2^3;voidCF_Port_Init();//----------------------------------------------------------------------------//Init_CF//----------------------------------------------------------------------------////ThisroutineinitializestheCompactFlashmemorycard////Parameters ://ReturnValue://----------------------------------------------------------------------------charInit_CF(){ xdatacharresult=Dtct_Card(); xdataunsignedintloop=0; xdataunsignedreinit=0; if(result==1)return(CF_NO_CARD);REINIT: CF_RST=1; while(++loop); -IMDN开发者社群-imdn.cn"> sbitLed1=P2^2;sbitLed2=P2^3;voidCF_Port_Init();//----------------------------------------------------------------------------//Init_CF//----------------------------------------------------------------------------////ThisroutineinitializestheCompactFlashmemorycard////Parameters ://ReturnValue://----------------------------------------------------------------------------charInit_CF(){ xdatacharresult=Dtct_Card(); xdataunsignedintloop=0; xdataunsignedreinit=0; if(result==1)return(CF_NO_CARD);REINIT: CF_RST=1; while(++loop);  - IMDN开发者社群-imdn.cn">
登录
首页 » c » C8051USB

C8051USB

于 2022-04-22 发布 文件大小:2.88 MB
0 57
下载积分: 2 下载次数: 1

代码说明:

这是一个基于C8051F340的SD读卡器 #include "F34x_MSD_Physical_Settings.h" #include "F34x_MSD_CF_Basic_Functions.h" #include sbit Led1 = P2^2; sbit Led2 = P2^3; void CF_Port_Init(); //---------------------------------------------------------------------------- // Init_CF //---------------------------------------------------------------------------- // // This routine initializes the Compact Flash memory card // // Parameters   : // Return Value : //---------------------------------------------------------------------------- char Init_CF() {   xdata char result = Dtct_Card();   xdata unsigned int loop = 0;   xdata unsigned reinit = 0;   if (result == 1) return (CF_NO_CARD); REINIT:   CF_RST = 1;   while(++loop);  

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • lab7-LCD
    说明:  dab单环控制,基于输出电压闭环和DSP28335,以及显示器(single closed loop controller of DAB)
    2019-07-10 12:55:45下载
    积分:1
  • opencv+zbar库进行条码解码
    使用opencv+zbar解码条码,opencv+zbar库进行条码解码
    2022-05-24 00:42:00下载
    积分:1
  • C#连接指纹机 实例源码下载
    C#连接指纹机 实例源码下载
    2014-05-29下载
    积分:1
  • MATLAB-7-GUIDE
    Matlab guide for fundamental research in communication
    2011-09-01 19:56:01下载
    积分:1
  • PS2mouse
    这个是ps2鼠标键盘的程序,基于单片机实现(This is the ps2 mouse and keyboard program, through MCU. Project files can be opened keil)
    2015-02-05 12:03:24下载
    积分:1
  • C++标准程序库
    c++标准程序库电子书,清晰实用,适合初学者学习(c++ standerd programing library)
    2017-11-18 10:29:10下载
    积分:1
  • RgnDemo
    使用CRgn对象得到某一特定区域,C++精选学习源码,很好的参考资料。(Use the CRgn object to get a specific area, select learning C++ source code, a good reference.)
    2013-11-27 07:44:29下载
    积分:1
  • zipf-random
    随机数生成程序,该随机数呈zipf分布,就是大家常说对于内容的访问遵循80/20原则,也就是20 的内容,会占有80 的访问量。(Random number generator, the zipf was distributed random numbers, that is, we often say that the access to the content to follow the 80/20 principle, which is 20 of the content will occupy 80 of visits.)
    2013-06-27 17:56:45下载
    积分:1
  • use-PCF8591-to-check-the-voltage
    利用PCF8591模数转换和外拓借口来用作电压测量(Use PCF8591 analog to digital conversion and the extension of the pretext for voltage measurement)
    2013-09-02 15:44:13下载
    积分:1
  • 774547
    ACM关于图论相关的知识,都是一些模板代码,对参加ACM竞赛非常有用的,()
    2018-07-07 07:31:43下载
    积分:1
  • 696518资源总数
  • 104321会员总数
  • 14今日下载