MC68HC908LJ12CPB FREESCALE [Freescale Semiconductor, Inc], MC68HC908LJ12CPB Datasheet - Page 170

no-image

MC68HC908LJ12CPB

Manufacturer Part Number
MC68HC908LJ12CPB
Description
8-bit microcontroller units
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
10.6 ROM-Resident Routines
MC68HC908LJ12
Freescale Semiconductor
MON_PRGRNGE
MON_ERARNGE
Rev. 2.1
MON_LDRNGE
Routine Name
EE_WRITE
PRGRNGE
ERARNGE
EE_READ
LDRNGE
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 simply FLASH program, erase, and load operations. The
other two routines are intended to simply the use of the FLASH memory
as EEPROM.
routines.
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
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.
Table 10-10. Summary of ROM-Resident Routines
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.
Table 10-10
Monitor ROM (MON)
Routine Description
Figure
10-9.
shows a summary of the ROM-resident
Address
$FC06
$FCBE
$FF30
$FF28
$FF2C
$FF24
$FC00
$FC03
Call
Monitor ROM (MON)
Technical Data
Stack Used
(bytes)
14
16
11
11
17
15
9
9
171

Related parts for MC68HC908LJ12CPB