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

no-image

MC68HC908LJ12CPB

Manufacturer Part Number
MC68HC908LJ12CPB
Description
8-bit microcontroller units
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
10.6.1 PRGRNGE
MC68HC908LJ12
Freescale Semiconductor
Rev. 2.1
PRGRNGE is used to program a range of FLASH locations with data
loaded into the data array.
The start location of the FLASH to be programmed 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
programmed in one routine call is 255 bytes (max. DATASIZE is 255).
ADDRH:ADDRL do not need to be at a page boundary, the routine
handles any boundary misalignment during programming. A check to
see that all bytes in the specified range are erased is not performed by
this routine prior programming. Nor does this routine do a verification
after programming, so there is no return confirmation that programming
was successful. User must assure that the range specified is first
erased.
The coding example below is to program 64 bytes of data starting at
FLASH location $EF00, with a bus speed of 4.9152 MHz. The coding
assumes the data block is already loaded in RAM, with the address
pointer, FILE_PTR, pointing to the first byte of the data block.
Routine Name
Routine Description
Calling Address
Stack Used
Data Block Format
Monitor ROM (MON)
Table 10-11. PRGRNGE Routine
PRGRNGE
Program a range of locations
$FC06
14 bytes
Bus speed (BUS_SPD)
Data size (DATASIZE)
Start address high (ADDRH)
Start address (ADDRL)
Data 1 (DATA1)
Data N (DATAN)
:
Monitor ROM (MON)
Technical Data
173

Related parts for MC68HC908LJ12CPB