搜档网
当前位置:搜档网 › PIC单片机 配置位中文资料16F87XA

PIC单片机 配置位中文资料16F87XA

PIC单片机 配置位中文资料16F87XA
PIC单片机 配置位中文资料16F87XA

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必须使用高编程电压才可以

bit 6 BOREN: Brown-out Reset Enable bit 欠压/掉电复位使能

1= BOR enabled 欠压/掉电复位功能开

0= BOR disabled 欠压/掉电复位功能关

bit 5-4 Unimplemented: Read as ‘1’未使用设置1

bit 3 PWRTEN: Power-up Timer Enable bit 上电延时使能

1= PWRT disabled上电延时使能关

0= PWRT enabled上电延时使能开

bit 2 WDTEN: Watchdog Timer Enable bit 看门狗定时使能1= WDT enabled看门狗定时使能开

0= WDT disabled看门狗定时使能关

bit 1-0 FOSC1:FOSC0: Oscillator Selection bits振荡器类型选择

11= RC Resistor/Capacitor oscillator RC阻容振荡器

10= HS High-Speed Crystal/Resonator oscillator 高频率石英晶体振荡器4-20MHZ

01= XT Crystal/Resonator oscillator 石英晶体振荡器200k-4MHZ

00= LPr Low-Power Crystal oscillato 低功耗方案振荡器32-200khz

Legend:

R = Readable bit P = Programmable bit U = Unimplemented bit, read as ‘0’

- n = Value when device is unprogrammed u = Unchanged from programmed state

Note 1: The erased (unprogrammed) value of the Configuration Word is 3FFFh.

相关主题