MC9S12Q32VFA16 FREESCALE [Freescale Semiconductor, Inc], MC9S12Q32VFA16 Datasheet - Page 523

no-image

MC9S12Q32VFA16

Manufacturer Part Number
MC9S12Q32VFA16
Description
HCS12 Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
18.4.1.3.3
The sector erase operation will erase all addresses in a
embedded algorithm.
An example flow to execute the sector erase operation is shown in
command write sequence is as follows:
If a Flash sector to be erased is in a protected area of the Flash array, the PVIOL flag in the FSTAT register
will set and the sector erase command will not launch. Once the sector erase command has successfully
launched, the CCIF flag in the FSTAT register will set after the sector 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 sector erase command.
2. Write the sector erase command, 0x40, to the FCMD register.
3. Clear the CBEIF flag in the FSTAT register by writing a 1 to CBEIF to launch the sector erase
The Flash address written determines the sector to be erased while MCU address bits
data written are ignored.
command.
Sector Erase Command
MC9S12Q128
Rev 1.10
1024
byte sector of the Flash array using an
Chapter 18 64 Kbyte Flash Module (S12FTS64KV4)
Figure
18-24. The sector erase
[9:0]
and the
523

Related parts for MC9S12Q32VFA16