mc68hc908ap8a Freescale Semiconductor, Inc, mc68hc908ap8a Datasheet - Page 129

no-image

mc68hc908ap8a

Manufacturer Part Number
mc68hc908ap8a
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
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
ERARNGE
MAIN:
8.5.3 LDRNGE
LDRNGE is used to load the data array in RAM with data from a range of FLASH locations.
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
LDRNGE
MAIN:
Freescale Semiconductor
BSR
:
:
LDHX
JSR
:
BSR
:
:
LDHX
JSR
:
Routine Description
Data Block Format
EQU
INITIALISATION
#FILE_PTR
ERARNGE
EQU
INITIALIZATION
#FILE_PTR
LDRNGE
Calling Address
Routine Name
Stack Used
$FCE4
$FC00
MC68HC908AP A-Family Data Sheet, Rev. 3
LDRNGE
Loads data from a range of locations
$FC00
7 bytes
Bus speed (BUS_SPD)
Data size (DATASIZE)
Starting address (ADDRH)
Starting address (ADDRL)
Data 1
Data N
Table 8-13. LDRNGE Routine
:
8.5.1
PRGRNGE).
8.5.1
PRGRNGE).
ROM-Resident Routines
129

Related parts for mc68hc908ap8a