AN2302 Freescale Semiconductor / Motorola, AN2302 Datasheet - Page 24

no-image

AN2302

Manufacturer Part Number
AN2302
Description
EEPROM Emulation for the MC9S12C32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2302/D
EE_RAMFuncs.h
EE_RAMfuncs.c
24
The file EE_Emulation contains function prototypes for the files in
EE_RAMFuncs.c. Remember to add function prototypes for any user defined
interrupt service routines added to EE_RAMFuncs.c. EECALLBACK should be
defined in this file to enable EECallBackFunc. This file is included in
EE_Emulation.c and VectorTable.c.
This file should contain all functions which are required to execute from RAM
while the Flash is being programmed or erased. These will include:
ProgFlash - always required,
EECallBackFunc - required if EECALLBACK defined.
In addition, if IRQ_DURING_PROG is defined, all user defined interrupt service
routines for interrupts which will remain enabled during programming and
erasure must be located in this file. Interrupt service routines for non-essential
interrupts which are disabled during programming and erasure should be located
in Flash and not in this file i.e. not in the code segment RAM_FUNCTIONS.
All functions in this file are located in the code segment RAM_FUNCTIONS.
This file is compiled and linked to its final RAM address as a ROM library prior
to being linked into the final application with EE_Emulation.c. This ensures that
all calls to functions within this file result in calls to the final execution
addresses, which is more efficient than calling the functions using function
pointers. The ROM library is then appended to the final application file with an
offset resulting in a Flash address. This process is described in the Example
Project section.
Freescale Semiconductor, Inc.
For More Information On This Product,
EEPROM Emulation for the MC9S12C32
Go to: www.freescale.com
MOTOROLA

Related parts for AN2302