mc9s08sg4 Freescale Semiconductor, Inc, mc9s08sg4 Datasheet - Page 58

no-image

mc9s08sg4

Manufacturer Part Number
mc9s08sg4
Description
8-bit Microcontroller Family
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s08sg4MTJG
Manufacturer:
FREESCALE
Quantity:
20 000
Chapter 4 Memory
4.7.6
Only five command codes are recognized in normal user modes as shown in
4.5.3, “Program and Erase Command
erase operations.
All other command codes are illegal and generate an access error.
It is not necessary to perform a blank check command after a mass erase operation. Only blank check is
required as part of the security unlocking mechanism.
58
FACCERR
FBLANK
Reset
Field
4
2
W
R
FLASH Command Register (FCMD)
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
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.
FLASH Verified as All Blank (erased) Flag — FBLANK is set automatically at the conclusion of a blank check
command if the entire FLASH 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 array is not
1 After a blank check command is completed and FCCF = 1, FBLANK = 1 indicates the FLASH array is
0
0
7
completely erased.
completely erased (all 0xFF).
Page erase (512 bytes/page)
Byte program — burst mode
Table 4-12. FSTAT Register Field Descriptions (continued)
Mass erase (all FLASH)
0
0
6
Figure 4-10. FLASH Command Register (FCMD)
Byte program
Blank check
Command
MC9S08SG8 MCU Series Data Sheet, Rev. 3
Table 4-13. FLASH Commands
0
0
Execution,” for a detailed discussion of FLASH programming and
5
0
0
4
FCMD
Description
0x05
0x20
0x25
0x40
0x41
FCMD
Section 4.5.5, “Access
3
0
0
Equate File Label
mPageErase
mMassErase
mBurstProg
mByteProg
mBlank
0
0
2
Table
Errors.” FACCERR is cleared by
4-13. Refer to
Freescale Semiconductor
0
0
1
Section
0
0
0

Related parts for mc9s08sg4