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

  • gmsv
    部分功能需要自行开放,源码完整可编译...一直珍藏的东西..希望大家拿去多多学习-CSA (stone) ... part of the package source feature requires its own open-source can compile a complete collection of things have been ... .. hope that everyone take a lot to learn
    2021-02-24 18:39:39下载
    积分:1
  • QT 串口开发程序
    LInux 环境下 QT UART串口开发程序。并编写有对应的测试程序。使用者直接可以调用对应的函数接口,从而避免对底层程序的过多思考。从而极大地节省了开发周期。该程序适用于初级学习者,也可以为中高级程序员提供一个应用蓝本。
    2023-03-25 18:45:03下载
    积分:1
  • ActiveXTemplate
    An example of working with an ActiveX component. This component is not necessary to register, because the project is automatically registered when building the project ActiveXTest.html - page for testing the ActiveX element, run only Internet Explorer. If the content fails, you need to change the security settings of IE and enable all ActiveX support checkboxes.
    2020-06-21 03:40:02下载
    积分:1
  • C# Hashtable Ϊ
    2022-12-17 07:55:03下载
    积分:1
  • CPP
    C++的学习资料,上传上来给大家下载学习用(C++ learning material, upload up to everyone with download learning )
    2012-04-25 15:40:54下载
    积分:1
  • MINLP-with-Stochastic-programing
    带有随机规划的多目标非线性模型求解,算法为文化查分算法(Multi-objective nonlinear model with random programming solving algorithm cultural algorithm check points)
    2016-02-25 13:13:16下载
    积分:1
  • 一个简单的ios开发例子
    一个简单的ios开发例子,初学者可以参考,采用object-c语言开发。一个简单的HELLOWORLD开发例子,作为苹果应用开发的入门指导。
    2022-03-26 10:58:14下载
    积分:1
  • C# LINQ操作相关函数集代码
    C# LINQ操作相关函数集代码,这个函数集成在一个C#的实例程序中,包括了以下常用的LINQ操作函数,比如:获取LINQ返回序列的第一个元素、获取LINQ返回序列的最后一个元素、获取LINQ返回序列指定位置的元素、获取LINQ返回序列的单个特定元素、获取LINQ返回序列的非重复元素、将两个序列的元素合并为一个序列、获取序列中符合条件的元素个数、合并元素索引将元素投影到新表、将元素子级过滤结果投影到新表等。
    2022-08-18 19:41:06下载
    积分:1
  • pmic8058
    lib kenel linux for android
    2013-11-04 19:40:36下载
    积分:1
  • Hilgraeve-HyperTerm-5.0
    full source to hilgraeve HyperTerm 5.0 that is shipped with windows
    2021-04-23 14:08:48下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载