English
Language : 

MC9S08DZ128 Datasheet, PDF (82/458 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 4 Memory
4.6.11.5 FLASH and EEPROM Status Register (FSTAT)
7
6
5
4
3
2
1
0
R
FCCF
0
FBLANK
0
0
FCBEF
FPVIOL FACCERR
W
Reset
1
1
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 4-18. FLASH and EEPROM Status Register (FSTAT)
Table 4-21. FSTAT Register Field Descriptions
Field
Description
7
FCBEF
Command Buffer Empty Flag — The FCBEF bit is used to launch commands. It also indicates that the
command buffer is empty so that a new command sequence can be executed when performing burst
programming. The FCBEF bit is cleared by writing a 1 to it or when a burst program command is transferred to
the array for programming. Only burst program commands can be buffered.
0 Command buffer is full (not ready for additional commands).
1 A new burst program command can be written to the command buffer.
6
FCCF
Command Complete Flag — FCCF is set automatically when the command buffer is empty and no command
is being processed. FCCF is cleared automatically when a new command is started (by writing 1 to FCBEF to
register a command). Writing to FCCF has no meaning or effect.
0 Command in progress
1 All commands complete
5
FPVIOL
Protection Violation Flag — FPVIOL is set automatically when a command that attempts to erase or program
a location in a protected block (the erroneous command is ignored). FPVIOL is cleared by writing a 1 to FPVIOL.
0 No protection violation.
1 An attempt was made to erase or program a protected location.
4
FACCERR
Access Error Flag — FACCERR is set automatically when the proper command sequence is not obeyed exactly
(the erroneous command is ignored), if a program or erase operation is attempted before the FCDIV register has
been initialized, or if the MCU enters stop while a command was in progress. For a more detailed discussion of
the exact actions that are considered access errors, see Section 4.6.6, “Access Errors.” FACCERR is cleared by
writing a 1 to FACCERR. Writing a 0 to FACCERR has no meaning or effect.
0 No access error.
1 An access error has occurred.
2
FBLANK
Verified as All Blank (erased) Flag — FBLANK is set automatically at the conclusion of a blank check command
if the entire FLASH or EEPROM array was verified to be erased. FBLANK is cleared by clearing FCBEF to write
a new valid command. Writing to FBLANK has no meaning or effect.
0 After a blank check command is completed and FCCF = 1, FBLANK = 0 indicates the FLASH or EEPROM
array is not completely erased.
1 After a blank check command is completed and FCCF = 1, FBLANK = 1 indicates the FLASH or EEPROM
array is completely erased (all 0xFFFF).
4.6.11.6 FLASH and EEPROM Command Register (FCMD)
Only six command codes are recognized in normal user modes, as shown in Table 4-22. All other
command codes are illegal and generate an access error. Refer to Section 4.6.3, “Program and Erase
MC9S08DZ128 Series Data Sheet, Rev. 1
82
Freescale Semiconductor