Datasheet

Monitor ROM (MON)
Technical Data MC68HC908LJ12Rev. 2.1
178 Monitor ROM (MON) Freescale Semiconductor
10.6.5 MON_ERARNGE
In monitor mode, ERARNGE is used to erase a range of locations in
FLASH.
The MON_ERARNGE routine is designed to be used in monitor mode.
It performs the same function as the ERARNGE routine (see 10.6.2
ERARNGE), except that MON_ERARNGE returns to the main program
via an SWI instruction. After a MON_ERARNGE call, the SWI instruction
will return the control back to the monitor code.
Table 10-15. MON_ERARNGE Routine
Routine Name MON_ERARNGE
Routine Description Erase a page or the entire array, in monitor mode
Calling Address $FF2C
Stack Used 11 bytes
Data Block Format Bus speed
Data size
Starting address (high byte)
Starting address (low byte)