English
Language : 

MC68HC908LJ24 Datasheet, PDF (179/464 Pages) Motorola, Inc – Microcontrollers
Monitor ROM (MON)
ROM-Resident Routines
10.6 ROM-Resident Routines
Eight routines stored in the monitor ROM area (thus ROM-resident) are
provided for FLASH memory manipulation. Six of the eight routines are
intended to simplify FLASH program, erase, and load operations. The
other two routines are intended to simplify the use of the FLASH memory
as EEPROM. Table 10-10 shows a summary of the ROM-resident
routines.
Table 10-10. Summary of ROM-Resident Routines
Routine Name
PRGRNGE
ERARNGE
LDRNGE
MON_PRGRNGE
MON_ERARNGE
MON_LDRNGE
EE_WRITE
EE_READ
Routine Description
Program a range of locations
Erase a page or the entire array
Loads data from a range of locations
Program a range of locations in
monitor mode
Erase a page or the entire array in
monitor mode
Loads data from a range of locations
in monitor mode
Emulated EEPROM write. Data size
ranges from 2 to 15 bytes at a time.
Emulated EEPROM read. Data size
ranges from 2 to 15 bytes at a time.
Call
Address
$FC06
$FCBE
$FF30
$FF28
$FF2C
$FF24
$FC00
$FC03
Stack Used
(bytes)
14
9
9
16
11
11
17
15
The routines are designed to be called as stand-alone subroutines in the
user program or monitor mode. The parameters that are passed to a
routine are in the form of a contiguous data block, stored in RAM. The
index register (H:X) is loaded with the address of the first byte of the data
block (acting as a pointer), and the subroutine is called (JSR). Using the
start address as a pointer, multiple data blocks can be used, any area of
RAM be used. A data block has the control and data bytes in a defined
order, as shown in Figure 10-9.
During the software execution, it does not consume any dedicated RAM
location, the run-time heap will extend the system stack, all other RAM
location will not be affected.
MC68HC908LJ24/LK24 — Rev. 2.1
Freescale Semiconductor
Monitor ROM (MON)
Data Sheet
179