|
MC9S12HZ128VAL Datasheet, PDF (103/692 Pages) Freescale Semiconductor, Inc – MC9S12HZ256 Data Sheet, Rev. 2.05 | |||
|
◁ |
Chapter 3 2 Kbyte EEPROM Module (EETS2KV1)
7
6
5
4
3
2
1
0
R
CCIF
0
BLANK
0
0
CBEIF
PVIOL
ACCERR
W
Reset
1
1
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 3-9. EEPROM Status Register (ESTAT - Normal Mode)
R
W
Reset
7
CBEIF
1
6
5
4
3
CCIF
0
PVIOL
ACCERR
2
BLANK
1
FAIL
1
0
0
0
0
0
= Unimplemented or Reserved
Figure 3-10. EEPROM Status Register (ESTAT - Special Mode)
0
DONE
1
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.
Table 3-7. ESTAT Field Descriptions
Field
7
CBEIF
6
CCIF
5
PVIOL
Description
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
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
Protection Violation â The PVIOL ï¬ag indicates an attempt was made to program or erase an address in a
protected EEPROM memory area (Section 3.4.1.4, âIllegal EEPROM Operationsâ). The PVIOL ï¬ag is cleared by
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
MC9S12HZ256 Data Sheet, Rev. 2.05
Freescale Semiconductor
103
|
▷ |