AN2183 Freescale Semiconductor / Motorola, AN2183 Datasheet - Page 10

no-image

AN2183

Manufacturer Part Number
AN2183
Description
Using FLASH as EEPROM on the MC68HC908GP32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
10
FlashEE sections. Each command is followed by either "1" or "2" to
indicate the desired FlashEE section.
The commands are:
An example of the host terminal display during a simple test session
using FlashEE1 with a block size of five bytes is shown in
program implements a default prompt to the user of FlashEE>.
The first user command is d1, or "dump the contents of FlashEE1." All
128 bytes are printed out in a format that is relatively easy to read. Note
that at this point, the entire FlashEE section is erased (i.e., all locations
contain $FF). The second command issued is r1, or "read the most
recent FlashEE1 data block." Since FlashEE1 is erased, a message is
sent indicating that no data is currently stored in FlashEE1.
Next, the user has requested that a block of data be written into
FlashEE1 with w1. The program responds with an equal sign (=) and
then accepts the correct number of hexadecimal values (five in total for
FlashEE1). The user verifies that the data has been programmed
correctly by first using the r1 command, and secondly with d1 which
clearly indicates where the data has been stored.
The user enters another block of data with the next w1 command. The
following d1 entry shows that the new data has been correctly stored in
the next data block location. And the next r1 command confirms that the
read subroutine correctly identifies which is the most recent data.
Continuing with this method, the demo program provided was used to
test and verify the correct operation of the FlashEE subroutines.
Freescale Semiconductor, Inc.
For More Information On This Product,
R — Read FlashEE
E — Erase FlashEE
W — Write FlashEE
D — Dump FlashEE
Go to: www.freescale.com
Figure
MOTOROLA
2. The
AN2183

Related parts for AN2183