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

no-image

MC68HC908LJ12CPB

Manufacturer Part Number
MC68HC908LJ12CPB
Description
8-bit microcontroller units
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
10.6.2 ERARNGE
MC68HC908LJ12
Freescale Semiconductor
Rev. 2.1
ERARNGE is used to erase a range of locations in FLASH.
There are two sizes of erase ranges: a page or the entire array. The
ERARNGE will erase the page (128 consecutive bytes) in FLASH
specified by the address ADDRH:ADDRL. This address can be any
address within the page. Calling ERARNGE with ADDRH:ADDRL equal
to $FFFF will erase the entire FLASH array (mass erase). Therefore,
care must be taken when calling this routine to prevent an accidental
mass erase.
The ERARNGE routine do not use a data array. The DATASIZE byte is
a dummy byte that is also not used.
The coding example below is to perform a page erase, from
$EF00–$EF7F. The Initialization subroutine is the same as the coding
example for PRGRNGE (see
ERARNGE
MAIN:
Routine Name
Routine Description
Calling Address
Stack Used
Data Block Format
BSR
:
:
LDHX
JSR
:
Monitor ROM (MON)
EQU
INITIALISATION
FILE_PTR
ERARNGE
Table 10-12. ERARNGE Routine
ERARNGE
Erase a page or the entire array
$FCBE
9 bytes
Bus speed (BUS_SPD)
Data size (DATASIZE)
Starting address (ADDRH)
Starting address (ADDRL)
$FCBE
10.6.1
PRGRNGE).
Monitor ROM (MON)
Technical Data
175

Related parts for MC68HC908LJ12CPB