English
Language : 

PIC16F631_08 Datasheet, PDF (123/306 Pages) Microchip Technology – 20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F631/677/685/687/689/690
REGISTER 10-5: EECON1: EEPROM CONTROL REGISTER
R/W-x
U-0
EEPGD(1)
—
bit 7
U-0
U-0
R/W-x
—
—
WRERR
R/W-0
WREN
R/S-0
WR
R/S-0
RD
bit 0
Legend:
S = Bit can only be set
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
bit 6-4
bit 3
bit 2
bit 1
bit 0
EEPGD: Program/Data EEPROM Select bit(1)
1 = Accesses program memory
0 = Accesses data memory
Unimplemented: Read as ‘0’
WRERR: EEPROM Error Flag bit
1 = A write operation is prematurely terminated (any MCLR Reset, any WDT Reset during
normal operation or BOR Reset)
0 = The write operation completed
WREN: EEPROM Write Enable bit
1 = Allows write cycles
0 = Inhibits write to the data EEPROM
WR: Write Control bit
EEPGD = 1:
This bit is ignored
EEPGD = 0:
1 = Initiates a write cycle (The bit is cleared by hardware once write is complete. The WR bit can only
be set, not cleared, in software.)
0 = Write cycle to the data EEPROM is complete
RD: Read Control bit
1 = Initiates a memory read (the RD is cleared in hardware and can only be set, not cleared, in
software.)
0 = Does not initiate a memory read
Note 1: PIC16F685/PIC16F689/PIC16F690 only.
© 2008 Microchip Technology Inc.
DS41262E-page 121