//****************************************************************************//
// Project : Simulator
// Author  : JR (c) RAISONANCE S.A. 2003
//****************************************************************************//
// File    : ST726F51AR6.SIM
// Purpose : File to define the ST726F51AR6 simulator.
//
// Modification :
// VC: 11/07/2003: Creation
//****************************************************************************//

[Description]
Name = ST726F51AR6

//****************************************************************************//
// Space
//****************************************************************************//
[Space]
CodeSize = 0x8000
CodeStart = 0x8000
StackSize = 0x100
StackStart = 0x100
Page1Start = 0x100
RAMSize = 0x1A00
RAMStart = 0x50
HardSize = 0x50
EEPROMSize = 0
EEPROMStart = 0
Flash1EPROM0 = 0x2B

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

//****************************************************************************//
// Port
//****************************************************************************//
[Ports]
PA_MASK = 0xFF
PA_DR = 0x0
PA_MASK_ADC = 0x00
PB_MASK = 0xFF
PB_DR = 0x03
PB_MASK_ADC = 0x00
PC_MASK = 0xFF
PC_DR = 0x06
PC_MASK_ADC = 0x00
PD_MASK = 0xFF
PD_DR = 0x09
PD_MASK_ADC = 0x00
PE_MASK = 0xFF
PE_DR = 0x0C
PE_MASK_ADC = 0x00
PF_MASK = 0x7F
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 = 0xFFFF00   //PA., pin 0..7, floating interrupt
intConf0 = 0xC049
intPrio0 = 0x302C

intAddr1 = 0xFFEE
intPort1 = 0xFFFF03
intConf1 = 0x1849
intPrio1 = 0x302D

intAddr2 = 0xFFE8
intPort2 = 0xFFFF02
intConf2 = 0x0C4C
intPrio2 = 0x0C2E

intAddr3 = 0
intPort3 = 0
intConf3 = 0
intPrio3 = 0
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 = 4

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

//****************************************************************************//
// SPI
//****************************************************************************//
[SPI]
SPIconfig = 0x21222320
SPIIntConf = 0xFFE62E30

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