AN2302 Freescale Semiconductor / Motorola, AN2302 Datasheet - Page 15

no-image

AN2302

Manufacturer Part Number
AN2302
Description
EEPROM Emulation for the MC9S12C32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MOTOROLA
Freescale Semiconductor, Inc.
For More Information On This Product,
EEPROM Emulation for the MC9S12C32
Add (ActiveBank * (EEPROM_SIZE_BYTES + 2))
EEPROM start address = start of new bank + 2
to EEPROM destination address to get new
Go to: www.freescale.com
Next EEPROM address
EEPROM address less
Increment ActiveBank
destination address ?
prescaler initialised?
Erase flash sector(s)
destination address?
EraseEepromBank:
destination location
Program new bank
ProgEepromWord:
than word aligned
Figure 4. WriteEeprom Flow Diagram
Valid EEPROM
with data word
from old bank.
WriteEeprom
Flash clock
New flash
sector?
Yes
Yes
Yes
Yes
No
Yes
No
Bank erased?
No
address word
No
destination
EEPROM
aligned?
Yes
A
No
Return FAIL
Next EEPROM address
Decrement size by 1
comprising one byte
ProgEepromWord:
old bank, one byte
Program word
No
new data.
Software Description
AN2302/D
15

Related parts for AN2302