English
Language : 

MC68HC908JW32_09 Datasheet, PDF (103/232 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
ROM-Resident Routines
7.5 ROM-Resident Routines
Five routines stored in the monitor ROM area (thus ROM-resident) are provided for FLASH memory
manipulation. They are intended to simplify FLASH program, erase and load operations. Table 7-10
shows a summary of the ROM-resident routines.
Table 7-10. Summary of ROM-Resident Routines
Routine Name
PRGRNGE
ERARNGE
LDRNGE
MON_PRGRNGE
MON_ERARNGE
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
Call
Address
$FE10
$FE13
$FA31
$FF24
$FF28
Stack Used
(bytes)
16
10
10
18
12
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 7-8.
FILE_PTR
$XXXX
ADDRESS AS POINTER
DATA
ARRAY
RAM
BUS SPEED (BUS_SPD)
DATA SIZE (DATASIZE)
START ADDRESS HIGH (ADDRH)
START ADDRESS LOW (ADDRL)
DATA 0
DATA 1
DATA
BLOCK
DATA N
Figure 7-8. Data Block Format for ROM-Resident Routines
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.
MC68HC908JW32 Data Sheet, Rev. 6
Freescale Semiconductor
103