MC68HC908AP16CFA MOTOROLA [Motorola, Inc], MC68HC908AP16CFA Datasheet - Page 172

no-image

MC68HC908AP16CFA

Manufacturer Part Number
MC68HC908AP16CFA
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
Monitor ROM (MON)
10.5.2 ERARNGE
Data Sheet
172
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 (512 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
$EE00–$EFFF. 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
Freescale Semiconductor, Inc.
For More Information On This Product,
BSR
:
:
LDHX
JSR
:
Go to: www.freescale.com
EQU
INITIALISATION
#FILE_PTR
ERARNGE
Table 10-12. ERARNGE Routine
ERARNGE
Erase a page or the entire array
$FCE4
9 bytes
Bus speed (BUS_SPD)
Data size (DATASIZE)
Starting address (ADDRH)
Starting address (ADDRL)
$FCE4
10.5.1
PRGRNGE).
MC68HC908AP Family — Rev. 2.5
MOTOROLA

Related parts for MC68HC908AP16CFA