mc9s12c32mpb16 Freescale Semiconductor, Inc, mc9s12c32mpb16 Datasheet - Page 495

no-image

mc9s12c32mpb16

Manufacturer Part Number
mc9s12c32mpb16
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
17.4.1.3.4
The mass erase operation will erase all addresses in a Flash array using an embedded algorithm.
An example flow to execute the mass erase operation is shown in
write sequence is as follows:
If a Flash array to be erased contains any protected area, the PVIOL flag in the FSTAT register will set and
the mass erase command will not launch. Once the mass erase command has successfully launched, the
CCIF flag in the FSTAT register will set after the mass erase operation has completed unless a new
command write sequence has been buffered.
Freescale Semiconductor
1. Write to a Flash array address to start the command write sequence for the mass erase command.
2. Write the mass erase command, 0x41, to the FCMD register.
3. Clear the CBEIF flag in the FSTAT register by writing a 1 to CBEIF to launch the mass erase
The address and data written will be ignored.
command.
Mass Erase Command
MC9S12C-Family / MC9S12GC-Family
Rev 01.23
Figure
Chapter 17 16 Kbyte Flash Module (S12FTS16KV1)
17-25. The mass erase command
495

Related parts for mc9s12c32mpb16