Chapter 3 2 Kbyte EEPROM Module (EETS2KV1)
MC9S12HZ256 Data Sheet, Rev. 2.04
Freescale Semiconductor
103
CBEIF, PVIOL, and ACCERR bits are readable and writable, CCIF and BLANK bits are readable but not
writable, remaining bits read 0 and are not writable in normal mode. FAIL is readable and writable in
special mode. FAIL must be clear when starting a command write sequence. DONE is readable but not
writable in special mode.
76543210
R
CBEIF
CCIF
PVIOL
ACCERR
0
BLANK
0
W
Reset
1
0
00000
= Unimplemented or Reserved
Figure 3-9. EEPROM Status Register (ESTAT - Normal Mode)
76543210
R
CBEIF
CCIF
PVIOL
ACCERR
0
BLANK
FAIL
DONE
W
Reset
1
0
00001
= Unimplemented or Reserved
Figure 3-10. EEPROM Status Register (ESTAT - Special Mode)
Table 3-7. ESTAT Field Descriptions
Field
Description
7
CBEIF
Command Buffer Empty Interrupt Flag — The CBEIF ag indicates that the address, data, and command
buffers are empty so that a new command sequence can be started. The CBEIF ag is cleared by writing a 1 to
CBEIF. Writing a 0 to the CBEIF ag has no effect on CBEIF. Writing a 0 to CBEIF after writing an aligned word
to the EEPROM address space but before CBEIF is cleared will abort a command sequence and cause the
ACCERR ag in the ESTAT register to be set. Writing a 0 to CBEIF outside of a command sequence will not set
the ACCERR ag. The CBEIF ag is used together with the CBEIE bit in the ECNFG register to generate an
interrupt request.
0 Buffers are full
1 Buffers are ready to accept a new command
6
CCIF
Command Complete Interrupt Flag — The CCIF ag indicates that there are no more commands pending. The
CCIF ag is cleared when CBEIF is cleared and sets automatically upon completion of all active and pending
commands. The CCIF ag does not set when an active command completes and a pending command is fetched
from the command buffer. Writing to the CCIF ag has no effect. The CCIF ag is used together with the CCIE
bit in the ECNFG register to generate an interrupt request.
0 Command in progress
1 All commands are completed
5
PVIOL
Protection Violation — The PVIOL ag indicates an attempt was made to program or erase an address in a
writing a 1 to PVIOL. Writing a 0 to the PVIOL ag has no effect on PVIOL. While PVIOL is set, it is not possible
to launch another command in the EEPROM.
0 No failure
1 A protection violation has occurred