Datasheet

Monitor ROM (MON)
MC68HC908LJ12Rev. 2.1 Technical Data
Freescale Semiconductor Monitor ROM (MON) 183
10.6.8 EE_READ
EE_READ is used to load the data array in RAM with a set of data from
FLASH.
The EE_READ routine reads data stored by the EE_WRITE routine. An
EE_READ call will retrieve the last data written to a FLASH page and
loaded into the data array in RAM. Same as EE_WRITE, the data size
indicated by DATASIZE is 2 to 15, and the start address
ADDRH:ADDRL must the FLASH page boundary address.
The coding example below uses the data stored by the EE_WRITE
coding example (see 10.6.7 EE_WRITE). It loads the 15-byte data set
stored in the $EF00–$EE7F page to the data array in RAM. The
initialization subroutine is the same as the coding example for
EE_WRITE (see 10.6.7 EE_WRITE).
EE_READ EQU $FC03
MAIN:
BSR INITIALIZATION
:
:
LDHX FILE_PTR
JSR EE_READ
:
Table 10-18. EE_READ Routine
Routine Name EE_READ
Routine Description
Emulated EEPROM read. Data size ranges from 2 to 15
bytes at a time.
Calling Address $FC03
Stack Used 15 bytes
Data Block Format Bus speed (BUS_SPD)
Data size (DATASIZE)
Starting address (ADDRH)
(1)
Starting address (ADDRL)
(1)
Data 1
:
Data N
Notes:
1. The start address must be a page boundary start address, e.g. $xx00 or $xx80.