AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 33

no-image

AN2156

Manufacturer Part Number
AN2156
Description
Programming and Erasing FLASH and EEPROM Memories on the MC68HC908AS60A/AZ60A
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Standard EEPROM Program Operation
AUTO Mode EEPROM Program Operation
AN2156
MOTOROLA
NOTE:
NOTE:
Follow the next procedure to program one byte of EEPROM. Ensure that
the block protection feature is disabled for the byte to be programmed.
This EEPROM program operation is compatible with the
MC68HC908AS60/AZ60 EEPROM program operation.
The flowchart for this programming algorithm is shown in
The byte must be erased before programming.
Follow the next procedure to program one byte of EEPROM using the
AUTO feature. Ensure that the block protection feature is disabled for
the byte to be programmed.
On this EEPROM memory, another program operation is provided. It is
called AUTO mode. When AUTO mode is selected, the program cycle is
terminated by the internal timer, which polls the EEPGM bit in the
EExCR register. Therefore, fixed delays are not required with the AUTO
mode operation.
The flowchart for this programming algorithm is shown in
The byte must be erased before programming.
1. Clear EERAS1 and EERAS0 and set EELAT in the EExCR.
2. Write the desired data byte to the desired EEPROM address.
3. Set the EEPGM bit.
4. Wait for a time, t
5. Clear the EEPGM bit.
6. Wait for a time, t
7. Clear the EELAT bit.
8. Repeat steps 1 to 7 to program additional bytes in the EEPROM
Freescale Semiconductor, Inc.
For More Information On This Product,
arrays.
Go to: www.freescale.com
EEPGM
EEFPV
, for the programming voltage to fall.
, to program the byte.
Standard EEPROM Program Operation
Figure
Figure
Application Note
14.
14.
33

Related parts for AN2156