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

no-image

MC68HC908LJ12CPB

Manufacturer Part Number
MC68HC908LJ12CPB
Description
8-bit microcontroller units
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
MC68HC908LJ12
Freescale Semiconductor
Rev. 2.1
When the user dedicates a page of FLASH for data storage, and the size
of the data array defined, each call of the EE_WRTIE routine will
automatically transfer the data in the data array (in RAM) to the next
blank block of locations in the FLASH page. Once a page is filled up, the
EE_WRITE routine automatically erases the page, and starts reuse the
page again. In the 128-byte page, an 8-byte control block is used by the
routine to monitor the utilization of the page. In effect, only 120 bytes are
used for data storage. (see
are transparent to the user.
When using this routine to store a 2-byte data array, the FLASH page
can be programmed 60 times before the an erase is required. In effect,
the write/erase endurance is increased by 60 times. When a 15-byte
data array is used, the write/erase endurance is increased by 8 times.
Due to the FLASH page size limitation, the data array is limited from 2
bytes to 15 bytes.
The coding example below uses the $EF00–$EE7F page for data
storage. The data array size is 15 bytes, and the bus speed is
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.
PAGE BOUNDARY
PAGE BOUNDARY
Figure 10-10. EE_WRITE FLASH Memory Usage
ONE PAGE = 128 BYTES
Monitor ROM (MON)
Figure
CONTROL: 8 BYTES
F L A S H
DATA ARRAY
DATA ARRAY
DATA ARRAY
10-10). The page control operations
$XX00 OR $XX80
Monitor ROM (MON)
Technical Data
181

Related parts for MC68HC908LJ12CPB