MC908JL16CFAE FREESCALE [Freescale Semiconductor, Inc], MC908JL16CFAE Datasheet - Page 201

no-image

MC908JL16CFAE

Manufacturer Part Number
MC908JL16CFAE
Description
Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
16.3.9.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
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
EE_READ
MAIN:
Freescale Semiconductor
BSR
:
:
LDHX
JSR
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 2 to 15. When the EE_READ
routine detects a different data size from the size setup in the previous
operation, the operation will not be executed.However in some situations,
the routine cannot detect incorrect data size. The user must ensure that
data size is same as the previous operation whenever this routine is
executed.
EQU
INITIALIZATION
FILE_PTR
EE_READ
Routine Description
1. The start address must be a page boundary start address: $xx00, $xx40, $xx80,
Data Block Format
or $00C0.
Calling Address
Routine Name
Stack Used
$FDD0
Table 16-18. EE_READ Routine
MC68HC908JL16 Data Sheet, Rev. 1.1
EE_READ
Emulated EEPROM read. Data size ranges from 2 to 15
bytes at a time.
$FDD0
18 bytes
Bus speed (BUS_SPD)
Data size (DATASIZE)
Starting address (ADDRH)
Starting address (ADDRL)
Data 1
Data N
:
NOTE
(1)
(1)
16.3.9.7
Monitor Module (MON)
EE_WRITE).
16.3.9.7
201

Related parts for MC908JL16CFAE