- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
avr_app_100
AVR100: Accessing the EEPROM
Features 8-bit
• Random Read/Write
• Sequential Read/Write Microcontroller
• Runable Test/Example Program
Introduction Application
This application note contains routines for access of the EEPROM memory in the AVR Note
Microcontroller. Two types of Read/Write access has been implemented:
• Random Read/Write: The user must set up both data and address before calling
the Read or Write routine.
• Sequential Read/Write: The user needs only to set up the data to be
Read/Written. The current EEPROM address is automatically incremented prior to
access. The address has to be set prior to writing the first byte in a sequense.
The application note contains four routines which are described in detail in the follow-
ing sections. This application note contains routines for accessing the EEPROM in all
AVR devices.
Note: In the latest devices the EEWE bit in EECR is called EEPE, and the EEMWE is
called EEMPE. Also in the latest devices the EECR consist of two extra bits to set the
Programming Mode, EEPM0 and EEPM1. These two bits needs to be initialized
before EEPE is set.
Random Write – Subroutine “EEWrite”
Three register variables must be set up prior to calling this routine:
• EEdwr – Data to be written
• EEawr – Address low byte to write
• EEawrh – Address high byte to write
The subroutine waits until the EEPROM is ready to be programmed by polling the
EEPROM Write Enable – EEWE bit in the EEPROM Control Register – EECR. When
EEWE is zero, the contents of EEdwr is transferred to the EEPROM Data Register –
EEDR, and the contents of EEawrh:EEawr is transferred to the EEPROM Address
Register – EEARH:EEARL. First the EEPROM Master Write Enable – EEMW
您可能关注的文档
- 3d人体解剖软件穴位解剖及说明大全.pdf
- 04 - inmobi - 中国app如何挑战全球?.pdf
- 3 移动通信天线之-阵列天线4.pdf
- 07.《田骏、岳旭强-蘑菇街ios app技术发展史》@segmentfault .pdf
- 10 如何设计一个高大上的app图标、.pdf
- 50 brilliant ipad mobile app user interface designs.pdf
- 60分钟教会小白用户搭建人生的第一个app.pdf
- 0600app_widgets_android_developers.pdf
- 0600app_widgets_android_developers_cropped.pdf
- 0601app_widget_host_android_developers.pdf
- avr单片机嵌入式系统原理与应用实践 马潮.pdf
- avr单片机原理及应.pdf
- best practice recommendations for angular app structure.pdf
- ccd摄像机原理.pdf
- dominojchowlondonr20150615final-150616110458-lva1-app6892-151015230524-lva1-app6892.pdf
- f2_07_sina_app_engine_王伟平_新浪.pdf
- ff-keynote-final-151019143228-lva1-app6892.pdf
- firefox os app day_writing web apps.pdf
- first-node-app.pdf
- fmcw radar app note.pdf
文档评论(0)