完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
最近我在PIC18F822系列数据表中遇到了配置寄存器写保护位。这意味着什么?由于配置寄存器通常只在正常情况下可读,那么为什么要写保护呢?一旦设置,如果我想有一个不同的配置,难道不可能改变吗?或者它阻止从运行的代码中读取表/写访问,而不是从外部的微芯片程序员?从数据表中看到下面的图:寄存器25-10CONTH6H:PIC18F822系列的配置寄存器6高(字节地址3000 BH)(附加的是PIC)。我也混淆了什么是EEPROM写保护(因为已经有代码保护)和引导块写保护(SI)。NCE引导块只从开始读取,当必须使用这些块时?有任何文件提到这一点吗?有人能告诉我正确的方向吗?
以上来自于百度翻译 以下为原文 I have recently come across configuration register write protection bit in PIC18F8722 Family datasheet. What that means? Since configuration registers are usually only readable in normal case, then why write protect? Once set, won't it be possible to change if I want to have a different configuaration? Or is it preventing the Table Read/Write access from the running code and not from the external microchip programmer? See the following figure from the datasheet: Register 25-10 CONFIG6H: CONFIGURATION REGISTER 6 HIGH (BYTE ADDRESS 30000Bh) of PIC18F8722 Family (attached is the pic) I am also confused about what is EEPROM write Protection (since there is already a code protection) and boot block write protection (since boot block is read from the beginning only), when these have to be used? Is there any documentation mentioning this? can someone point me to right direction? Attached Image(s) |
|
相关推荐
2个回答
|
|
EEPROM是一个数据存储器而不是代码存储器,不包含在“代码保护”中,因此它有一个单独的写保护位(阻止从您的代码写入使EEPROM只读)。配置寄存器写保护位防止使用代码内的表写入来写入配置寄存器,而不是从外部程序员编写。此位只能在编程期间设置。引导块写保护位类似于它防止从代码中写入引导块。代码保护位防止用外部程序员读取代码存储器(Flash),它们与内部写入无关。
以上来自于百度翻译 以下为原文 The EEPROM is a data memory not code memory and is not included in "code protection" thus it has a separate write protection bit (prevents writes from your code - makes the EEPROM read-only). The configuration register write protection bit prevents writing to the config registers using table writes from within the code, not from an external programmer. This bit can only be set during programming. The boot block write protection bit is similar in that it prevents writes to the boot block from within your code. The code protection bits prevent READING the code memory (FLASH) with an external programmer, they have nothing to do with internal writes. |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5250 浏览 9 评论
2037 浏览 8 评论
1958 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3218 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2266 浏览 5 评论
788浏览 1评论
680浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
609浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
685浏览 0评论
582浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-28 23:01 , Processed in 1.529822 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号