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

  • STM32F10xxx-ADC-example
    一份stm32处理器上ADC应用编程的实际例子,附送一份详细pdf源代码说明,说明很清楚,参考价值很大(Stm32 a processor ADC practical examples of application programming, included a detailed pdf source code, note it is clear that a great reference value)
    2008-12-09 21:35:08下载
    积分:1
  • PGA2310
    PGA2310的stm32驱动程序,可以任意选择通道放大倍数(PGA2310 driver for stm32)
    2019-06-07 16:43:13下载
    积分:1
  • MPPT
    matlab MPPT仿真,定步长电导增量法,在matlab2011上验证可以使用(matlab mppt)
    2020-12-11 17:39:17下载
    积分:1
  • EEPROM-IIC
    使用51单片机实现EEPROM-IIC,代码简单方便(Using 51 single chip computer to realize EEPROM-IIC, the code is simple and convenient)
    2018-03-14 15:51:54下载
    积分:1
  • 用C#开发.NET CF 蓝牙通信模块,并涉及到驱动硬件的公共类部分
    用C#开发.NET CF 蓝牙通信模块,并涉及到驱动硬件的公共类部分-C# development.NET CF Bluetooth module, and relate to drive the hardware part of the public category
    2022-02-02 11:52:27下载
    积分:1
  • 人眼识别跟踪系统
    能对人眼人脸进行实时跟踪,并且能够对其进行选择性的跟踪(可以单独跟踪脸部,也可以单独跟踪眼部,也可以同时跟踪),而且可以用摄像头进行捕捉视频,有较好的可视化MFC界面。
    2023-08-11 18:20:10下载
    积分:1
  • guangyiyucesuanfa
    广义预测算法MATLAB转化为VC++的程序,可用于三容水箱的数据的采集.(generalized predictive algorithm MATLAB into VC procedures can be used for three-tank of data acquisition.)
    2007-06-15 10:22:46下载
    积分:1
  • Matlab-textbook
    初学者学习MATLAB的绝佳教程,全书英文,利于适应英文版本程序(MATLAB is a great tutorial for beginners to learn, the book in English, which will help to adapt to the English version of the program)
    2014-11-12 05:38:36下载
    积分:1
  • 56965425632165
    qt流程基本功能,可实现流程管理等,目前已经完成(qt process basic functions, process management can be achieved, has been completed)
    2014-02-24 14:47:28下载
    积分:1
  • 郝斌C语言详细笔记(附源码)
    郝斌C语言详细笔记(附源码),Hao Bin C Language Detailed Notes (with source code)(Hao Bin C Language Detailed Notes (with source code))
    2020-06-21 09:00:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载