- 1、本文档共44页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
IC卡信息采集器设计(三)——接触式存储卡读写软件设计
IC卡信息采集器设计(三) ——接触式存储卡读写软件设计 教学目标 根据时序分析编写AT24C**卡的 读/写卡主程序 根据时序分析编写AT24C**卡的 读/ 写卡功能子程序 实现AT24C**卡的读/写 产品开发——IC卡信息采集器 开发任务:设计IC卡采集器 卡型:AT24C** IC卡信息采集器功能分析 1、在采集点将待采集的数据写入卡中 2、在汇总点将存储的数据从卡中读出并上传到PC机 产品开发之第三步:软件实现 信息采集器工作流程 任务1:写卡 AT24C**的写操作模式: 写操作 写字节(BYTE WRITE) 写页面(PAGE WRITE) 写字节操作时序分析 BYTE WRITE A write operation requires an 8-bit data word address following the device address word and acknowledgment. Upon receipt of this address, the EEPROM will again respond with a zero and then clock in the first 8-bit data word. Following receipt of the 8-bit data word, the EEPROM will output a zero and the addressing device, such as a microcontroller, must terminate the write sequence with a stop condition.At this time the EEPROM enters an internally timed write cycle, tWR, to the nonvolatile memory. All inputs are disabled during this write cycle and the EEPROM will not respond until the write is complete 开始与停止时序 START STOP START CONDITION: A high-to-low transition of SDA with SCL high is a start condition which must precede any other command (refer to Start and Stop Definition timing diagram). STOP CONDITION: A low-to-high transition of SDA with SCL high is a stop condition.After a read sequence, the stop command will place the EEPROM in a standby power mode (refer to Start and Stop Definition timing diagram). START SETB SDA ;升高SDA SETB SCL ; Verify bus available,校验总线有效 JNB SDA, X40 ;jump if not high,若SDA不为高则跳转到x40 JNB SCL, X40 ;jump if not high,若SDA不为高则跳转到x40 NOP NOP ;保持数据建立延迟及周期延迟 CLR SDA ;降低SDA ACALL DELAY4us ; 保持SDA为低,保持时间hold delay CLR SCL ;降低SDL CLR C ;clear error flag,清零错误标志 AJMP X41 X40:SETB C ;set error flag,置位错误标志 X41:RET STOP 请自行参照时序编写STOP子程序。 器件地址 紧接着开始状态后需给卡一个8位器件地址(Device Address),用于设定读/写操作以及第9\10\11位字节地址。 数据的输入输出 SDA总线上的数据仅在SCL低电平时间周期可能改变。SCL上升沿时数据输入芯片(写入),SCL下降沿时数据从芯片输出(读出)。所有地址和数据字以8位码串行输入、输出EEPROM 数据输出 当数据(包括地址、数据)由读写器送往AT24Cxx时,称为输出数据
您可能关注的文档
- 97学年度教育部补助技专校院.ppt
- 98学年度第二学期服務學習教育課程.ppt
- 2012高考化学研究.ppt
- 2011年调研测试物理学科分析及二轮复习备考策略建议.ppt
- ATM灯箱广告监测报告.ppt
- CASHL常见问题汇总.ppt
- C++程序设计基础第11讲.ppt
- C++程序设计基础..ppt
- CALIS西文期刊目次数据库CCC服务平台.ppt
- CBI中国IT渠道年度奖评选活动方案.doc
- 外研版选择性必修第三册 Unit 3 War and peace Starting Out & Understanding Ideas课件(共37张PPT).pptx
- 第14课 第一次世界大战与战后国际秩序 授课课件(共31张PPT).pptx
- 第18课 科技文化成就 课件(共19张PPT).pptx
- 人教版(2025) 必修第三册 Unit 2 Morals and Virtues Listening and Speaking课件(共22张).pptx
- 第20课 狼 课件(共35张PPT).pptx
- 外研版选择性必修 第三册Unit 2 A life’s work Starting out课件(共17张PPT).pptx
- 北师大版(2025) 必修第三册 Unit 8 Green Living Lesson 1 Roots and Shoots Lesson1课件(共23张PPT).pptx
- 北师大版(2025)必修第一册Unit 1 Life Choices Topic Talk 课件(共14张).pptx
- 人教版(2025) 必修第一册 Unit 1 Teenage Life Reading and Thinking 课件(共14张PPT).pptx
- 人教版(2025) 必修第一册 Unit 2 Travelling Around Listening and Talking课件(共16张PPT).pptx
最近下载
- 大数据数据分析项目实践报告.doc
- Unit 6 Electricity everywhere 第4课时 Writing 教学设计 沪教版英语七年级下册.docx
- 防爆电气设备安装与检验考核试卷.docx
- 情态动词-专题课件(共28张课件).ppt VIP
- 《GB 50318-2017城市排水工程规划规范 》最新解读.pptx
- 河南水投集团所属公司招聘笔试真题2024 .pdf
- Unit 2 Travelling Around 大单元整体教学设计-高中英语人教版必修第一册.docx
- 义务教育生物学课程标准(2022年版).docx
- 新人教版一年级数学下册应用题练习带答案(全套).pdf
- 汉字与服饰文化(文字学).ppt VIP
文档评论(0)