English
Language : 

MC68HC08JL8 Datasheet, PDF (95/212 Pages) Freescale Semiconductor, Inc – Microcontrollers
ROM-Resident Routines
Table 7-10. Summary of ROM-Resident Routines
Routine Name
Routine Description
Call Address
PRGRNGE
Program a range of locations
$FC06
ERARNGE
Erase a page or the entire array
$FCBE
LDRNGE
Loads data from a range of locations
$FF30
MON_PRGRNGE
Program a range of locations in monitor
mode
$FF28
MON_ERARNGE
Erase a page or the entire array in monitor
mode
$FF2C
MON_LDRNGE
Loads data from a range of locations in
monitor mode
$FF24
EE_WRITE
Emulated EEPROM write. Data size ranges
from 2 to 15 bytes at a time.
$FD3F
EE_READ
Emulated EEPROM read. Data size ranges
from 2 to 15 bytes at a time.
$FDD0
1. The listed stack size excludes the 2 bytes used by the calling instruction, JSR.
Stack Used(1)
(bytes)
15
9
9
17
11
11
24
16
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.
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.
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
MC68HC908JL8/JK8 • MC68HC08JL8/JK8 • MC68HC908KL8 Data Sheet, Rev. 3.1
Freescale Semiconductor
95