AN202
V1.0 | Page 35/73
www.cmostek.com
4.1.29
EECON2
(
Addr:0x9D
)
Table 4-53. EECON2 Register
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
EECON2
-
-
-
-
-
-
-
WR
Reset
-
-
-
-
-
-
-
0
Type
-
-
-
-
-
-
-
RW
Table 4-54. EECON2 Bit Function Description
4.1.30
Configuration Register UCFGx
The UCFG0, UCFG1or UCFG2 could not be programmed.They are only written by the hardware (burning) in
the power-up process.
UCFG0 address is 0x2000in PROM
Table 4-55. UCFG0 Configuration Register
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
UCFG0
-
CPB
MCLRE PWRTEB
WDTE
FOSC<2:0>
Table 4-56. UCFG0Bit Function Description
Bit
Name
Function
0
WR
EEPROM Write Control bit
Read operation, 1=Data EEPROM is in the programming cycle.
0=Data EEPROM is not in the programming cycle.
Write operation, 1=Initiates a data EEPROM programming cycle
0=No function
Bit
Name
Function
6
CPB
1 = Flash content is not protected
0 = Intiate the Flash content protection, MCU is able to access the content; the serial
port is not able to access it.
Note:
The bit can only be rewritten from 1 to 0, but it can not be rewritten from 0 to 1.The
only way to rewrite from 0 to 1 is to erase the register including USER_OPT, and the
CPB becomes 1 after power-up again.
5
MCLRE
1 = The PA5/MCLR pin executes the MCLR function, which is the reset pin.
0 = The PA5/MCLR pinexecutes the PA5 function, which is the digital input pin.
4
PWRTEB
1 = Disable PWRT
0 = Enable PWRT