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 44
下载积分: 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 个回复

  • plmgj
    时间二阶空间八阶弹性波正演plm边界吸收(Eight-order elastic second-order space time wave absorption boundary forward plm)
    2010-07-27 00:09:38下载
    积分:1
  • student-manage
    用可视化MFC写的一个学生成绩管理系统,用Access数据库,里面可以查询多门课成绩,并根据条件选择学生,测试过,可用。(Visualization MFC write a student performance management system, with the Access database, which can query multiple course grades, and select students according to the conditions tested, can be used.)
    2012-11-01 17:19:19下载
    积分:1
  • STM32数字示波器电路原理图
    说明:  基于stm32的数字示波器,采用单片机内置的AD对输入信号进行采集。将采集到的信号使用LCD画点显示(The digital oscilloscope based on STM32 uses the built-in ad of MCU to collect the input signal. The collected signals are displayed by LCD dot drawing)
    2021-01-15 12:23:28下载
    积分:1
  • C# 聊天 ChatClient3源码(仅含服务器端)
    C# 聊天 ChatClient3源码(仅含服务器端)
    2015-04-17下载
    积分:1
  • 4xADP5110
    STM32 4路AD+5110显示 ( )
    2015-04-25 16:30:35下载
    积分:1
  • code
    信源编码,香农编码,实现了部分功能。希望大家积极改正。(Source coding, Shannon coding, to achieve some functionality. I hope you actively corrected.)
    2014-10-29 16:19:33下载
    积分:1
  • an-r18an0033ej0100-tps-1-profinet
    主控mcu与profinet进行SPI通讯的例子程序(An example program of SPI communication between master control MCU and PROFINET)
    2020-06-23 11:40:02下载
    积分:1
  • struct
    说明:  本程序用作pid控制,不过基于AVR硬件乘除法,移植性不高,本人是作者。(the procedures for pid control, but based on the hardware AVR calculation method, transplantation is not high, is the author.)
    2006-02-09 01:59:59下载
    积分:1
  • ddos
    非常强大的DDOS嘎嘎,速度下载把,版权帝们,(Very strong DDOS quack)
    2014-01-30 19:18:33下载
    积分:1
  • share
    一个很小和天线计算程序,我觉得非常实用,发上来与大家分享(A very small and antenna calculation program, I think it is very practical, sent to share with you)
    2019-03-30 19:00:31下载
    积分:1
  • 696518资源总数
  • 104224会员总数
  • 54今日下载