//****************************************************************************//
// Project : Simulator
// Author  : JR (c) RAISONANCE S.A. 2003
//****************************************************************************//
// File    : ST72561K4.SIM
// Purpose : File to define the ST72521R4 simulator.
//
// Modification :
// JR: 10/28/2003: Creation
// MI: 03/12/2003; Name changed: ST72F561K6 become ST72561K6
//****************************************************************************//

[Description]
Name = ST72561K4

//****************************************************************************//
// Space
//****************************************************************************//
[Space]
CodeSize = 0x4000
CodeStart = 0xC000
StackSize = 0x100
StackStart = 0x100
Page1Start = 0x100
RAMSize = 0x400
RAMStart = 0x80
HardSize = 0x7F
EEPROMSize = 0
EEPROMStart = 0
Flash1EPROM0 = 0x24

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

//****************************************************************************//
// Port
//****************************************************************************//
[Ports]
PA_MASK = 0x25
PA_DR = 0x00
PA_MASK_ADC = 0x00
PB_MASK = 0xFE
PB_DR = 0x03
PB_MASK_ADC = 0x00
PC_MASK = 0xFF
PC_DR = 0x06
PC_MASK_ADC = 0x00
PD_MASK = 0x3F
PD_DR = 0x09
PD_MASK_ADC = 0x00
PE_MASK = 0x00
PE_DR = 0x0C
PE_MASK_ADC = 0x00
PF_MASK = 0x00
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 = 0x202500
intConf0 = 0x000329
intPrio0 = 0x3025
intAddr1 = 0xFFF4
intPort1 = 0x2A3E01
intConf1 = 0x000C29
intPrio1 = 0xC025
intAddr2 = 0xFFF2
intPort2 = 0x040602
intConf2 = 0x003029
intPrio2 = 0x0326
intAddr3 = 0xFFF0
intPort3 = 0x121303
intConf3 = 0x00C029
intPrio3 = 0x0C26
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 = 3

//****************************************************************************//
// SCI
//****************************************************************************//
[SCI]
SCIconfig0 = 0x3231
SCIIntConf0 = 0xFFE2C027
SCIconfig1 = 0x3534
SCIIntConf1 = 0xFFE40328
SCIName = ST72561

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

//****************************************************************************//
// SPI
//****************************************************************************//
[SPI]
SPIconfig = 0x25262730
SPIIntConf = 0xFFEA0327

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