AN2302 Freescale Semiconductor / Motorola, AN2302 Datasheet - Page 14

no-image

AN2302

Manufacturer Part Number
AN2302
Description
EEPROM Emulation for the MC9S12C32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2302/D
WriteEeprom
14
Parameters:
Prototype:
Example:
Return:
The WriteEeprom function is used to update a non-volatile data variable with a
new value. InitEeprom must have been called once before this function is
called. Whenever this function is called, a whole new bank is programmed. This
will take approximately (EEPROM_SIZE_BYTES + 2) x 25 s. Furthermore, if
there are no more erased banks in the current sector, then the next Flash
sector will be erased, this will take approximately 20ms. If the macro
IRQ_DURING_PROG is not defined, this routine will take care of masking
interrupts when required. InitEeprom must have been called once before this
function is called.
UINT8 WriteEeprom(void *destAddr, void *srcAddr, UINT16 size)
destAddr pointer to the non-volatile data variable to be updated.
srcAddr
size
PASS
FAIL
status = WriteEeprom(&EepromVar1, WriteBuffer, sizeof(EepromVar1));
Freescale Semiconductor, Inc.
For More Information On This Product,
EEPROM Emulation for the MC9S12C32
pointer to the new data to be written to the non-volatile data
variable.
size in bytes of the non-volatile data variable to be updated.
update was successful.
a programming failure occurred during the update process.
Go to: www.freescale.com
MOTOROLA

Related parts for AN2302