English
Language : 

MC68HC912DG128 Datasheet, PDF (425/452 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Appendix: MC68HC912DG128A Flash
Erasing the Flash EEPROM
21.9 Erasing the Flash EEPROM
The following sequence demonstrates the recommended procedure for
erasing any of the Flash EEPROM array.
1. Set the ERAS bit.
2. Write to any valid address in the Flash array. The data written and
the address written are not important. The boot block will be
erased only if the control bit BOOTP is negated.
3. Wait for a time, tNVS (min. 10µs).
4. Set the HVEN bit.
5. Wait for a time, tERAS (min. 8ms).
6. Clear the ERAS bit.
7. Wait for a time, tNVHL (min. 100µs).
8. Clear the HVEN bit.
9. After time, tRCV (min 1µs), the memory can be accessed in read
mode again.
21.10 Stop or Wait Mode
When stop or wait commands are executed, the MCU puts the Flash
EEPROM in stop or wait mode. In these modes the Flash module will
cease erasure or programming immediately.
CAUTION: It is advised not to enter stop or wait modes when program or erase
operation of the Flash array is in progress.
MC68HC912DG128 — Rev 3.0
MOTOROLA
Appendix: MC68HC912DG128A Flash
For More Information On This Product,
Go to: www.freescale.com
Technical Data
425