完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,新手问题。我的应用程序需要微控制器在设备关机时存储用户保存的数据,然后在被备份时读取存储的用户保存的数据,因此应用程序不需要每次重新校准。我认为我正在寻找的是一个用于存储非易失性数据的内部EEPROM,但我没有在PIC16F1459数据表中看到任何类似的数据。我看到了使用以下寄存器的Flash程序存储器控制:PMCON1·PMCON2.PMDATL.PMADR.PMADRL.PMADRHTO ME,这似乎更像是用来锁定代码在微控制器编程之后被读取或更改。或者,IS也被用来存储应用程序的“保存”数据?我应该完全看一个不同的特性还是我唯一的选择是一个外部EEPROM?谢谢!
以上来自于百度翻译 以下为原文 Hi, newbie question. My application needs the microcontroller to store user saved data when the device will be powered off and then read the stored user saved data when it is powered back on so the application does not need to be re-calibrated each time. What I thought I was looking for was an internal EEPROM used for storing non-volatile data, but I didn't see anything like that in the PIC16F1459 data sheet. I did see Flash Program Memory Control that uses the following registers: • PMCON1 • PMCON2 • PMDATL • PMDATH • PMADRL • PMADRH To me it seems like this is more intended to be used to lock your code from being read or changed after the microcontroller is programmed. Or is is also intended to be used to store "saved" data for the application? Should I be looking at a different feature entirely or is my only option an external EEPROM? Thanks! |
|
相关推荐
3个回答
|
|
你的设备没有任何EEPROM,但是你可以使用闪存来永久存储。它比EEPROM使用起来要笨拙一些,因为在编程之前,你必须擦除位置,然后用32行字的“行”擦除。写也可以用32行字写,但是你可以写得少一些。超过32的是将0x3FFF写入未使用的单词。(每个单词拥有14位,被擦除的状态是用所有位设置的)。在数据表中的第11章中都记录了所有内容。如果你想坚持字节,你可以只使用每个单词的下8位。
以上来自于百度翻译 以下为原文 Your device does not have any EEPROM, but you can use FLASH for permanent storage. It's a little more awkward to use than EEPROM, because you have to erase locations before you can program them, and erase works in "rows" of 32 words. The writing also works in rows of 32 words, but you can write less than 32 by writing 0x3FFF to unused words. (Each word holds 14 bits, and the erased state is with all bits set.). Everything is documented in chapter 11 in the datasheet. You can just use the lower 8 bits of each word if you want to stick to bytes. |
|
|
|
并不是所有的图片都有EEPROM。你可以使用高耐久性闪光灯或普通闪光灯,尊重书写寿命。并确保数据填充整个页面或页面。
以上来自于百度翻译 以下为原文 Not all PICs have EEPROM. You can use the High Endurance Flash, or the Regular flash. Respect the write life. And insure you data fills entire an page, or pages. |
|
|
|
好吧,谢谢大家,这对我来说更有意义!
以上来自于百度翻译 以下为原文 Ah okay thanks guys, that makes more sense to me now! |
|
|
|
只有小组成员才能发言,加入小组>>
5152 浏览 9 评论
1994 浏览 8 评论
1924 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3166 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2221 浏览 5 评论
716浏览 1评论
602浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
488浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
617浏览 0评论
515浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-15 19:58 , Processed in 1.234635 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号