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

  • OMAP-L138-Linux-button
    在双核处理器OMAP-L138上,对ARM9内核进行开发的,按键驱动程序。(On the dual-core processor OMAP-L138, the key driver for the ARM9 kernel is developed.)
    2020-06-15 22:25:02下载
    积分:1
  • AllSamples
    说明:  关于WPF学习的各种MSDN样例,都是源码,可以参考提升学习(With a variety of styles of controls, powerful open source code, you can refer to their own beautiful interface)
    2020-06-24 04:00:02下载
    积分:1
  • 夺秒表
    多目标粒子群优化算法matlab代码。多目标粒子群算法是模拟动物群体的社会行为,找到一个最优设计点的过程比作这些生物觅食活动。换句话说,这些例子在设计空间中寻找最好的位置,一个例子的最佳位置和沿着当前速度和惯性方向的零元素被用来决定下一个粒子的位置
    2023-03-16 18:25:03下载
    积分:1
  • 637 of flash of jilian 28334-spwm
    所上传程序为两台三相逆变器并联且实现功率分配的程序(Program for two three-phase inverters in parallel and for power distribution)
    2018-09-25 16:27:10下载
    积分:1
  • 通信网络
    说明:  在n个城市建设通信网络,只需架设n-1条线路即可至少包含10个城市,城市数n由键盘录入,城市坐标由随机函数产生小于100的整数(In the construction of communication network in n cities, only n-1 lines are needed to include at least 10 cities. The number of cities n is input by keyboard, and the coordinates of cities are generated by random functions into integers less than 100.)
    2020-06-20 05:20:02下载
    积分:1
  • 零死角玩转STM32--F103指南者.pdf(共835页)
    本书着重讲解 F103 的外设以及外设的应用,力争全面分析每个外设的功能框图和外设 的使用方法,让读者可以零死角的玩转 STM32—F103 系列。基本每个章节对应一个外设, 每章的主要内容大概分为三个部分,第一部分为简介,第二部分为外设功能框图分析,第 三部分为代码讲解。
    2021-05-06下载
    积分:1
  • SysTick
    stm32中准确延时用的文件,因为时钟速度过快且应用广,要实现ms的延迟是很困难的,所以用嘀嗒时钟。(make sure the delay time is just the time we wanted.)
    2009-05-11 09:44:32下载
    积分:1
  • RK
    说明:  自适应步长龙格库塔法求解常微分方程,main.c内容根据自己需要改变,待求解方程为derivs,需要使用者自己编写(Adaptive step size Runge Curta Fa for solving ordinary differential equations)
    2017-09-23 22:30:34下载
    积分:1
  • SuperCopy
    VC++,利用线程技术开发的文件复制工具,对于复制难读的VCD光盘中的硬盘特别有效(也是为此目的而开发,因为在盘片有错误时,WINDOWS会无法复制,这种错误往往会出现在文件的末段).(VC, the use of threaded technology development tools for the reproduction of documents. For hard copy of the VCD reading the hard disk particularly effective (for this purpose as well as development, because of an error in the disk, Windows will be impossible to reproduce, such mistakes will always be in the last paragraph of the document).)
    2006-09-27 10:46:47下载
    积分:1
  • tftb2002
    这是matlab中的时频分析工具箱,希望大家用得上。(This is a matlab in time-frequency analysis toolbox, I hope everyone useful.)
    2007-11-08 20:50:46下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载