//****************************************************************************//
// Project : Simulator
// Author  : JR (c) RAISONANCE S.A. 2003
//****************************************************************************//
// File    : ST72324K2.SIM
// Purpose : File to define the ST72324K2 simulator.
//
// Modification :
// JR: 01/09/2003: Creation
// MI: 03/12/2003: Name changed: ST72F324K2 become ST72324K2
//****************************************************************************//

[Description]
Name = ST72324K2

//****************************************************************************//
// Space
//****************************************************************************//
[Space]
CodeSize = 0x2000
CodeStart = 0xE000
StackSize = 0x100
StackStart = 0x100
Page1Start = 0x100
RAMSize = 0x180
RAMStart = 0x80
HardSize = 0x7F
EEPROMSize = 0
EEPROMStart = 0
Flash1EPROM0 = 0x29

//****************************************************************************//
// Timer
//****************************************************************************//
[Timer]
HasClockManager = 0
WDGconfig = 0x23E2A

//****************************************************************************//
// Port
//****************************************************************************//
[Ports]
PA_MASK = 0xD8
PA_DR = 0x00
PA_MASK_ADC = 0x00
PB_MASK = 0x19
PB_DR = 0x03
PB_MASK_ADC = 0x00
PC_MASK = 0xFF
PC_DR = 0x06
PC_MASK_ADC = 0x00
PD_MASK = 0x03
PD_DR = 0x09
PD_MASK_ADC = 0x00
PE_MASK = 0x03
PE_DR = 0x0C
PE_MASK_ADC = 0x00
PF_MASK = 0xD3
PF_DR = 0x0F
PF_MASK_ADC = 0x00
PG_MASK = 0
PG_DR = 0
PG_MASK_ADC = 0
PH_MASK = 0
PH_DR = 0
PH_MASK_ADC = 0

//****************************************************************************//
// External interrupts
//****************************************************************************//
[ExtInterrupt]
intAddr0 = 0xFFF6
intPort0 = 0x080800
intConf0 = 0x041828
intPrio0 = 0x3024
intAddr1 = 0xFFF4
intPort1 = 0x0305
intConf1 = 0x001828
intPrio1 = 0xC024
intAddr2 = 0xFFF2
intPort2 = 0x080901
intConf2 = 0x20C028
intPrio2 = 0x0325
intAddr3 = 0xFFF0
intPort3 = 0x1001
intConf3 = 0x00C028
intPrio3 = 0x0C25
intAddr4 = 0
intPort4 = 0
intConf4 = 0
intPrio4 = 0
intAddr5 = 0
intPort5 = 0
intConf5 = 0
intPrio5 = 0
intAddr6 = 0
intPort6 = 0
intConf6 = 0
intPrio6 = 0

//****************************************************************************//
// Core
//****************************************************************************//
[Core]
JRIHMask = 2
PeriphRegSet = 2

//****************************************************************************//
// SCI
//****************************************************************************//
[SCI]
SCIconfig0 = 0x4140
SCIIntConf0 = 0xFFE63026
SCIconfig1 = 0
SCIIntConf1 = 0

SCIName = ST72321

//****************************************************************************//
// I2C
//****************************************************************************//
[I2C]
I2Cconfig = 0
I2CIntConf = 0

//****************************************************************************//
// SPI
//****************************************************************************//
[SPI]
SPIconfig = 0x24252627
SPIIntConf = 0xFFECC025

//****************************************************************************//
// ADC
//****************************************************************************//
[ADC]
ADCconfig = 0xF2
ADCIntConf = 0
