PIC16F62X
The EEPROM data memory allows byte read and write.
A byte write automatically erases the location and
writes the new data (erase before write). The EEPROM
data memory is rated for high erase/write cycles. The
write time is controlled by an on-chip timer. The write-
time will vary with voltage and temperature as well as
from chip to chip. Please refer to AC specifications for
exact limits.
13.0 DATA EEPROM MEMORY
The EEPROM data memory is readable and writable
during normal operation (full VDD range). This memory
is not directly mapped in the register file space. Instead
it is indirectly addressed through the Special Function
Registers. There are four SFRs used to read and write
this memory. These registers are:
• EECON1
When the device is code protected, the CPU may
continue to read and write the data EEPROM memory.
The device programmer can no longer access
this memory.
• EECON2 (Not a physically implemented register)
• EEDATA
• EEADR
EEDATA holds the 8-bit data for read/write, and EEADR
holds the address of the EEPROM location being
accessed. PIC16F62X devices have 128 bytes of data
EEPROM with an address range from 0h to 7Fh.
Additional information on the Data EEPROM is avail-
able in the PICmicro™ Mid-Range Reference Manual,
(DS33023).
REGISTER 13-1: EEADR REGISTER (ADDRESS 9Bh)
U
—
R/W
R/W
R/W
R/W
R/W
R/W
R/W
EADR6 EADR5 EADR4 EADR3 EADR2 EADR1 EADR0
bit0
R = Readable bit
W = Writable bit
S = Settable bit
bit7
U = Unimplemented bit, read
as ‘0’
-n = Value at POR reset
bit 7
Unimplemented Address: Must be set to '0'
bit 6:0 EEADR: Specifies one of 128 locations for EEPROM Read/Write Operation
13.1
EEADR
The EEADR register can address up to a maximum of
256 bytes of data EEPROM. Only the first 128 bytes of
data EEPROM are implemented and only seven of the
eight bits in the register (EEADR<6:0>) are required.
The upper bit is address decoded. This means that
this bit should always be ’0’ to ensure that the address
is in the 128 byte memory space.
1999 Microchip Technology Inc.
Preliminary
DS40300B-page 91