AN2302 Freescale Semiconductor / Motorola, AN2302 Datasheet - Page 33

no-image

AN2302

Manufacturer Part Number
AN2302
Description
EEPROM Emulation for the MC9S12C32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
EE Emulation with
IRQs
NAMES
END
SECTIONS
END
PLACEMENT
END
STACKSIZE 0x100
ENTRIES
VectorTable
END
VECTOR ADDRESS 0xFFFE
HEXFILE EE_RAMfuncsIRQ.sx OFFSET 0xFFFFD100
MOTOROLA
TIMER_REGS
FLASH_REGS
RAM
RAM_FUNCS
FLASH_EEPROM
FLASH_CODE
PRESTART, STARTUP,
ROM_VAR, STRINGS,
NON_BANKED, DEFAULT_ROM,
COPY
RAM_FUNCTIONS
EEPROM_STAT, EEPROM_VARS
DEFAULT_RAM
FLASH_REG
IMER_REG
_Startup
This target is provided to build the final application with interrupts enabled
during programming and erasure.
The files EE_Emulation.c, VectorTable.c and main.c are compiled and linked
together with the ROM library generated in the "EE RAM functions with IRQs"
target, generating the absolute file EE_EmulationIRQ.abs.
The compiler directive "-DIRQ_DURING_PROG" is specified on the compiler
command line to activate the code required to enable interrupts to be serviced.
The linker directive "-AddEE_RAMfuncsIRQ.abs" is specified on the linker
command line to link in the previously generated ROM library.
The linker directive "-M" is specified on the linker command line so that a map
file is generated.
The application is linked to the addresses specified in the associated prm file,
EE_Emulation_IRQ.prm, listed below:
= NO_INIT
= NO_INIT
= READ_WRITE
= NO_INIT
= NO_INIT
= READ_ONLY
Freescale Semiconductor, Inc.
For More Information On This Product,
EEPROM Emulation for the MC9S12C32
INTO
INTO
INTO
INTO
INTO
INTO
Go to: www.freescale.com
FLASH_CODE;
FLASH_COPY;
FLASH_EEPROM;
RAM;
FLASH_REGS;
TIMER_REGS;
0x0040 TO 0x006F;
0x0100 TO 0x010F;
0xF800 TO 0xFEFF;
/* reserve for RAM_FUNCS */
0xFF00 TO 0xFF7F;
/* min 2 complete sectors */
0xC000 TO 0xC3FF;
0xD100 TO 0xD7FF;
/* reset vector only */
/* 0xFFFFD100 + 0xFF00 = 0xD000 = FLASH_COPY_START */
/* EEPROM_STAT must be first */
Example Project
AN2302/D
33

Related parts for AN2302