AN2690 Freescale Semiconductor / Motorola, AN2690 Datasheet - Page 18

no-image

AN2690

Manufacturer Part Number
AN2690
Description
Low Frequency EEPROM Emulation on the MC68HLC908QY4
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2690
ProgEEPROM Flow
Diagram
18
Low Frequency EEPROM Emulation on the MC68HLC908QY4
This routine reads the last data written into EEPROM, increments the count
value and reprograms the EEPROM with the current LED status, the current
ApplicationFlags and an updated count value.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
Figure 10. Program EEPROM
Store count, ApplicationFlags and
Load accumulator with block size
Load accumulator with block size
Get and increment count value
load H:X with start address of
and save a copy on the Stack
current PortB in RAM block in
load H:X with start address of
preparation for programming
block and returns first data
Gets pointer to last saved
Program next EEPROM
byte in accumulator
EEPROM block
EEPROM block
WrtBlock()
RdBlock()
EEPROM
ProgEE
block
RTS
MOTOROLA

Related parts for AN2690