PIC单片机 配置位中文资料16F87XA.doc
文本预览下载声明
PIC16F877A 配置位中文说明
PIC16F876A 配置位中文说明
PIC16F874A 配置位中文说明
PIC16F873A 配置位中文说明
Configuration Bits
REGISTER 14-1: CONFIGURATION WORD (ADDRESS 2007h)
bit 13 CP: Flash Program Memory Code Protection bit 程序存储器保护位
1= Code protection off 保护位关闭 可以读出代码
0= All program memory code-protected保护位开启 代码保护 读出全0
bit 12 Unimplemented: Read as ‘1’ 未使用 设置 1
bit 11 DEBUG: In-Circuit Debugger Mode bit 在线调试模式位
1= In-Circuit Debugger disabled, RB6 and RB7 are general purpose I/O pins 在线调试关闭 RB6和RB7 通用 IO 端口
0= In-Circuit Debugger enabled, RB6 and RB7 are dedicated to the debugger在线调试开启 RB6和RB7 调试专用端口
bit 10-9 WRT1:WRT0 Flash Program Memory Write Enable bits WRT0 Flash程序存储器的写使能位
For PIC16F876A/877A:
11= Write protection off; all program memory may be written to by EECON control
写保护关闭 全部存储空间可通过EECON控制写入。
10= 0000h to 00FFh write-protected; 0100h to 1FFFh may be written to by EECON control
0000h to 00FFh 写保护; 0100h to 1FFFh 可通过EECON控制写入
01= 0000h to 07FFh write-protected; 0800h to 1FFFh may be written to by EECON control
0000h to 07FFh 写保护; 0800h to 1FFFh 可通过EECON控制写入
00= 0000h to 0FFFh write-protected; 1000h to 1FFFh may be written to by EECON control
0000h to 0FFFh 写保护; 1000h to 1FFFh 可通过EECON控制写入
For PIC16F873A/874A:
11= Write protection off; all program memory may be written to by EECON control
10= 0000h to 00FFh write-protected; 0100h to 0FFFh may be written to by EECON control
01= 0000h to 03FFh write-protected; 0400h to 0FFFh may be written to by EECON control
00= 0000h to 07FFh write-protected; 0800h to 0FFFh may be written to by EECON control
bit 8 CPD: Data EEPROM Memory Code Protection bit EEPROM存储器保护位
1= Data EEPROM code protection off EEPROM存储器保护位关闭 可读写
0= Data EEPROM code-protected EEPROM存储器保护位关闭 不可读
bit 7 LVP: Low-Voltage (Single-Supply) In-Circuit Serial Programming Enable bit
低电压(单电源)在电路中的串口编程使位
1= RB3/PGM pin has PGM function; low-voltage programming enabled
开启RB3端口PGM低电压编程功能
0= RB3 is digital I/O, HV on MCLRmust be used for programming
RB3 数字 I/O MCLR必须使用高编程电压才可以
显示全部