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

  • SDas-DemoProj
    ATL开发相关资源 控件开发(ATL Developer Resources Control Development)
    2010-03-11 18:21:16下载
    积分:1
  • poll-su
    Poll servey management system with documents
    2014-02-01 19:06:18下载
    积分:1
  • tcpfile
    说明:  server端与client端通过tcp协议进行传输(Server and client end are transmitted by TCP protocol)
    2020-06-16 20:40:02下载
    积分:1
  • BS83B08C_CTOUCH_V501__20180201__v3(1)
    说明:  冷风扇控制板程序开发,三挡触摸调档。完整程序。(Cold fan control board program development, three touch shift)
    2019-12-07 18:06:23下载
    积分:1
  • GenderRecognition
    从一段音频中识别说话人的性别。开发环境vs2005(To identify the audio from a speaker' s gender. Development Environment vs2005)
    2009-10-25 00:41:52下载
    积分:1
  • CCS编译的.c语言正弦信号发生器
    用CCS编译正弦信号发生器,使用的是.c语言,已在CCS中调试编译通过。正弦信号发生器是在电子电路设计、自动控制和仪表测量校正调试中应用很多的一种信号发生装置和信号源,属于数字信号发生器。而正弦信号是一种频率成分最为单一的常见信号源,任何复杂信号(例如声音信号)都可以通过傅里叶变换分解为许多频率不同、幅度不等的正弦信号的叠加,它的应用领域很广范。
    2023-02-13 10:05:04下载
    积分:1
  • DAC-OK
    STM32,DAC程序,频率和幅度(0~3.24V)可调(STM32, DAC , frequency and amplitude adjustable)
    2021-02-20 15:19:43下载
    积分:1
  • LX-mTouch
    PIC16F单片机电容屏例程,4个电容屏按键(PIC16F microcontroller capacitive screen routines, four capacitive screen buttons)
    2013-10-28 21:36:06下载
    积分:1
  • zong
    基于DCT的图像压缩及其MATLAB仿真实现,详细的过程可运行结果(DCT-based image compression and MATLAB Simulation, the process can run more results)
    2011-05-24 16:48:43下载
    积分:1
  • keilc51.jsp
    KeilC uVision3,最新的keil C编程软件,可以编写51单片机的程序(keilC或汇编语言)(KeilC uVision3, the latest keil C programming software, you can write 51 MCU programs (keilC or assembly language))
    2010-01-18 14:22:31下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载