AN2302 Freescale Semiconductor / Motorola, AN2302 Datasheet - Page 23

no-image

AN2302

Manufacturer Part Number
AN2302
Description
EEPROM Emulation for the MC9S12C32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MaskInterrupts
RestoreCCR
MOTOROLA
Parameters:
Parameters:
Prototype:
Prototype:
Example:
Example:
Return:
Return
This static function is called to mask interrupts before programming and
erasing, if IRQ_DURING_PROG is not defined.
void MaskInterrupts(UINT8 *dest);
dest
void
MaskInterrupts(&CCRCopy);
This static function is called to restore the CCR to its previous value after
programming and erase, if IRQ_DURING_PROG is not defined.
void RestoreCCR(UINT8 src)
src
void
RestoreCCR(CCRCopy);
Freescale Semiconductor, Inc.
For More Information On This Product,
EEPROM Emulation for the MC9S12C32
pointer to storage location for CCR
value to store in CCR
Go to: www.freescale.com
Figure 11. MaskInterrupts flow diagram
Figure 12. RestoreCCR flow diagram
Transfer stored
MaskInterrupts
back into CCR
Set I-mask bit
RestoreCCR
Store CCR
CCR value
in CCR
Return
Return
Software Description
AN2302/D
23

Related parts for AN2302