AN2302 Freescale Semiconductor / Motorola, AN2302 Datasheet - Page 28

no-image

AN2302

Manufacturer Part Number
AN2302
Description
EEPROM Emulation for the MC9S12C32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2302/D
SYNR
TIMER_PRESCALER
_FACTOR
mottypes.h
s12_fectl.h
s12_stdtimer.h
Example Project
Example with
Interrupts Masked
during Programming
28
If PLL_ENABLED is defined, the value for the SYNR register should be defined
so that the BUSCLK_FREQ_KHZ macro can be evaluated.
This value is only required for the example if interrupts must be serviced during
programming (IRQ_DURING_PROG defined). This value defines the Timer
Prescaler Factor, permitted values are 1, 2, 4, 8, 16, 32, 64, and 128.
This file contains type definitions for common types such as unsigned char,
signed char, etc.
This file contains definitions for the Flash register structure as well as the
FCLK_PRESCALER macro. This macro is essential for the correct initialisation
of the Flash clock prescaler and depends on correct definitions of
OSCCLK_FREQ_KHZ and BUSCLK_FREQ_KHZ in mcucfg.h.
This file contains definitions for the standard timer register structure used on
the MC9S12C32. This file is only required for the example if interrupts must be
serviced during programming (IRQ_DURING_PROG defined).
A Metrowerks Codewarrior example project is available for download to
accompany this paper. The pertinent features of this project are explained
here, along with instructions on how to build the project.
The project is split into 4 targets, 2 for the case where interrupts are masked
during programming and erasure, and 2 for the case where interrupts remain
enabled during programming and erasure.
In both cases, building the final application is a 2 step process. First the RAM
functions are built as a ROM library. The second step is to build the final
application linked to the ROM library and with the ROM library appended to the
final absolute or s-record file.
Two targets are provided to build an example with interrupts masked during
programming and erasure.
Freescale Semiconductor, Inc.
For More Information On This Product,
EEPROM Emulation for the MC9S12C32
Go to: www.freescale.com
MOTOROLA

Related parts for AN2302