This document outlines basic routines to program the FLASH EEPROMthrough the background debug mode interface (BDM) using a Motorolaserial debug interface (SDIL) and the SDBUG12 (version 2.15) softwarefrom P & E Microcomputer Systems, Inc.One of the reasons the MC68HC912B32 device is so useful is that itcontains 32 Kbytes of embedded FLASH EEPROM. This module servesas electrically programmable and erasable, non-volatile ROM emulationmemory, allowing for storage of program code which must be executedfrequently, must execute at high speeds, or which might need to beupgraded in the field at a later time. Commonly used code segments,such as standard subroutines or even operating systems, as well asstatic data tables can be stored in the FLASH EEPROM.