AN2302 Freescale Semiconductor / Motorola, AN2302 Datasheet - Page 21

no-image

AN2302

Manufacturer Part Number
AN2302
Description
EEPROM Emulation for the MC9S12C32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
EraseEepromBank
MOTOROLA
Prototype:
This static function is called to erase a bank of emulated EEPROM. If the
EEPROM bank size is less than or equal to the size of a flash sector, one sector
is erased. If the EEPROM bank size is greater than the flash sector size, then
as many sectors as required are erased. Each sector takes approximately
20ms. Interrupts are masked if IRQ_DURING_PROG is not defined. This
function is not callable by the application.
UINT8 EraseEepromBank(UINT16 *eepromAddr);
Freescale Semiconductor, Inc.
For More Information On This Product,
EEPROM Emulation for the MC9S12C32
Go to: www.freescale.com
Figure 9. ProgramEepromWord Flow Diagram
ProgEepromWord
Increment flash
address pointer
programming?
programming?
program flash
Return status
prog word =
ProgFlash:
Interrupts
Interrupts
during
during
data?
word
Yes
Yes
Yes
status = FAIL
MaskInterrupts
RestoreCCR
No
No
No
Software Description
AN2302/D
21

Related parts for AN2302