Monitor ROM (MON)
8.5.7 EE_READ
EE_READ is used to load the data array in RAM with a set of data from FLASH.
Table 8-17. EE_READ Routine
Routine Name EE_READ
Emulated EEPROM read. Data size ranges from 7 to 15 bytes at
a time.
Routine Description
Calling Address $FD5B
Stack Used 18 bytes
Bus speed (BUS_SPD)
Data size (DATASIZE)
Starting address (ADDRH)(1)
Starting address (ADDRL)(1)
Data Block Format
Data 1
:
Data N
1. The start address must be a page boundary start address.
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 7 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 8.5.6
EE_WRITE). It loads the 15-byte data set stored in the $EE00–$EFFF page to the data array in RAM.
The initialization subroutine is the same as the coding example for EE_WRITE (see 8.5.6 EE_WRITE).
EE_READ
MAIN:
EQU
$FD5B
BSR
:
INITIALIZATION
:
LDHX
JSR
:
#FILE_PTR
EE_READ
NOTE
The EE_READ routine is unable to check for incorrect data blocks, such as
the FLASH page boundary address and data size. It is the responsibility of
the user to ensure the starting address indicated in the data block is at the
FLASH page boundary and the data size is 7 to 15. If the FLASH page is
programmed with a data array with a different size, the EE_READ call will
be ignored.
MC68HC908AP Family Data Sheet, Rev. 4
134
Freescale Semiconductor