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

  • C
    说明:  讲的很好的的一本C语言书,是一个大学老师写的,对指针讲解很好,叫C深度剖析(Speak well of a C-language book is written by a university teacher, a good explanation for the pointer, called C-depth analysisgoog)
    2011-06-23 19:04:47下载
    积分:1
  • 2002063920060390MATLABjihe
    图象处理基础算法原代码MATLAB 集合。(image processing algorithms based on the original MATLAB code set.)
    2006-12-13 15:15:50下载
    积分:1
  • 用模糊控制算法调节PID控制器
    通常的PID算法都是手动调节设置参数,经过模糊控制设计的PID可以根据不同的情况,自动调节PID参数
    2022-02-02 04:56:31下载
    积分:1
  • LocalNetworkBandwidth-master
    带宽测试工具,用于测试网络带宽的峰值,直接在屏幕打印结果。(Bandwidth testing tool)
    2015-09-09 15:24:05下载
    积分:1
  • Location_Algorithm
    室内无线定位算法研究,主要介绍室内无线定位技术的算法研究。(Indoor wireless location algorithm, introduces the indoor wireless location technology algorithm.)
    2010-06-22 10:21:00下载
    积分:1
  • Game1
    在SDK源码中增加了旋转模型功能,按下A和D键可看到模型旋转动作。(Game1 )
    2013-04-11 18:32:39下载
    积分:1
  • 代码异步串行通信是针对stm32f103开发板和最新的hal库,开发的例程。
    这个代码是硬石电子针对stm32f103开发板和最新的hal库,开发的例程。本例程是关于异步串行通信的。代码既有keil软件的,也有IAR软件的,对初学者非常有用。
    2022-03-23 18:27:09下载
    积分:1
  • 基于OPENCV的SIFT特征提取与匹配算法 OPENCV_SIFT_VC6
    基于OPENCV的SIFT特征提取与匹配算法。包含完整的从图像高斯金字塔、DOG、空间极值点提取、关键点描述、KDtree匹配等关键步骤的全部函数实现,对全面深入理解Lowe的SIFT算法有莫大帮助。程序运行前须安装(1)OpenCV: http://opencvlibrary.sourceforge.net (2)SIFT: http://web.engr.oregonstate.edu/~hess/index.html,并配置其环境参数。(OPENCV the SIFT-based feature extraction and matching algorithm. Contains a complete Gaussian pyramid from the image, DOG, space extremum point extraction, description of key points, KDtree matching key step in the realization of the full function of the comprehensive and in-depth understanding of Lowe s SIFT algorithm of tremendous help. Program to run before the installation of (1) OpenCV: http://opencvlibrary.sourceforge.net (2) SIFT: http://web.engr.oregonstate.edu/ ~ hess/index.html, and configure the parameters of their environment.)
    2020-06-26 03:00:02下载
    积分:1
  • USBPort
    USB通信编程,获取USB设备信息,如果编译不通过,你需要下载NTDDK中的hidsdi.h 和 hid.lib文件等。(USB communication programming,get the USB devices informateion ,if there have link errors,you have to download the header files hidsdi. H, the library file hid. Lib,etc in the NTDDK.)
    2012-06-27 11:13:14下载
    积分:1
  • 编辑距离问题
    说明:  设A和B是2个字符串。要用最少的字符操作将字符串A转换为字符串B。这里所说的字符操作包括:1)删除一个字符;2)插入一个字符;3)将一个字符改为另一个字符。将字符串A变换为字符串B所用的最少字符操作称为字符串A到B的编辑距离,记为d(A,B)(Let A and B be two strings. String A is converted to string B with the least number of character operations. The character operations mentioned here include: 1) deleting a character; 2) inserting a character; 3) changing one character to another character. The minimum character operation used to convert string A to string B is called the editing distance from string A to B, which is denoted D D as D (A, B).)
    2019-05-29 15:41:34下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载