AN2302 Freescale Semiconductor / Motorola, AN2302 Datasheet - Page 27

no-image

AN2302

Manufacturer Part Number
AN2302
Description
EEPROM Emulation for the MC9S12C32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
EECallBackFunc
VectorTable.c
Start12.c
mcucfg.h
OSCCLK_FREQ_
KHZ
PLL_ENABLED
REFDV
MOTOROLA
Parameters:
Prototype:
Example :
Return:
This is a user defined function which is enabled by defining EECALLBACK in
EE_RAMfuncs.h. If enabled, this function is called repeatedly by ProgFlash
while waiting for the CCIF flag to be set during program and erase operations.
This function is copied to and executed from RAM. This function could be used
to refresh a watchdog for example.
void EECallBackFunc(void)
void.
void.
EECallbackFunc(void);
This file is only required if interrupts must be serviced during programming
(IRQ_DURING_PROG defined). This file contains the vector table that is
copied into re-mapped RAM. This vector table must contain the addresses of
ALL interrupt service routines - those which will be located in RAM and those
located in Flash which are disabled during programming. The reset vector is not
required in this table and must be located at address 0xFFFE in Flash, as the
re-mapped RAM will be moved back to its default location during a reset.
This is the default start up file included with the Metrowerks Codewarrior
stationery that has been modified slightly. This modification is only required if
interrupts must be serviced during programming (IRQ_DURING_PROG
defined). In this case, the INITRM register is initialised with 0xF9 to re-map the
RAM to the top of the memory map.
This file contains some general MCU configuration data that is required for
correct determination of macros etc.
This value defines the frequency of the MCU oscillator in kHz. The defined
value must have an "L" appended (e.g. 8000L) to force a long type so that the
FCLK_PRESCALER macro works correctly.
This value should be defined if the PLL will be enabled. PLL initialisation code
is not included in this example.
If PLL_ENABLED is defined, the value for the REFDV register should be
defined so that the BUSCLK_FREQ_KHZ macro can be evaluated.
Freescale Semiconductor, Inc.
For More Information On This Product,
EEPROM Emulation for the MC9S12C32
Go to: www.freescale.com
Software Description
AN2302/D
27

Related parts for AN2302