English
Language : 

MC68HC908AZ60 Datasheet, PDF (61/480 Pages) Motorola, Inc – HCMOS Microcontroller Unit
Smart
Programming
Algorithm
9-flash-2
MOTOROLA
FLASH-2 Memory
FLASH Program/Margin Read Operation
Page Program/Margin Read Procedure
Note: This algorithm is mandatory for
programming the FLASH 2TS.
Note: This page program algorithm
assumes the page/s to be programmed
are initially erased.
Program FLASH 2TS
Set Interrupt Mask: SEI Instruction
(see note above)
Initialize Attempt Counter
to Zero
Set PGM Bit and FDIV bits
Read Flash Block Protect Register
Write Data to
Selected Page
Set HVEN Bit
Wait tSTEP
Clear HVEN Bit
Wait tHVTV
Set MARGIN Bit
Wait tVTP
Clear PGM Bit
Wait tHVD
Margin Read Page of Data
Clear MARGIN Bit
Increment Attempt Counter
N
Attempt Count
Equal To
flsPULSES?
Y
Programming Operation
Failed
N
Margin Read Data
Equal To
Write Data?
Y
Clear MARGIN Bit
Clear Interrupt Mask: CLI Instr.
(see note above)
Programming Operation
Complete
FLASH-2 Memory
MC68HC908AZ60 — Rev 2.0
59