AN2400 Freescale Semiconductor / Motorola, AN2400 Datasheet - Page 18

no-image

AN2400

Manufacturer Part Number
AN2400
Description
HCS12 NVM Guidelines
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2400/D
18
Freescale Semiconductor, Inc.
For More Information On This Product,
No
Go to: www.freescale.com
Write the BLKSEL bits in FCNFG to
select next desired Flash block
Verify that the PVIOL and ACCERR
flags are clear for all combinations of
Figure 17. Parallel Flash Block Programming
HCS12 NVM Guidelines
Write data to word aligned
Programming failed.
Write $80 to FSTAT
Write $20 to FCMD
Programming $8000
- $BFFF for selected
Initialise FCLKDIV
program address
ACCERR set in
the BLKSEL bits
Yes
CBEIF set in
FSTAT?
PVIOL or
FSTAT?
block?
No
Yes
Write PPAGE register to
appropriate value.
No
No
Yes
Programming successful.
Yes
More data to
FSTAT set?
program?
CCIF in
No
MOTOROLA
Yes

Related parts for AN2400