English
Language : 

MC68HC908LJ24 Datasheet, PDF (188/464 Pages) Motorola, Inc – Microcontrollers
Monitor ROM (MON)
10.6.7 EE_WRITE
EE_WRITE is used to write a set of data from the data array to FLASH.
Table 10-17. EE_WRITE Routine
Routine Name
EE_WRITE
Routine Description
Emulated EEPROM write. Data size ranges from 2 to 15
bytes at a time.
Calling Address
$FC00
Stack Used
17 bytes
Data Block Format
Bus speed (BUS_SPD)
Data size (DATASIZE)(1)
Starting address (ADDRH)(2)
Starting address (ADDRL)(1)
Data 1
:
Data N
Notes:
1. The minimum data size is 2 bytes. The maximum data size is 15 bytes.
2. The start address must be a page boundary start address, e.g. $xx00 or $xx80.
The start location of the FLASH to be programmed is specified by the
address ADDRH:ADDRL and the number of bytes in the data array is
specified by DATASIZE. The minimum number of bytes that can be
programmed in one routine call is 2 bytes, the maximum is 15 bytes.
ADDRH:ADDRL must always be the start of boundary address (the page
start address: $XX00 or $0080) and DATASIZE must be the same size
when accessing the same page.
In some applications, the user may want to repeatedly store and read a
set of data from an area of non-volatile memory. This is easily possible
when using an EEPROM array. As the write and erase operations can
be executed on a byte basis. For FLASH memory, the minimum erase
size is the page — 128 bytes per page for MC68HC908LJ24. If the data
array size is less than the page size, writing and erasing to the same
page cannot fully utilize the page. Unused locations in the page will be
wasted. The EE_WRITE routine is designed to emulate the properties
similar to the EEPROM. Allowing a more efficient use of the FLASH page
for data storage.
Data Sheet
188
Monitor ROM (MON)
MC68HC908LJ24/LK24 — Rev. 2.1
Freescale Semiconductor