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

  • 6678DSP的I2C程序,实现E2prom的读写操作
    6678DSP的I2C程序,实现E2prom的读写操作(6678DSP of I2C procedures, read and write operations E2prom)
    2020-07-27 10:28:39下载
    积分:1
  • fft4
    FFT及IFFT算法的C语言实现,信号发生器产生的正弦信号在通过该算法可以准确算出频率(The implementation of the FFT algorithm in the C language)
    2018-01-04 09:33:29下载
    积分:1
  • kepOPC 通讯示例源码(c#)
    kepOPC 通讯示例源码(c#)
    2019-07-31下载
    积分:1
  • ILI9342
    ILI9342驱动芯片320*240彩屏驱动,EFM32 EBI驱动方式(ILI9342 driver chip 320* 240 color display driver, EFM32 EBI Drive)
    2020-10-20 17:27:24下载
    积分:1
  • F005_Motor control_v0.1.3
    说明:  华大MCU双电阻采样无感FOC方案,适用于对成本敏感场合的应用(Huada MCU double resistance sampling non inductive FOC scheme)
    2021-04-27 13:38:44下载
    积分:1
  • Section with the dates of the preparation of c# source code, very nice oh
    一段用c#编写的日期判断程序源代码,很不错哦-Section with the dates of the preparation of c# source code, very nice oh
    2022-01-23 10:47:48下载
    积分:1
  • 实时系统的作业
    FG,fdmgv,mdfnbkndfmb mfcnbmncvxkncxm nvmcnxmvcbnjgrmdnmvnmxcvmnrfefnvmcnvmncmvnjfbhtbfvcmvmcmvnmcbgfnmbnfvcncmnmcncmnmvncmvnfjnvfjvnfjfbfbmvmcnmnmcnbmcnbjfnjbngfbmnfvnmcngjbvmvcnmcnmbvgj
    2023-08-05 23:35:04下载
    积分:1
  • demo
    交流电动机的矢量控制(Transvector Contrl)理论,从理论上解决了交流电动机转矩的高性能控制问题。其基本思想是在普通的三相交流电动机上设法模拟直流电动机转矩控制的规律,在磁场定向坐标上,将电流矢量分解成产生磁通的励磁电流分量 和产生转矩的转矩电流分量 ,并使两分量互相垂直,彼此独立,然后分别进行调节。这样,交流电动机的转矩控制,从原理和特性上就与直流电动机相似了。因此,矢量控制的关键仍是对电流矢量的幅值和空间位置的控制。(AC motor vector control (Transvector Contrl) theory, control theory to solve the problem of high-performance AC motor torque. The basic idea is to try to simulate the DC motor torque control law in the ordinary three-phase AC electric motor in field-oriented coordinates, the current vector decomposed to produce the excitation current component of the magnetic flux generating a torque current component and torque, and two components perpendicular to each other, independently of each other, and then were adjusted. Thus, AC motor torque control, the principle and characteristics of the DC motor on and similar. Therefore, the key vector control is still the amplitude and spatial position of the current vector control.)
    2016-12-01 08:58:29下载
    积分:1
  • 动态Linq 查询条件(PredicateExtensions) 示例源码下载
    动态Linq 查询条件(PredicateExtensions) 示例源码下载
    2014-06-14下载
    积分:1
  • SkinTest_demo
    vc++ 皮肤切换源码与两个皮肤,支持换肤功能的窗口实例,在自定义皮肤和winXP皮肤之间进行切换(To support the skin function of the window example, in a custom skin and the skin to switch between winXP.)
    2012-05-16 14:33:33下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载