Datasheet

EEPROM Control Registers
M68HC12B Family Data Sheet, Rev. 9.1
Freescale Semiconductor 95
7.3.2 EEPROM Block Protect Register
The EEPROM block protect register (EEPROT) prevents accidental writes to EEPROM.
Read anytime.
Write anytime if EEPGM = 0 and PROTLCK = 0.
BPROT4–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.
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
0 = Odd row bulk programming/erasing is disabled.
1 = Bulk program/erase all odd rows.
Refers to a physical location in the array rather than an odd byte address
EEVEN — Even Row Programming Bit
0 = Even row bulk programming/erasing is disabled.
1 = Bulk program/erase all even rows.
Refers to a physical location in the array rather than an even byte address.
Address: $00F1
Bit 7654321Bit 0
Read:
1 1 1 BRPROT4 BRPROT3 BRPROT2 BRPROT1 BRPROT0
Write:
Reset:11111111
Figure 7-3. EEPROM Block Protect Register (EEPROT)
Table 7-1. 768-Byte EEPROM Block Protection
Bit Name Block Protected Block Size
BPROT4 $0D00 to $0DFF 256 bytes
BPROT3 $0E00 to $0EFF 256 bytes
BPROT2 $0F00 to $0F7F 128 bytes
BPROT1 $0F80 to $0FBF 64 bytes
BPROT0 $0FC0 to $0FFF 64 bytes
Address: $00F2
Bit 7654321Bit 0
Read:
EEODD EEVEN MARG EECPD EECPRD 0 EECPM 0
Write:
Reset:00000000
Figure 7-4. EEPROM Test Register (EETST)