English
Language : 

MC68HC908JW32_09 Datasheet, PDF (106/232 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
Monitor Mode (MON)
The coding example below is to perform a page erase, from $EE00–$EFFF. The Initialization subroutine
is the same as the coding example for PRGRNGE (see 7.5.1 PRGRNGE).
ERARNGE
EQU
$FE13
MAIN:
BSR INITIALISATION
:
:
LDHX #FILE_PTR
JSR ERARNGE
:
7.5.3 LDRNGE
LDRNGE is used to load the data array in RAM with data from a range of FLASH locations.
Table 7-13. LDRNGE Routine
Routine Name LDRNGE
Routine Description Loads data from a range of locations
Calling Address $FA31
Stack Used 10 bytes
Data Block Format
Bus speed (BUS_SPD)
Data size (DATASIZE)
Starting address (ADDRH)
Starting address (ADDRL)
Data 1
:
Data N
The start location of FLASH from where data is retrieved is specified by the address ADDRH:ADDRL and
the number of bytes from this location is specified by DATASIZE. The maximum number of bytes that can
be retrieved in one routine call is 255 bytes. The data retrieved from FLASH is loaded into the data array
in RAM. Previous data in the data array will be overwritten. User can use this routine to retrieve data from
FLASH that was previously programmed.
The coding example below is to retrieve 64 bytes of data starting from $EE00 in FLASH. The Initialization
subroutine is the same as the coding example for PRGRNGE (see 7.5.1 PRGRNGE).
LDRNGE
EQU
$FA31
MAIN:
BSR INITIALIZATION
:
:
LDHX #FILE_PTR
JSR LDRNGE
:
MC68HC908JW32 Data Sheet, Rev. 6
106
Freescale Semiconductor