mc9s12hz256v2 Freescale Semiconductor, Inc, mc9s12hz256v2 Datasheet - Page 103

no-image

mc9s12hz256v2

Manufacturer Part Number
mc9s12hz256v2
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
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.
Freescale Semiconductor
Reset
Reset
CBEIF
PVIOL
Field
CCIF
7
6
5
W
W
R
R
CBEIF
CBEIF
Command Buffer Empty Interrupt Flag — The CBEIF flag indicates that the address, data, and command
buffers are empty so that a new command sequence can be started. The CBEIF flag is cleared by writing a 1 to
CBEIF. Writing a 0 to the CBEIF flag 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 flag in the ESTAT register to be set. Writing a 0 to CBEIF outside of a command sequence will not set
the ACCERR flag. The CBEIF flag 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 flag indicates that there are no more commands pending. The
CCIF flag is cleared when CBEIF is cleared and sets automatically upon completion of all active and pending
commands. The CCIF flag does not set when an active command completes and a pending command is fetched
from the command buffer. Writing to the CCIF flag has no effect. The CCIF flag 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 flag indicates an attempt was made to program or erase an address in a
protected EEPROM memory area
writing a 1 to PVIOL. Writing a 0 to the PVIOL flag 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
7
1
7
1
= Unimplemented or Reserved
= Unimplemented or Reserved
Figure 3-10. EEPROM Status Register (ESTAT - Special Mode)
Figure 3-9. EEPROM Status Register (ESTAT - Normal Mode)
CCIF
CCIF
6
1
6
1
Table 3-7. ESTAT Field Descriptions
PVIOL
PVIOL
MC9S12HZ256 Data Sheet, Rev. 2.05
5
0
5
0
(Section 3.4.1.4, “Illegal EEPROM
ACCERR
ACCERR
4
0
4
0
Description
3
0
0
3
0
0
Chapter 3 2 Kbyte EEPROM Module (EETS2KV1)
Operations”). The PVIOL flag is cleared by
BLANK
BLANK
2
0
2
0
FAIL
1
0
0
1
0
DONE
0
0
0
0
1
103

Related parts for mc9s12hz256v2