Datasheet
EEPROM Control Registers
MC68HC812A4 Data Sheet, Rev. 7
Freescale Semiconductor 75
7.3.2 EEPROM Block Protect Register
Read: Anytime
Write: Anytime if EEPGM = 0 and PROTLCK = 0
This register prevents accidental writes to EEPROM.
BPROT6–BPROT0 — EEPROM Block Protection Bit
0 = Associated EEPROM block can be programmed and erased.
1 = Associated EEPROM block is protected from being programmed and erased.
These bits cannot be modified while programming is taking place (EEPGM = 1).
7.3.3 EEPROM Test Register
Read: Anytime
Write: In special modes only (SMODN = 0)
These bits are used for test purposes only. In normal modes, the bits are forced to 0.
EEODD — Odd Row Programming Bit
1 = Bulk program/erase all odd rows
0 = Odd row bulk programming/erasing disabled
Address: $00F1
Bit 7654321Bit 0
Read:
1 BPROT6 BPROT5 BPROT4 BPROT3 BPROT2 BPROT1 BPROT0
Write:
Reset:11111111
Figure 7-3. EEPROM Block Protect Register (EEPROT)
Table 7-1. 4-Kbyte EEPROM Block Protection
Bit Name Block Protected Block Size
BPROT6 $1000 to $17FF 2048 bytes
BPROT5 $1800 to $1BFF 1024 bytes
BPROT4 $1C00 to $1DFF 512 bytes
BPROT3 $1E00 to $1EFF 256 bytes
BPROT2 $1F00 to $1F7F 128 bytes
BPROT1 $1F80 to $1FBF 64 bytes
BPROT0 $1FC0 to $1FFF 64 bytes
Address: $00F2
Bit 7654321Bit 0
Read: EEODD EEVEN MARG EECPD EECPRD 0 EECPM 0
Write:
Reset:00000000
= Unimplemented
Figure 7-4. EEPROM Test Register (EEPROT)
