mc9s12c32mpb16 Freescale Semiconductor, Inc, mc9s12c32mpb16 Datasheet - Page 559

no-image

mc9s12c32mpb16

Manufacturer Part Number
mc9s12c32mpb16
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
19.4.1.3.2
The program operation will program a previously erased word in the Flash array using an embedded
algorithm.
An example flow to execute the program operation is shown in
sequence is as follows:
If a word to be programmed is in a protected area of the Flash array, the PVIOL flag in the FSTAT register
will set and the program command will not launch. Once the program command has successfully launched,
the CCIF flag in the FSTAT register will set after the program operation has completed unless a new
command write sequence has been buffered. By executing a new program command write sequence on
sequential words after the CBEIF flag in the FSTAT register has been set, up to 55% faster programming
time per word can be effectively achieved than by waiting for the CCIF flag to set after each program
operation.
Freescale Semiconductor
1. Write to a Flash array address to start the command write sequence for the program command. The
2. Write the program command, 0x20, to the FCMD register.
3. Clear the CBEIF flag in the FSTAT register by writing a 1 to CBEIF to launch the program
data written will be programmed to the Flash array address written.
command.
Program Command
MC9S12C-Family / MC9S12GC-Family
Rev 01.23
Figure
Chapter 19 64 Kbyte Flash Module (S12FTS64KV4)
19-23. The program command write
559

Related parts for mc9s12c32mpb16