mc9s12xd256 Freescale Semiconductor, Inc, mc9s12xd256 Datasheet - Page 1138

no-image

mc9s12xd256

Manufacturer Part Number
mc9s12xd256
Description
Hcs12x Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s12xd256CAA
Manufacturer:
FREESCALE
Quantity:
3 564
Part Number:
mc9s12xd256CAA
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s12xd256CAA
Manufacturer:
FREESCALE
Quantity:
3 564
Part Number:
mc9s12xd256CAG
Manufacturer:
FREESCALE
Quantity:
1 540
Part Number:
mc9s12xd256CAG
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Chapter 27 512 Kbyte Flash Module (S12XFTX512K4V2)
27.4.2.4
The sector erase operation will erase all addresses in a 1 Kbyte sector of Flash memory using an 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 block, 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.
1138
1. Write to a Flash block 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 global address bits [9:0] and the
data written are ignored. Multiple Flash sectors can be simultaneously erased by writing to the
same relative address in each Flash block.
command.
Sector Erase Command
MC9S12XDP512 Data Sheet, Rev. 2.17
Figure
27-29. The sector erase
Freescale Semiconductor

Related parts for mc9s12xd256