//****************************************************************************//
// Project : Simulator
//****************************************************************************//
// File    : STM8AF6143x.sim
// Purpose : Simulator configuration file
//
//****************************************************************************//

[Description]
Name = STM8AF6143x

//****************************************************************************//
// Space
//****************************************************************************//
[Space]
CodeSize = 0x4000
CodeStart = 0x8000
CodeDefault = 0x00
StackSize = 0x200
StackStart = 0x200
RAMSize = 0x400
RAMStart = 0x0000
// Page1Start references the first non-page0 RAM byte
Page1Start = 0x0100
// HighRAM references the RAM range used by the Hardware registers
HighRAMSize = 0x1800
HighRAMStart = 0x5000
EEPROMSize = 0x200
EEPROMStart = 0x4000
Flash1EPROM0 = 0x2B
IsSTM8 = 1

//****************************************************************************//
// Port
//****************************************************************************//
[Ports]
PA_MASK = 0xFF
PA_DR = 0x5000
PA_MASK_ADC = 0x00

PB_MASK = 0xFF
PB_DR = 0x5005
PB_MASK_ADC = 0x00

PC_MASK = 0xFF
PC_DR = 0x500A
PC_MASK_ADC = 0x00

PD_MASK = 0xFF
PD_DR = 0x500F
PD_MASK_ADC = 0x00

PE_MASK = 0xFF
PE_DR = 0x5014
PE_MASK_ADC = 0x00

PF_MASK = 0xFF
PF_DR = 0x5019
PF_MASK_ADC = 0x00

PG_MASK = 0xFF
PG_DR = 0x501E
PG_MASK_ADC = 0

PH_MASK = 0xFF
PH_DR = 0x5023
PH_MASK_ADC = 0

PI_MASK = 0xFF
PI_DR = 0x5028
PI_MASK_ADC = 0

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

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

[PDKGenPeriph]
PeriphsNumber = 27
Periph_1_Name = GPIOA
Periph_2_Name = GPIOB
Periph_3_Name = GPIOC
Periph_4_Name = GPIOD
Periph_5_Name = GPIOE
Periph_6_Name = GPIOF
Periph_7_Name = GPIOG
Periph_8_Name = GPIOH
Periph_9_Name = GPIOI
Periph_10_Name = FLASH
Periph_11_Name = OPT
Periph_12_Name = ITC
Periph_13_Name = RST
Periph_14_Name = CLK
Periph_15_Name = WWDG
Periph_16_Name = IWDG
Periph_17_Name = AWU
Periph_18_Name = SPI
Periph_19_Name = I2C
Periph_20_Name = USART
Periph_21_Name = LINUART
Periph_22_Name = TIM1
Periph_23_Name = TIM2
Periph_24_Name = TIM3
Periph_25_Name = TIM4
Periph_26_Name = ADC
Periph_27_Name = CAN
# Periph_28_Name = ITC

[GPIOA]

SymbsNumber = 5

Symb_1 = PA_ODR, 0, 0x5000
Symb_2 = PA_IDR, 0, 0x5001
Symb_3 = PA_DDR, 0, 0x5002
Symb_4 = PA_CR1, 0, 0x5003
Symb_5 = PA_CR2, 0, 0x5004

ResetCode = {SetByteValue(0,0x5000,0x00); SetByteValue(0,0x5001,0x00); SetByteValue(0,0x5002,0x00); SetByteValue(0,0x5003,0x00); SetByteValue(0,0x5004,0x00);}

GroupsNumber = 5
#----------------------- 1 : PA_ODR --------------------------------------------

Group_1_Name = Port A data output latch register (PA_ODR)
Group_1_Comment = "Port A data output latch register. \n Address Offset: 00h. \n Reset value: 00h."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = PA_ODR
Group_1_Item_1_Comment = "Port A data output latch register."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5000).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x5000,parseInt(GetString()));

#----------------------- 2 : PA_IDR --------------------------------------------

Group_2_Name = Port A input pin value register (PA_IDR)
Group_2_Comment = "Port A input pin value register. \n Address Offset: 01h. \n Reset value: 00h."
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = PA_IDR
Group_2_Item_1_Comment = "Port A input pin value register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5001).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x5001,parseInt(GetString()));

#----------------------- 3 : PA_DDR --------------------------------------------

Group_3_Name = Port A data direction register (PA_DDR)
Group_3_Comment = "Port A data direction register. \n Address Offset: 02h. \n Reset value: 0x00. \n These bits are set and cleared by software to select input or output mode  for a particular pin of a port. \n  0: Input mode \n  1: Output mode"
Group_3_ItemsNumber = 9

Group_3_Item_1_Name = PA_DDR
Group_3_Item_1_Comment = "Port A data direction register."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5002).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x5002,parseInt(GetString()));

Group_3_Item_2_Name = PA_DDR.0
Group_3_Item_2_Comment = "Bit 0 of PA_DDR."
Group_3_Item_2_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_2_BitField = Byte, 0, 0x5002, 0, 1

Group_3_Item_3_Name = PA_DDR.1
Group_3_Item_3_Comment = "Bit 1 of PA_DDR."
Group_3_Item_3_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_3_BitField = Byte, 0, 0x5002, 1, 1

Group_3_Item_4_Name = PA_DDR.2
Group_3_Item_4_Comment = "Bit 2 of PA_DDR."
Group_3_Item_4_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_4_BitField = Byte, 0, 0x5002, 2, 1

Group_3_Item_5_Name = PA_DDR.3
Group_3_Item_5_Comment = "Bit 3 of PA_DDR."
Group_3_Item_5_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_5_BitField = Byte, 0, 0x5002, 3, 1

Group_3_Item_6_Name = PA_DDR.4
Group_3_Item_6_Comment = "Bit 4 of PA_DDR."
Group_3_Item_6_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_6_BitField = Byte, 0, 0x5002, 4, 1

Group_3_Item_7_Name = PA_DDR.5
Group_3_Item_7_Comment = "Bit 5 of PA_DDR."
Group_3_Item_7_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_7_BitField = Byte, 0, 0x5002, 5, 1

Group_3_Item_8_Name = PA_DDR.6
Group_3_Item_8_Comment = "Bit 6 of PA_DDR."
Group_3_Item_8_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_8_BitField = Byte, 0, 0x5002, 6, 1

Group_3_Item_9_Name = PA_DDR.7
Group_3_Item_9_Comment = "Bit 7 of PA_DDR."
Group_3_Item_9_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_9_BitField = Byte, 0, 0x5002, 7, 1

#----------------------- 4 : PA_CR1 --------------------------------------------

Group_4_Name = Port A control register 1 (PA_CR1)
Group_4_Comment = "Port A control register 1. \n Address Offset: 03h. \n Reset value: 0x00. \n These bits are set and cleared by software. They select different functions  in input mode and output mode. \n - In input mode (DDR=0): \n   0: Floating input \n   1: Input with pull-up \n - In output mode (DDR=1): \n   0: Pseudo Open Drain \n   1: Push-pull, slope control for the output depends on the corresponding CR2 bit"
Group_4_ItemsNumber = 9

Group_4_Item_1_Name = PA_CR1
Group_4_Item_1_Comment = "Port A control register 1."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5003).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x5003,parseInt(GetString()));

Group_4_Item_2_Name = PA_CR1.0
Group_4_Item_2_Comment = "Bit 0 of PA_CR1."
Group_4_Item_2_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5003)&0x01)?1:0)+((GetByteValue(0,0x5002)&0x01)?2:0));
Group_4_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5003,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5003)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_4_Item_3_Name = PA_CR1.1
Group_4_Item_3_Comment = "Bit 1 of PA_CR1."
Group_4_Item_3_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5003)&0x02)?1:0)+((GetByteValue(0,0x5002)&0x02)?2:0));
Group_4_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5003,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5003)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_4_Item_4_Name = PA_CR1.2
Group_4_Item_4_Comment = "Bit 2 of PA_CR1."
Group_4_Item_4_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5003)&0x04)?1:0)+((GetByteValue(0,0x5002)&0x04)?2:0));
Group_4_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5003,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5003)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_4_Item_5_Name = PA_CR1.3
Group_4_Item_5_Comment = "Bit 3 of PA_CR1."
Group_4_Item_5_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5003)&0x08)?1:0)+((GetByteValue(0,0x5002)&0x08)?2:0));
Group_4_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5003,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5003)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_4_Item_6_Name = PA_CR1.4
Group_4_Item_6_Comment = "Bit 4 of PA_CR1."
Group_4_Item_6_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5003)&0x10)?1:0)+((GetByteValue(0,0x5002)&0x10)?2:0));
Group_4_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5003,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5003)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_4_Item_7_Name = PA_CR1.5
Group_4_Item_7_Comment = "Bit 5 of PA_CR1."
Group_4_Item_7_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5003)&0x20)?1:0)+((GetByteValue(0,0x5002)&0x20)?2:0));
Group_4_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5003,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5003)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_4_Item_8_Name = PA_CR1.6
Group_4_Item_8_Comment = "Bit 6 of PA_CR1."
Group_4_Item_8_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5003)&0x40)?1:0)+((GetByteValue(0,0x5002)&0x40)?2:0));
Group_4_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5003,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5003)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_4_Item_9_Name = PA_CR1.7
Group_4_Item_9_Comment = "Bit 7 of PA_CR1."
Group_4_Item_9_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5003)&0x80)?1:0)+((GetByteValue(0,0x5002)&0x80)?2:0));
Group_4_Item_9_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5003,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5003)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

#----------------------- 5 : PA_CR2 --------------------------------------------

Group_5_Name = Port A control register 2 (PA_CR2)
Group_5_Comment = "These bits are set and cleared by software.\nThey select different functions in input mode and output mode.\n - In input mode, the CR2 bit enables the interrupt capability if available. If the I/O does not have interrupt capability, setting the CR2 bit has no effect.\n - In output mode, setting the CR2 bit reduces the slew  rate of the I/O. This helps improve the EMC of the I/O. This applies to ports  with O3 and O4 output types (see pin description table).\n\nIn input mode  (DDR=0):\n   0: External interrupt disabled\n   1: External interrupt enabled\n In output mode (DDR=1) :\n   0: Slope limited to 2 MHz\n   1: Slope limited to 10 MHz"
Group_5_ItemsNumber = 9

Group_5_Item_1_Name = PA_CR2
Group_5_Item_1_Comment = "Port A control register 2."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5004).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x5004,parseInt(GetString()));

Group_5_Item_2_Name = PA_CR2.0
Group_5_Item_2_Comment = "Bit 0 of PA_CR2."
Group_5_Item_2_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5004)&0x01)?1:0)+((GetByteValue(0,0x5002)&0x01)?2:0));
Group_5_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5004,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5004)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_5_Item_3_Name = PA_CR2.1
Group_5_Item_3_Comment = "Bit 1 of PA_CR2."
Group_5_Item_3_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5004)&0x02)?1:0)+((GetByteValue(0,0x5002)&0x02)?2:0));
Group_5_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5004,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5004)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_5_Item_4_Name = PA_CR2.2
Group_5_Item_4_Comment = "Bit 2 of PA_CR2."
Group_5_Item_4_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5004)&0x04)?1:0)+((GetByteValue(0,0x5002)&0x04)?2:0));
Group_5_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5004,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5004)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_5_Item_5_Name = PA_CR2.3
Group_5_Item_5_Comment = "Bit 3 of PA_CR2."
Group_5_Item_5_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5004)&0x08)?1:0)+((GetByteValue(0,0x5002)&0x08)?2:0));
Group_5_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5004,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5004)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_5_Item_6_Name = PA_CR2.4
Group_5_Item_6_Comment = "Bit 4 of PA_CR2."
Group_5_Item_6_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5004)&0x10)?1:0)+((GetByteValue(0,0x5002)&0x10)?2:0));
Group_5_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5004,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5004)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_5_Item_7_Name = PA_CR2.5
Group_5_Item_7_Comment = "Bit 5 of PA_CR2."
Group_5_Item_7_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5004)&0x20)?1:0)+((GetByteValue(0,0x5002)&0x20)?2:0));
Group_5_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5004,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5004)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_5_Item_8_Name = PA_CR2.6
Group_5_Item_8_Comment = "Bit 6 of PA_CR2."
Group_5_Item_8_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5004)&0x40)?1:0)+((GetByteValue(0,0x5002)&0x40)?2:0));
Group_5_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5004,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5004)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

Group_5_Item_9_Name = PA_CR2.7
Group_5_Item_9_Comment = "Bit 7 of PA_CR2."
Group_5_Item_9_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5004)&0x80)?1:0)+((GetByteValue(0,0x5002)&0x80)?2:0));
Group_5_Item_9_DecodingProc = { var bit = 0x80; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5004,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5004)&~(bit))); SetByteValue(0,0x5002,half*bit|(GetByteValue(0,0x5002)&~(bit))); }

[GPIOB]

SymbsNumber = 5

Symb_1 = PB_ODR, 0, 0x5005
Symb_2 = PB_IDR, 0, 0x5006
Symb_3 = PB_DDR, 0, 0x5007
Symb_4 = PB_CR1, 0, 0x5008
Symb_5 = PB_CR2, 0, 0x5009

ResetCode = {SetByteValue(0,0x5005,0x00); SetByteValue(0,0x5006,0x00); SetByteValue(0,0x5007,0x00); SetByteValue(0,0x5008,0x00); SetByteValue(0,0x5009,0x00);}

GroupsNumber = 5
#----------------------- 1 : PB_ODR --------------------------------------------

Group_1_Name = Port B data output latch register (PB_ODR)
Group_1_Comment = "Port B data output latch register. \n Address Offset: 00h. \n Reset value: 00h."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = PB_ODR
Group_1_Item_1_Comment = "Port B data output latch register."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5005).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x5005,parseInt(GetString()));

#----------------------- 2 : PB_IDR --------------------------------------------

Group_2_Name = Port B input pin value register (PB_IDR)
Group_2_Comment = "Port B input pin value register. \n Address Offset: 01h. \n Reset value: 00h."
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = PB_IDR
Group_2_Item_1_Comment = "Port B input pin value register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5006).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x5006,parseInt(GetString()));

#----------------------- 3 : PB_DDR --------------------------------------------

Group_3_Name = Port B data direction register (PB_DDR)
Group_3_Comment = "Port B data direction register. \n Address Offset: 02h. \n Reset value: 0x00. \n These bits are set and cleared by software to select input or output mode  for a particular pin of a port. \n  0: Input mode \n  1: Output mode"
Group_3_ItemsNumber = 9

Group_3_Item_1_Name = PB_DDR
Group_3_Item_1_Comment = "Port B data direction register."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5007).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x5007,parseInt(GetString()));

Group_3_Item_2_Name = PB_DDR.0
Group_3_Item_2_Comment = "Bit 0 of PB_DDR."
Group_3_Item_2_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_2_BitField = Byte, 0, 0x5007, 0, 1

Group_3_Item_3_Name = PB_DDR.1
Group_3_Item_3_Comment = "Bit 1 of PB_DDR."
Group_3_Item_3_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_3_BitField = Byte, 0, 0x5007, 1, 1

Group_3_Item_4_Name = PB_DDR.2
Group_3_Item_4_Comment = "Bit 2 of PB_DDR."
Group_3_Item_4_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_4_BitField = Byte, 0, 0x5007, 2, 1

Group_3_Item_5_Name = PB_DDR.3
Group_3_Item_5_Comment = "Bit 3 of PB_DDR."
Group_3_Item_5_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_5_BitField = Byte, 0, 0x5007, 3, 1

Group_3_Item_6_Name = PB_DDR.4
Group_3_Item_6_Comment = "Bit 4 of PB_DDR."
Group_3_Item_6_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_6_BitField = Byte, 0, 0x5007, 4, 1

Group_3_Item_7_Name = PB_DDR.5
Group_3_Item_7_Comment = "Bit 5 of PB_DDR."
Group_3_Item_7_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_7_BitField = Byte, 0, 0x5007, 5, 1

Group_3_Item_8_Name = PB_DDR.6
Group_3_Item_8_Comment = "Bit 6 of PB_DDR."
Group_3_Item_8_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_8_BitField = Byte, 0, 0x5007, 6, 1

Group_3_Item_9_Name = PB_DDR.7
Group_3_Item_9_Comment = "Bit 7 of PB_DDR."
Group_3_Item_9_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_9_BitField = Byte, 0, 0x5007, 7, 1

#----------------------- 4 : PB_CR1 --------------------------------------------

Group_4_Name = Port B control register 1 (PB_CR1)
Group_4_Comment = "Port B control register 1. \n Address Offset: 03h. \n Reset value: 0x00. \n These bits are set and cleared by software. They select different functions  in input mode and output mode. \n - In input mode (DDR=0): \n   0: Floating input \n   1: Input with pull-up \n - In output mode (DDR=1): \n   0: Pseudo Open Drain \n   1: Push-pull, slope control for the output depends on the corresponding CR2 bit"
Group_4_ItemsNumber = 9

Group_4_Item_1_Name = PB_CR1
Group_4_Item_1_Comment = "Port B control register 1."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5008).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x5008,parseInt(GetString()));

Group_4_Item_2_Name = PB_CR1.0
Group_4_Item_2_Comment = "Bit 0 of PB_CR1."
Group_4_Item_2_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5008)&0x01)?1:0)+((GetByteValue(0,0x5007)&0x01)?2:0));
Group_4_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5008,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5008)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_4_Item_3_Name = PB_CR1.1
Group_4_Item_3_Comment = "Bit 1 of PB_CR1."
Group_4_Item_3_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5008)&0x02)?1:0)+((GetByteValue(0,0x5007)&0x02)?2:0));
Group_4_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5008,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5008)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_4_Item_4_Name = PB_CR1.2
Group_4_Item_4_Comment = "Bit 2 of PB_CR1."
Group_4_Item_4_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5008)&0x04)?1:0)+((GetByteValue(0,0x5007)&0x04)?2:0));
Group_4_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5008,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5008)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_4_Item_5_Name = PB_CR1.3
Group_4_Item_5_Comment = "Bit 3 of PB_CR1."
Group_4_Item_5_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5008)&0x08)?1:0)+((GetByteValue(0,0x5007)&0x08)?2:0));
Group_4_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5008,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5008)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_4_Item_6_Name = PB_CR1.4
Group_4_Item_6_Comment = "Bit 4 of PB_CR1."
Group_4_Item_6_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5008)&0x10)?1:0)+((GetByteValue(0,0x5007)&0x10)?2:0));
Group_4_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5008,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5008)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_4_Item_7_Name = PB_CR1.5
Group_4_Item_7_Comment = "Bit 5 of PB_CR1."
Group_4_Item_7_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5008)&0x20)?1:0)+((GetByteValue(0,0x5007)&0x20)?2:0));
Group_4_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5008,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5008)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_4_Item_8_Name = PB_CR1.6
Group_4_Item_8_Comment = "Bit 6 of PB_CR1."
Group_4_Item_8_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5008)&0x40)?1:0)+((GetByteValue(0,0x5007)&0x40)?2:0));
Group_4_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5008,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5008)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_4_Item_9_Name = PB_CR1.7
Group_4_Item_9_Comment = "Bit 7 of PB_CR1."
Group_4_Item_9_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5008)&0x80)?1:0)+((GetByteValue(0,0x5007)&0x80)?2:0));
Group_4_Item_9_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5008,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5008)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

#----------------------- 5 : PB_CR2 --------------------------------------------

Group_5_Name = Port B control register 2 (PB_CR2)
Group_5_Comment = "These bits are set and cleared by software.\nThey select different functions in input mode and output mode.\n - In input mode, the CR2 bit enables the interrupt capability if available. If the I/O does not have interrupt capability, setting the CR2 bit has no effect.\n - In output mode, setting the CR2 bit reduces the slew  rate of the I/O. This helps improve the EMC of the I/O. This applies to ports  with O3 and O4 output types (see pin description table).\n\nIn input mode  (DDR=0):\n   0: External interrupt disabled\n   1: External interrupt enabled\n In output mode (DDR=1) :\n   0: Slope limited to 2 MHz\n   1: Slope limited to 10 MHz"
Group_5_ItemsNumber = 9

Group_5_Item_1_Name = PB_CR2
Group_5_Item_1_Comment = "Port B control register 2."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5009).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x5009,parseInt(GetString()));

Group_5_Item_2_Name = PB_CR2.0
Group_5_Item_2_Comment = "Bit 0 of PB_CR2."
Group_5_Item_2_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5009)&0x01)?1:0)+((GetByteValue(0,0x5007)&0x01)?2:0));
Group_5_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5009,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5009)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_5_Item_3_Name = PB_CR2.1
Group_5_Item_3_Comment = "Bit 1 of PB_CR2."
Group_5_Item_3_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5009)&0x02)?1:0)+((GetByteValue(0,0x5007)&0x02)?2:0));
Group_5_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5009,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5009)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_5_Item_4_Name = PB_CR2.2
Group_5_Item_4_Comment = "Bit 2 of PB_CR2."
Group_5_Item_4_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5009)&0x04)?1:0)+((GetByteValue(0,0x5007)&0x04)?2:0));
Group_5_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5009,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5009)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_5_Item_5_Name = PB_CR2.3
Group_5_Item_5_Comment = "Bit 3 of PB_CR2."
Group_5_Item_5_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5009)&0x08)?1:0)+((GetByteValue(0,0x5007)&0x08)?2:0));
Group_5_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5009,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5009)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_5_Item_6_Name = PB_CR2.4
Group_5_Item_6_Comment = "Bit 4 of PB_CR2."
Group_5_Item_6_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5009)&0x10)?1:0)+((GetByteValue(0,0x5007)&0x10)?2:0));
Group_5_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5009,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5009)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_5_Item_7_Name = PB_CR2.5
Group_5_Item_7_Comment = "Bit 5 of PB_CR2."
Group_5_Item_7_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5009)&0x20)?1:0)+((GetByteValue(0,0x5007)&0x20)?2:0));
Group_5_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5009,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5009)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_5_Item_8_Name = PB_CR2.6
Group_5_Item_8_Comment = "Bit 6 of PB_CR2."
Group_5_Item_8_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5009)&0x40)?1:0)+((GetByteValue(0,0x5007)&0x40)?2:0));
Group_5_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5009,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5009)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

Group_5_Item_9_Name = PB_CR2.7
Group_5_Item_9_Comment = "Bit 7 of PB_CR2."
Group_5_Item_9_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5009)&0x80)?1:0)+((GetByteValue(0,0x5007)&0x80)?2:0));
Group_5_Item_9_DecodingProc = { var bit = 0x80; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5009,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5009)&~(bit))); SetByteValue(0,0x5007,half*bit|(GetByteValue(0,0x5007)&~(bit))); }

[GPIOC]

SymbsNumber = 5

Symb_1 = PC_ODR, 0, 0x500a
Symb_2 = PC_IDR, 0, 0x500b
Symb_3 = PC_DDR, 0, 0x500c
Symb_4 = PC_CR1, 0, 0x500d
Symb_5 = PC_CR2, 0, 0x500e

ResetCode = {SetByteValue(0,0x500a,0x00); SetByteValue(0,0x500b,0x00); SetByteValue(0,0x500c,0x00); SetByteValue(0,0x500d,0x00); SetByteValue(0,0x500e,0x00);}

GroupsNumber = 5
#----------------------- 1 : PC_ODR --------------------------------------------

Group_1_Name = Port C data output latch register (PC_ODR)
Group_1_Comment = "Port C data output latch register. \n Address Offset: 00h. \n Reset value: 00h."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = PC_ODR
Group_1_Item_1_Comment = "Port C data output latch register."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x500a).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x500a,parseInt(GetString()));

#----------------------- 2 : PC_IDR --------------------------------------------

Group_2_Name = Port C input pin value register (PC_IDR)
Group_2_Comment = "Port C input pin value register. \n Address Offset: 01h. \n Reset value: 00h."
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = PC_IDR
Group_2_Item_1_Comment = "Port C input pin value register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x500b).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x500b,parseInt(GetString()));

#----------------------- 3 : PC_DDR --------------------------------------------

Group_3_Name = Port C data direction register (PC_DDR)
Group_3_Comment = "Port C data direction register. \n Address Offset: 02h. \n Reset value: 0x00. \n These bits are set and cleared by software to select input or output mode  for a particular pin of a port. \n  0: Input mode \n  1: Output mode"
Group_3_ItemsNumber = 9

Group_3_Item_1_Name = PC_DDR
Group_3_Item_1_Comment = "Port C data direction register."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x500c).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x500c,parseInt(GetString()));

Group_3_Item_2_Name = PC_DDR.0
Group_3_Item_2_Comment = "Bit 0 of PC_DDR."
Group_3_Item_2_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_2_BitField = Byte, 0, 0x500c, 0, 1

Group_3_Item_3_Name = PC_DDR.1
Group_3_Item_3_Comment = "Bit 1 of PC_DDR."
Group_3_Item_3_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_3_BitField = Byte, 0, 0x500c, 1, 1

Group_3_Item_4_Name = PC_DDR.2
Group_3_Item_4_Comment = "Bit 2 of PC_DDR."
Group_3_Item_4_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_4_BitField = Byte, 0, 0x500c, 2, 1

Group_3_Item_5_Name = PC_DDR.3
Group_3_Item_5_Comment = "Bit 3 of PC_DDR."
Group_3_Item_5_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_5_BitField = Byte, 0, 0x500c, 3, 1

Group_3_Item_6_Name = PC_DDR.4
Group_3_Item_6_Comment = "Bit 4 of PC_DDR."
Group_3_Item_6_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_6_BitField = Byte, 0, 0x500c, 4, 1

Group_3_Item_7_Name = PC_DDR.5
Group_3_Item_7_Comment = "Bit 5 of PC_DDR."
Group_3_Item_7_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_7_BitField = Byte, 0, 0x500c, 5, 1

Group_3_Item_8_Name = PC_DDR.6
Group_3_Item_8_Comment = "Bit 6 of PC_DDR."
Group_3_Item_8_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_8_BitField = Byte, 0, 0x500c, 6, 1

Group_3_Item_9_Name = PC_DDR.7
Group_3_Item_9_Comment = "Bit 7 of PC_DDR."
Group_3_Item_9_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_9_BitField = Byte, 0, 0x500c, 7, 1

#----------------------- 4 : PC_CR1 --------------------------------------------

Group_4_Name = Port C control register 1 (PC_CR1)
Group_4_Comment = "Port C control register 1. \n Address Offset: 03h. \n Reset value: 0x00. \n These bits are set and cleared by software. They select different functions  in input mode and output mode. \n - In input mode (DDR=0): \n   0: Floating input \n   1: Input with pull-up \n - In output mode (DDR=1): \n   0: Pseudo Open Drain \n   1: Push-pull, slope control for the output depends on the corresponding CR2 bit"
Group_4_ItemsNumber = 9

Group_4_Item_1_Name = PC_CR1
Group_4_Item_1_Comment = "Port C control register 1."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x500d).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x500d,parseInt(GetString()));

Group_4_Item_2_Name = PC_CR1.0
Group_4_Item_2_Comment = "Bit 0 of PC_CR1."
Group_4_Item_2_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_2_CodingProc = SetInt(((GetByteValue(0,0x500d)&0x01)?1:0)+((GetByteValue(0,0x500c)&0x01)?2:0));
Group_4_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500d)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_4_Item_3_Name = PC_CR1.1
Group_4_Item_3_Comment = "Bit 1 of PC_CR1."
Group_4_Item_3_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_3_CodingProc = SetInt(((GetByteValue(0,0x500d)&0x02)?1:0)+((GetByteValue(0,0x500c)&0x02)?2:0));
Group_4_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500d)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_4_Item_4_Name = PC_CR1.2
Group_4_Item_4_Comment = "Bit 2 of PC_CR1."
Group_4_Item_4_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_4_CodingProc = SetInt(((GetByteValue(0,0x500d)&0x04)?1:0)+((GetByteValue(0,0x500c)&0x04)?2:0));
Group_4_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500d)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_4_Item_5_Name = PC_CR1.3
Group_4_Item_5_Comment = "Bit 3 of PC_CR1."
Group_4_Item_5_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_5_CodingProc = SetInt(((GetByteValue(0,0x500d)&0x08)?1:0)+((GetByteValue(0,0x500c)&0x08)?2:0));
Group_4_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500d)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_4_Item_6_Name = PC_CR1.4
Group_4_Item_6_Comment = "Bit 4 of PC_CR1."
Group_4_Item_6_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_6_CodingProc = SetInt(((GetByteValue(0,0x500d)&0x10)?1:0)+((GetByteValue(0,0x500c)&0x10)?2:0));
Group_4_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500d)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_4_Item_7_Name = PC_CR1.5
Group_4_Item_7_Comment = "Bit 5 of PC_CR1."
Group_4_Item_7_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_7_CodingProc = SetInt(((GetByteValue(0,0x500d)&0x20)?1:0)+((GetByteValue(0,0x500c)&0x20)?2:0));
Group_4_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500d)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_4_Item_8_Name = PC_CR1.6
Group_4_Item_8_Comment = "Bit 6 of PC_CR1."
Group_4_Item_8_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_8_CodingProc = SetInt(((GetByteValue(0,0x500d)&0x40)?1:0)+((GetByteValue(0,0x500c)&0x40)?2:0));
Group_4_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500d)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_4_Item_9_Name = PC_CR1.7
Group_4_Item_9_Comment = "Bit 7 of PC_CR1."
Group_4_Item_9_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_9_CodingProc = SetInt(((GetByteValue(0,0x500d)&0x80)?1:0)+((GetByteValue(0,0x500c)&0x80)?2:0));
Group_4_Item_9_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500d)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

#----------------------- 5 : PC_CR2 --------------------------------------------

Group_5_Name = Port C control register 2 (PC_CR2)
Group_5_Comment = "These bits are set and cleared by software.\nThey select different functions in input mode and output mode.\n - In input mode, the CR2 bit enables the interrupt capability if available. If the I/O does not have interrupt capability, setting the CR2 bit has no effect.\n - In output mode, setting the CR2 bit reduces the slew  rate of the I/O. This helps improve the EMC of the I/O. This applies to ports  with O3 and O4 output types (see pin description table).\n\nIn input mode  (DDR=0):\n   0: External interrupt disabled\n   1: External interrupt enabled\n In output mode (DDR=1) :\n   0: Slope limited to 2 MHz\n   1: Slope limited to 10 MHz"
Group_5_ItemsNumber = 9

Group_5_Item_1_Name = PC_CR2
Group_5_Item_1_Comment = "Port C control register 2."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x500e).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x500e,parseInt(GetString()));

Group_5_Item_2_Name = PC_CR2.0
Group_5_Item_2_Comment = "Bit 0 of PC_CR2."
Group_5_Item_2_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_2_CodingProc = SetInt(((GetByteValue(0,0x500e)&0x01)?1:0)+((GetByteValue(0,0x500c)&0x01)?2:0));
Group_5_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500e,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500e)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_5_Item_3_Name = PC_CR2.1
Group_5_Item_3_Comment = "Bit 1 of PC_CR2."
Group_5_Item_3_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_3_CodingProc = SetInt(((GetByteValue(0,0x500e)&0x02)?1:0)+((GetByteValue(0,0x500c)&0x02)?2:0));
Group_5_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500e,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500e)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_5_Item_4_Name = PC_CR2.2
Group_5_Item_4_Comment = "Bit 2 of PC_CR2."
Group_5_Item_4_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_4_CodingProc = SetInt(((GetByteValue(0,0x500e)&0x04)?1:0)+((GetByteValue(0,0x500c)&0x04)?2:0));
Group_5_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500e,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500e)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_5_Item_5_Name = PC_CR2.3
Group_5_Item_5_Comment = "Bit 3 of PC_CR2."
Group_5_Item_5_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_5_CodingProc = SetInt(((GetByteValue(0,0x500e)&0x08)?1:0)+((GetByteValue(0,0x500c)&0x08)?2:0));
Group_5_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500e,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500e)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_5_Item_6_Name = PC_CR2.4
Group_5_Item_6_Comment = "Bit 4 of PC_CR2."
Group_5_Item_6_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_6_CodingProc = SetInt(((GetByteValue(0,0x500e)&0x10)?1:0)+((GetByteValue(0,0x500c)&0x10)?2:0));
Group_5_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500e,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500e)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_5_Item_7_Name = PC_CR2.5
Group_5_Item_7_Comment = "Bit 5 of PC_CR2."
Group_5_Item_7_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_7_CodingProc = SetInt(((GetByteValue(0,0x500e)&0x20)?1:0)+((GetByteValue(0,0x500c)&0x20)?2:0));
Group_5_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500e,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500e)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_5_Item_8_Name = PC_CR2.6
Group_5_Item_8_Comment = "Bit 6 of PC_CR2."
Group_5_Item_8_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_8_CodingProc = SetInt(((GetByteValue(0,0x500e)&0x40)?1:0)+((GetByteValue(0,0x500c)&0x40)?2:0));
Group_5_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500e,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500e)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

Group_5_Item_9_Name = PC_CR2.7
Group_5_Item_9_Comment = "Bit 7 of PC_CR2."
Group_5_Item_9_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_9_CodingProc = SetInt(((GetByteValue(0,0x500e)&0x80)?1:0)+((GetByteValue(0,0x500c)&0x80)?2:0));
Group_5_Item_9_DecodingProc = { var bit = 0x80; var half = Math.floor(GetInt()/2); SetByteValue(0,0x500e,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x500e)&~(bit))); SetByteValue(0,0x500c,half*bit|(GetByteValue(0,0x500c)&~(bit))); }

[GPIOD]

SymbsNumber = 5

Symb_1 = PD_ODR, 0, 0x500f
Symb_2 = PD_IDR, 0, 0x5010
Symb_3 = PD_DDR, 0, 0x5011
Symb_4 = PD_CR1, 0, 0x5012
Symb_5 = PD_CR2, 0, 0x5013

ResetCode = {SetByteValue(0,0x500f,0x00); SetByteValue(0,0x5010,0x00); SetByteValue(0,0x5011,0x00); SetByteValue(0,0x5012,0x00); SetByteValue(0,0x5013,0x00);}

GroupsNumber = 5
#----------------------- 1 : PD_ODR --------------------------------------------

Group_1_Name = Port D data output latch register (PD_ODR)
Group_1_Comment = "Port D data output latch register. \n Address Offset: 00h. \n Reset value: 00h."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = PD_ODR
Group_1_Item_1_Comment = "Port D data output latch register."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x500f).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x500f,parseInt(GetString()));

#----------------------- 2 : PD_IDR --------------------------------------------

Group_2_Name = Port D input pin value register (PD_IDR)
Group_2_Comment = "Port D input pin value register. \n Address Offset: 01h. \n Reset value: 00h."
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = PD_IDR
Group_2_Item_1_Comment = "Port D input pin value register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5010).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x5010,parseInt(GetString()));

#----------------------- 3 : PD_DDR --------------------------------------------

Group_3_Name = Port D data direction register (PD_DDR)
Group_3_Comment = "Port D data direction register. \n Address Offset: 02h. \n Reset value: 0x00. \n These bits are set and cleared by software to select input or output mode  for a particular pin of a port. \n  0: Input mode \n  1: Output mode"
Group_3_ItemsNumber = 9

Group_3_Item_1_Name = PD_DDR
Group_3_Item_1_Comment = "Port D data direction register."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5011).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x5011,parseInt(GetString()));

Group_3_Item_2_Name = PD_DDR.0
Group_3_Item_2_Comment = "Bit 0 of PD_DDR."
Group_3_Item_2_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_2_BitField = Byte, 0, 0x5011, 0, 1

Group_3_Item_3_Name = PD_DDR.1
Group_3_Item_3_Comment = "Bit 1 of PD_DDR."
Group_3_Item_3_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_3_BitField = Byte, 0, 0x5011, 1, 1

Group_3_Item_4_Name = PD_DDR.2
Group_3_Item_4_Comment = "Bit 2 of PD_DDR."
Group_3_Item_4_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_4_BitField = Byte, 0, 0x5011, 2, 1

Group_3_Item_5_Name = PD_DDR.3
Group_3_Item_5_Comment = "Bit 3 of PD_DDR."
Group_3_Item_5_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_5_BitField = Byte, 0, 0x5011, 3, 1

Group_3_Item_6_Name = PD_DDR.4
Group_3_Item_6_Comment = "Bit 4 of PD_DDR."
Group_3_Item_6_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_6_BitField = Byte, 0, 0x5011, 4, 1

Group_3_Item_7_Name = PD_DDR.5
Group_3_Item_7_Comment = "Bit 5 of PD_DDR."
Group_3_Item_7_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_7_BitField = Byte, 0, 0x5011, 5, 1

Group_3_Item_8_Name = PD_DDR.6
Group_3_Item_8_Comment = "Bit 6 of PD_DDR."
Group_3_Item_8_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_8_BitField = Byte, 0, 0x5011, 6, 1

Group_3_Item_9_Name = PD_DDR.7
Group_3_Item_9_Comment = "Bit 7 of PD_DDR."
Group_3_Item_9_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_9_BitField = Byte, 0, 0x5011, 7, 1

#----------------------- 4 : PD_CR1 --------------------------------------------

Group_4_Name = Port D control register 1 (PD_CR1)
Group_4_Comment = "Port D control register 1. \n Address Offset: 03h. \n Reset value: 0x00. \n These bits are set and cleared by software. They select different functions  in input mode and output mode. \n - In input mode (DDR=0): \n   0: Floating input \n   1: Input with pull-up \n - In output mode (DDR=1): \n   0: Pseudo Open Drain \n   1: Push-pull, slope control for the output depends on the corresponding CR2 bit"
Group_4_ItemsNumber = 9

Group_4_Item_1_Name = PD_CR1
Group_4_Item_1_Comment = "Port D control register 1."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5012).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x5012,parseInt(GetString()));

Group_4_Item_2_Name = PD_CR1.0
Group_4_Item_2_Comment = "Bit 0 of PD_CR1."
Group_4_Item_2_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5012)&0x01)?1:0)+((GetByteValue(0,0x5011)&0x01)?2:0));
Group_4_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5012,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5012)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_4_Item_3_Name = PD_CR1.1
Group_4_Item_3_Comment = "Bit 1 of PD_CR1."
Group_4_Item_3_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5012)&0x02)?1:0)+((GetByteValue(0,0x5011)&0x02)?2:0));
Group_4_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5012,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5012)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_4_Item_4_Name = PD_CR1.2
Group_4_Item_4_Comment = "Bit 2 of PD_CR1."
Group_4_Item_4_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5012)&0x04)?1:0)+((GetByteValue(0,0x5011)&0x04)?2:0));
Group_4_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5012,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5012)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_4_Item_5_Name = PD_CR1.3
Group_4_Item_5_Comment = "Bit 3 of PD_CR1."
Group_4_Item_5_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5012)&0x08)?1:0)+((GetByteValue(0,0x5011)&0x08)?2:0));
Group_4_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5012,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5012)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_4_Item_6_Name = PD_CR1.4
Group_4_Item_6_Comment = "Bit 4 of PD_CR1."
Group_4_Item_6_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5012)&0x10)?1:0)+((GetByteValue(0,0x5011)&0x10)?2:0));
Group_4_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5012,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5012)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_4_Item_7_Name = PD_CR1.5
Group_4_Item_7_Comment = "Bit 5 of PD_CR1."
Group_4_Item_7_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5012)&0x20)?1:0)+((GetByteValue(0,0x5011)&0x20)?2:0));
Group_4_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5012,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5012)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_4_Item_8_Name = PD_CR1.6
Group_4_Item_8_Comment = "Bit 6 of PD_CR1."
Group_4_Item_8_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5012)&0x40)?1:0)+((GetByteValue(0,0x5011)&0x40)?2:0));
Group_4_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5012,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5012)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_4_Item_9_Name = PD_CR1.7
Group_4_Item_9_Comment = "Bit 7 of PD_CR1."
Group_4_Item_9_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5012)&0x80)?1:0)+((GetByteValue(0,0x5011)&0x80)?2:0));
Group_4_Item_9_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5012,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5012)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

#----------------------- 5 : PD_CR2 --------------------------------------------

Group_5_Name = Port D control register 2 (PD_CR2)
Group_5_Comment = "These bits are set and cleared by software.\nThey select different functions in input mode and output mode.\n - In input mode, the CR2 bit enables the interrupt capability if available. If the I/O does not have interrupt capability, setting the CR2 bit has no effect.\n - In output mode, setting the CR2 bit reduces the slew  rate of the I/O. This helps improve the EMC of the I/O. This applies to ports  with O3 and O4 output types (see pin description table).\n\nIn input mode  (DDR=0):\n   0: External interrupt disabled\n   1: External interrupt enabled\n In output mode (DDR=1) :\n   0: Slope limited to 2 MHz\n   1: Slope limited to 10 MHz"
Group_5_ItemsNumber = 9

Group_5_Item_1_Name = PD_CR2
Group_5_Item_1_Comment = "Port D control register 2."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5013).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x5013,parseInt(GetString()));

Group_5_Item_2_Name = PD_CR2.0
Group_5_Item_2_Comment = "Bit 0 of PD_CR2."
Group_5_Item_2_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5013)&0x01)?1:0)+((GetByteValue(0,0x5011)&0x01)?2:0));
Group_5_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5013,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5013)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_5_Item_3_Name = PD_CR2.1
Group_5_Item_3_Comment = "Bit 1 of PD_CR2."
Group_5_Item_3_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5013)&0x02)?1:0)+((GetByteValue(0,0x5011)&0x02)?2:0));
Group_5_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5013,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5013)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_5_Item_4_Name = PD_CR2.2
Group_5_Item_4_Comment = "Bit 2 of PD_CR2."
Group_5_Item_4_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5013)&0x04)?1:0)+((GetByteValue(0,0x5011)&0x04)?2:0));
Group_5_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5013,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5013)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_5_Item_5_Name = PD_CR2.3
Group_5_Item_5_Comment = "Bit 3 of PD_CR2."
Group_5_Item_5_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5013)&0x08)?1:0)+((GetByteValue(0,0x5011)&0x08)?2:0));
Group_5_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5013,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5013)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_5_Item_6_Name = PD_CR2.4
Group_5_Item_6_Comment = "Bit 4 of PD_CR2."
Group_5_Item_6_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5013)&0x10)?1:0)+((GetByteValue(0,0x5011)&0x10)?2:0));
Group_5_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5013,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5013)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_5_Item_7_Name = PD_CR2.5
Group_5_Item_7_Comment = "Bit 5 of PD_CR2."
Group_5_Item_7_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5013)&0x20)?1:0)+((GetByteValue(0,0x5011)&0x20)?2:0));
Group_5_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5013,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5013)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_5_Item_8_Name = PD_CR2.6
Group_5_Item_8_Comment = "Bit 6 of PD_CR2."
Group_5_Item_8_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5013)&0x40)?1:0)+((GetByteValue(0,0x5011)&0x40)?2:0));
Group_5_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5013,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5013)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

Group_5_Item_9_Name = PD_CR2.7
Group_5_Item_9_Comment = "Bit 7 of PD_CR2."
Group_5_Item_9_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5013)&0x80)?1:0)+((GetByteValue(0,0x5011)&0x80)?2:0));
Group_5_Item_9_DecodingProc = { var bit = 0x80; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5013,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5013)&~(bit))); SetByteValue(0,0x5011,half*bit|(GetByteValue(0,0x5011)&~(bit))); }

[GPIOE]

SymbsNumber = 5

Symb_1 = PE_ODR, 0, 0x5014
Symb_2 = PE_IDR, 0, 0x5015
Symb_3 = PE_DDR, 0, 0x5016
Symb_4 = PE_CR1, 0, 0x5017
Symb_5 = PE_CR2, 0, 0x5018

ResetCode = {SetByteValue(0,0x5014,0x00); SetByteValue(0,0x5015,0x00); SetByteValue(0,0x5016,0x00); SetByteValue(0,0x5017,0x00); SetByteValue(0,0x5018,0x00);}

GroupsNumber = 5
#----------------------- 1 : PE_ODR --------------------------------------------

Group_1_Name = Port E data output latch register (PE_ODR)
Group_1_Comment = "Port E data output latch register. \n Address Offset: 00h. \n Reset value: 00h."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = PE_ODR
Group_1_Item_1_Comment = "Port E data output latch register."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5014).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x5014,parseInt(GetString()));

#----------------------- 2 : PE_IDR --------------------------------------------

Group_2_Name = Port E input pin value register (PE_IDR)
Group_2_Comment = "Port E input pin value register. \n Address Offset: 01h. \n Reset value: 00h."
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = PE_IDR
Group_2_Item_1_Comment = "Port E input pin value register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5015).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x5015,parseInt(GetString()));

#----------------------- 3 : PE_DDR --------------------------------------------

Group_3_Name = Port E data direction register (PE_DDR)
Group_3_Comment = "Port E data direction register. \n Address Offset: 02h. \n Reset value: 0x00. \n These bits are set and cleared by software to select input or output mode  for a particular pin of a port. \n  0: Input mode \n  1: Output mode"
Group_3_ItemsNumber = 9

Group_3_Item_1_Name = PE_DDR
Group_3_Item_1_Comment = "Port E data direction register."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5016).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x5016,parseInt(GetString()));

Group_3_Item_2_Name = PE_DDR.0
Group_3_Item_2_Comment = "Bit 0 of PE_DDR."
Group_3_Item_2_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_2_BitField = Byte, 0, 0x5016, 0, 1

Group_3_Item_3_Name = PE_DDR.1
Group_3_Item_3_Comment = "Bit 1 of PE_DDR."
Group_3_Item_3_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_3_BitField = Byte, 0, 0x5016, 1, 1

Group_3_Item_4_Name = PE_DDR.2
Group_3_Item_4_Comment = "Bit 2 of PE_DDR."
Group_3_Item_4_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_4_BitField = Byte, 0, 0x5016, 2, 1

Group_3_Item_5_Name = PE_DDR.3
Group_3_Item_5_Comment = "Bit 3 of PE_DDR."
Group_3_Item_5_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_5_BitField = Byte, 0, 0x5016, 3, 1

Group_3_Item_6_Name = PE_DDR.4
Group_3_Item_6_Comment = "Bit 4 of PE_DDR."
Group_3_Item_6_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_6_BitField = Byte, 0, 0x5016, 4, 1

Group_3_Item_7_Name = PE_DDR.5
Group_3_Item_7_Comment = "Bit 5 of PE_DDR."
Group_3_Item_7_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_7_BitField = Byte, 0, 0x5016, 5, 1

Group_3_Item_8_Name = PE_DDR.6
Group_3_Item_8_Comment = "Bit 6 of PE_DDR."
Group_3_Item_8_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_8_BitField = Byte, 0, 0x5016, 6, 1

Group_3_Item_9_Name = PE_DDR.7
Group_3_Item_9_Comment = "Bit 7 of PE_DDR."
Group_3_Item_9_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_9_BitField = Byte, 0, 0x5016, 7, 1

#----------------------- 4 : PE_CR1 --------------------------------------------

Group_4_Name = Port E control register 1 (PE_CR1)
Group_4_Comment = "Port E control register 1. \n Address Offset: 03h. \n Reset value: 0x00. \n These bits are set and cleared by software. They select different functions  in input mode and output mode. \n - In input mode (DDR=0): \n   0: Floating input \n   1: Input with pull-up \n - In output mode (DDR=1): \n   0: Pseudo Open Drain \n   1: Push-pull, slope control for the output depends on the corresponding CR2 bit"
Group_4_ItemsNumber = 9

Group_4_Item_1_Name = PE_CR1
Group_4_Item_1_Comment = "Port E control register 1."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5017).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x5017,parseInt(GetString()));

Group_4_Item_2_Name = PE_CR1.0
Group_4_Item_2_Comment = "Bit 0 of PE_CR1."
Group_4_Item_2_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5017)&0x01)?1:0)+((GetByteValue(0,0x5016)&0x01)?2:0));
Group_4_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5017,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5017)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_4_Item_3_Name = PE_CR1.1
Group_4_Item_3_Comment = "Bit 1 of PE_CR1."
Group_4_Item_3_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5017)&0x02)?1:0)+((GetByteValue(0,0x5016)&0x02)?2:0));
Group_4_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5017,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5017)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_4_Item_4_Name = PE_CR1.2
Group_4_Item_4_Comment = "Bit 2 of PE_CR1."
Group_4_Item_4_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5017)&0x04)?1:0)+((GetByteValue(0,0x5016)&0x04)?2:0));
Group_4_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5017,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5017)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_4_Item_5_Name = PE_CR1.3
Group_4_Item_5_Comment = "Bit 3 of PE_CR1."
Group_4_Item_5_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5017)&0x08)?1:0)+((GetByteValue(0,0x5016)&0x08)?2:0));
Group_4_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5017,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5017)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_4_Item_6_Name = PE_CR1.4
Group_4_Item_6_Comment = "Bit 4 of PE_CR1."
Group_4_Item_6_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5017)&0x10)?1:0)+((GetByteValue(0,0x5016)&0x10)?2:0));
Group_4_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5017,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5017)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_4_Item_7_Name = PE_CR1.5
Group_4_Item_7_Comment = "Bit 5 of PE_CR1."
Group_4_Item_7_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5017)&0x20)?1:0)+((GetByteValue(0,0x5016)&0x20)?2:0));
Group_4_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5017,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5017)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_4_Item_8_Name = PE_CR1.6
Group_4_Item_8_Comment = "Bit 6 of PE_CR1."
Group_4_Item_8_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5017)&0x40)?1:0)+((GetByteValue(0,0x5016)&0x40)?2:0));
Group_4_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5017,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5017)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_4_Item_9_Name = PE_CR1.7
Group_4_Item_9_Comment = "Bit 7 of PE_CR1."
Group_4_Item_9_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5017)&0x80)?1:0)+((GetByteValue(0,0x5016)&0x80)?2:0));
Group_4_Item_9_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5017,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5017)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

#----------------------- 5 : PE_CR2 --------------------------------------------

Group_5_Name = Port E control register 2 (PE_CR2)
Group_5_Comment = "These bits are set and cleared by software.\nThey select different functions in input mode and output mode.\n - In input mode, the CR2 bit enables the interrupt capability if available. If the I/O does not have interrupt capability, setting the CR2 bit has no effect.\n - In output mode, setting the CR2 bit reduces the slew  rate of the I/O. This helps improve the EMC of the I/O. This applies to ports  with O3 and O4 output types (see pin description table).\n\nIn input mode  (DDR=0):\n   0: External interrupt disabled\n   1: External interrupt enabled\n In output mode (DDR=1) :\n   0: Slope limited to 2 MHz\n   1: Slope limited to 10 MHz"
Group_5_ItemsNumber = 9

Group_5_Item_1_Name = PE_CR2
Group_5_Item_1_Comment = "Port E control register 2."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5018).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x5018,parseInt(GetString()));

Group_5_Item_2_Name = PE_CR2.0
Group_5_Item_2_Comment = "Bit 0 of PE_CR2."
Group_5_Item_2_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5018)&0x01)?1:0)+((GetByteValue(0,0x5016)&0x01)?2:0));
Group_5_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5018,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5018)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_5_Item_3_Name = PE_CR2.1
Group_5_Item_3_Comment = "Bit 1 of PE_CR2."
Group_5_Item_3_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5018)&0x02)?1:0)+((GetByteValue(0,0x5016)&0x02)?2:0));
Group_5_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5018,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5018)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_5_Item_4_Name = PE_CR2.2
Group_5_Item_4_Comment = "Bit 2 of PE_CR2."
Group_5_Item_4_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5018)&0x04)?1:0)+((GetByteValue(0,0x5016)&0x04)?2:0));
Group_5_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5018,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5018)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_5_Item_5_Name = PE_CR2.3
Group_5_Item_5_Comment = "Bit 3 of PE_CR2."
Group_5_Item_5_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5018)&0x08)?1:0)+((GetByteValue(0,0x5016)&0x08)?2:0));
Group_5_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5018,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5018)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_5_Item_6_Name = PE_CR2.4
Group_5_Item_6_Comment = "Bit 4 of PE_CR2."
Group_5_Item_6_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5018)&0x10)?1:0)+((GetByteValue(0,0x5016)&0x10)?2:0));
Group_5_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5018,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5018)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_5_Item_7_Name = PE_CR2.5
Group_5_Item_7_Comment = "Bit 5 of PE_CR2."
Group_5_Item_7_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5018)&0x20)?1:0)+((GetByteValue(0,0x5016)&0x20)?2:0));
Group_5_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5018,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5018)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_5_Item_8_Name = PE_CR2.6
Group_5_Item_8_Comment = "Bit 6 of PE_CR2."
Group_5_Item_8_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5018)&0x40)?1:0)+((GetByteValue(0,0x5016)&0x40)?2:0));
Group_5_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5018,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5018)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

Group_5_Item_9_Name = PE_CR2.7
Group_5_Item_9_Comment = "Bit 7 of PE_CR2."
Group_5_Item_9_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5018)&0x80)?1:0)+((GetByteValue(0,0x5016)&0x80)?2:0));
Group_5_Item_9_DecodingProc = { var bit = 0x80; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5018,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5018)&~(bit))); SetByteValue(0,0x5016,half*bit|(GetByteValue(0,0x5016)&~(bit))); }

[GPIOF]

SymbsNumber = 5

Symb_1 = PF_ODR, 0, 0x5019
Symb_2 = PF_IDR, 0, 0x501a
Symb_3 = PF_DDR, 0, 0x501b
Symb_4 = PF_CR1, 0, 0x501c
Symb_5 = PF_CR2, 0, 0x501d

ResetCode = {SetByteValue(0,0x5019,0x00); SetByteValue(0,0x501a,0x00); SetByteValue(0,0x501b,0x00); SetByteValue(0,0x501c,0x00); SetByteValue(0,0x501d,0x00);}

GroupsNumber = 5
#----------------------- 1 : PF_ODR --------------------------------------------

Group_1_Name = Port F data output latch register (PF_ODR)
Group_1_Comment = "Port F data output latch register. \n Address Offset: 00h. \n Reset value: 00h."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = PF_ODR
Group_1_Item_1_Comment = "Port F data output latch register."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5019).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x5019,parseInt(GetString()));

#----------------------- 2 : PF_IDR --------------------------------------------

Group_2_Name = Port F input pin value register (PF_IDR)
Group_2_Comment = "Port F input pin value register. \n Address Offset: 01h. \n Reset value: 00h."
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = PF_IDR
Group_2_Item_1_Comment = "Port F input pin value register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x501a).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x501a,parseInt(GetString()));

#----------------------- 3 : PF_DDR --------------------------------------------

Group_3_Name = Port F data direction register (PF_DDR)
Group_3_Comment = "Port F data direction register. \n Address Offset: 02h. \n Reset value: 0x00. \n These bits are set and cleared by software to select input or output mode  for a particular pin of a port. \n  0: Input mode \n  1: Output mode"
Group_3_ItemsNumber = 9

Group_3_Item_1_Name = PF_DDR
Group_3_Item_1_Comment = "Port F data direction register."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x501b).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x501b,parseInt(GetString()));

Group_3_Item_2_Name = PF_DDR.0
Group_3_Item_2_Comment = "Bit 0 of PF_DDR."
Group_3_Item_2_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_2_BitField = Byte, 0, 0x501b, 0, 1

Group_3_Item_3_Name = PF_DDR.1
Group_3_Item_3_Comment = "Bit 1 of PF_DDR."
Group_3_Item_3_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_3_BitField = Byte, 0, 0x501b, 1, 1

Group_3_Item_4_Name = PF_DDR.2
Group_3_Item_4_Comment = "Bit 2 of PF_DDR."
Group_3_Item_4_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_4_BitField = Byte, 0, 0x501b, 2, 1

Group_3_Item_5_Name = PF_DDR.3
Group_3_Item_5_Comment = "Bit 3 of PF_DDR."
Group_3_Item_5_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_5_BitField = Byte, 0, 0x501b, 3, 1

Group_3_Item_6_Name = PF_DDR.4
Group_3_Item_6_Comment = "Bit 4 of PF_DDR."
Group_3_Item_6_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_6_BitField = Byte, 0, 0x501b, 4, 1

Group_3_Item_7_Name = PF_DDR.5
Group_3_Item_7_Comment = "Bit 5 of PF_DDR."
Group_3_Item_7_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_7_BitField = Byte, 0, 0x501b, 5, 1

Group_3_Item_8_Name = PF_DDR.6
Group_3_Item_8_Comment = "Bit 6 of PF_DDR."
Group_3_Item_8_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_8_BitField = Byte, 0, 0x501b, 6, 1

Group_3_Item_9_Name = PF_DDR.7
Group_3_Item_9_Comment = "Bit 7 of PF_DDR."
Group_3_Item_9_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_9_BitField = Byte, 0, 0x501b, 7, 1

#----------------------- 4 : PF_CR1 --------------------------------------------

Group_4_Name = Port F control register 1 (PF_CR1)
Group_4_Comment = "Port F control register 1. \n Address Offset: 03h. \n Reset value: 0x00. \n These bits are set and cleared by software. They select different functions  in input mode and output mode. \n - In input mode (DDR=0): \n   0: Floating input \n   1: Input with pull-up \n - In output mode (DDR=1): \n   0: Pseudo Open Drain \n   1: Push-pull, slope control for the output depends on the corresponding CR2 bit"
Group_4_ItemsNumber = 9

Group_4_Item_1_Name = PF_CR1
Group_4_Item_1_Comment = "Port F control register 1."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x501c).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x501c,parseInt(GetString()));

Group_4_Item_2_Name = PF_CR1.0
Group_4_Item_2_Comment = "Bit 0 of PF_CR1."
Group_4_Item_2_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_2_CodingProc = SetInt(((GetByteValue(0,0x501c)&0x01)?1:0)+((GetByteValue(0,0x501b)&0x01)?2:0));
Group_4_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501c)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_4_Item_3_Name = PF_CR1.1
Group_4_Item_3_Comment = "Bit 1 of PF_CR1."
Group_4_Item_3_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_3_CodingProc = SetInt(((GetByteValue(0,0x501c)&0x02)?1:0)+((GetByteValue(0,0x501b)&0x02)?2:0));
Group_4_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501c)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_4_Item_4_Name = PF_CR1.2
Group_4_Item_4_Comment = "Bit 2 of PF_CR1."
Group_4_Item_4_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_4_CodingProc = SetInt(((GetByteValue(0,0x501c)&0x04)?1:0)+((GetByteValue(0,0x501b)&0x04)?2:0));
Group_4_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501c)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_4_Item_5_Name = PF_CR1.3
Group_4_Item_5_Comment = "Bit 3 of PF_CR1."
Group_4_Item_5_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_5_CodingProc = SetInt(((GetByteValue(0,0x501c)&0x08)?1:0)+((GetByteValue(0,0x501b)&0x08)?2:0));
Group_4_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501c)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_4_Item_6_Name = PF_CR1.4
Group_4_Item_6_Comment = "Bit 4 of PF_CR1."
Group_4_Item_6_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_6_CodingProc = SetInt(((GetByteValue(0,0x501c)&0x10)?1:0)+((GetByteValue(0,0x501b)&0x10)?2:0));
Group_4_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501c)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_4_Item_7_Name = PF_CR1.5
Group_4_Item_7_Comment = "Bit 5 of PF_CR1."
Group_4_Item_7_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_7_CodingProc = SetInt(((GetByteValue(0,0x501c)&0x20)?1:0)+((GetByteValue(0,0x501b)&0x20)?2:0));
Group_4_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501c)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_4_Item_8_Name = PF_CR1.6
Group_4_Item_8_Comment = "Bit 6 of PF_CR1."
Group_4_Item_8_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_8_CodingProc = SetInt(((GetByteValue(0,0x501c)&0x40)?1:0)+((GetByteValue(0,0x501b)&0x40)?2:0));
Group_4_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501c)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_4_Item_9_Name = PF_CR1.7
Group_4_Item_9_Comment = "Bit 7 of PF_CR1."
Group_4_Item_9_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_9_CodingProc = SetInt(((GetByteValue(0,0x501c)&0x80)?1:0)+((GetByteValue(0,0x501b)&0x80)?2:0));
Group_4_Item_9_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501c)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

#----------------------- 5 : PF_CR2 --------------------------------------------

Group_5_Name = Port F control register 2 (PF_CR2)
Group_5_Comment = "These bits are set and cleared by software.\nThey select different functions in input mode and output mode.\n - In input mode, the CR2 bit enables the interrupt capability if available. If the I/O does not have interrupt capability, setting the CR2 bit has no effect.\n - In output mode, setting the CR2 bit reduces the slew  rate of the I/O. This helps improve the EMC of the I/O. This applies to ports  with O3 and O4 output types (see pin description table).\n\nIn input mode  (DDR=0):\n   0: External interrupt disabled\n   1: External interrupt enabled\n In output mode (DDR=1) :\n   0: Slope limited to 2 MHz\n   1: Slope limited to 10 MHz"
Group_5_ItemsNumber = 9

Group_5_Item_1_Name = PF_CR2
Group_5_Item_1_Comment = "Port F control register 2."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x501d).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x501d,parseInt(GetString()));

Group_5_Item_2_Name = PF_CR2.0
Group_5_Item_2_Comment = "Bit 0 of PF_CR2."
Group_5_Item_2_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_2_CodingProc = SetInt(((GetByteValue(0,0x501d)&0x01)?1:0)+((GetByteValue(0,0x501b)&0x01)?2:0));
Group_5_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501d)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_5_Item_3_Name = PF_CR2.1
Group_5_Item_3_Comment = "Bit 1 of PF_CR2."
Group_5_Item_3_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_3_CodingProc = SetInt(((GetByteValue(0,0x501d)&0x02)?1:0)+((GetByteValue(0,0x501b)&0x02)?2:0));
Group_5_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501d)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_5_Item_4_Name = PF_CR2.2
Group_5_Item_4_Comment = "Bit 2 of PF_CR2."
Group_5_Item_4_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_4_CodingProc = SetInt(((GetByteValue(0,0x501d)&0x04)?1:0)+((GetByteValue(0,0x501b)&0x04)?2:0));
Group_5_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501d)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_5_Item_5_Name = PF_CR2.3
Group_5_Item_5_Comment = "Bit 3 of PF_CR2."
Group_5_Item_5_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_5_CodingProc = SetInt(((GetByteValue(0,0x501d)&0x08)?1:0)+((GetByteValue(0,0x501b)&0x08)?2:0));
Group_5_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501d)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_5_Item_6_Name = PF_CR2.4
Group_5_Item_6_Comment = "Bit 4 of PF_CR2."
Group_5_Item_6_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_6_CodingProc = SetInt(((GetByteValue(0,0x501d)&0x10)?1:0)+((GetByteValue(0,0x501b)&0x10)?2:0));
Group_5_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501d)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_5_Item_7_Name = PF_CR2.5
Group_5_Item_7_Comment = "Bit 5 of PF_CR2."
Group_5_Item_7_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_7_CodingProc = SetInt(((GetByteValue(0,0x501d)&0x20)?1:0)+((GetByteValue(0,0x501b)&0x20)?2:0));
Group_5_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501d)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_5_Item_8_Name = PF_CR2.6
Group_5_Item_8_Comment = "Bit 6 of PF_CR2."
Group_5_Item_8_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_8_CodingProc = SetInt(((GetByteValue(0,0x501d)&0x40)?1:0)+((GetByteValue(0,0x501b)&0x40)?2:0));
Group_5_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501d)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

Group_5_Item_9_Name = PF_CR2.7
Group_5_Item_9_Comment = "Bit 7 of PF_CR2."
Group_5_Item_9_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_9_CodingProc = SetInt(((GetByteValue(0,0x501d)&0x80)?1:0)+((GetByteValue(0,0x501b)&0x80)?2:0));
Group_5_Item_9_DecodingProc = { var bit = 0x80; var half = Math.floor(GetInt()/2); SetByteValue(0,0x501d,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x501d)&~(bit))); SetByteValue(0,0x501b,half*bit|(GetByteValue(0,0x501b)&~(bit))); }

[GPIOG]

SymbsNumber = 5

Symb_1 = PG_ODR, 0, 0x501e
Symb_2 = PG_IDR, 0, 0x501f
Symb_3 = PG_DDR, 0, 0x5020
Symb_4 = PG_CR1, 0, 0x5021
Symb_5 = PG_CR2, 0, 0x5022

ResetCode = {SetByteValue(0,0x501e,0x00); SetByteValue(0,0x501f,0x00); SetByteValue(0,0x5020,0x00); SetByteValue(0,0x5021,0x00); SetByteValue(0,0x5022,0x00);}

GroupsNumber = 5
#----------------------- 1 : PG_ODR --------------------------------------------

Group_1_Name = Port G data output latch register (PG_ODR)
Group_1_Comment = "Port G data output latch register. \n Address Offset: 00h. \n Reset value: 00h."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = PG_ODR
Group_1_Item_1_Comment = "Port G data output latch register."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x501e).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x501e,parseInt(GetString()));

#----------------------- 2 : PG_IDR --------------------------------------------

Group_2_Name = Port G input pin value register (PG_IDR)
Group_2_Comment = "Port G input pin value register. \n Address Offset: 01h. \n Reset value: 00h."
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = PG_IDR
Group_2_Item_1_Comment = "Port G input pin value register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x501f).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x501f,parseInt(GetString()));

#----------------------- 3 : PG_DDR --------------------------------------------

Group_3_Name = Port G data direction register (PG_DDR)
Group_3_Comment = "Port G data direction register. \n Address Offset: 02h. \n Reset value: 0x00. \n These bits are set and cleared by software to select input or output mode  for a particular pin of a port. \n  0: Input mode \n  1: Output mode"
Group_3_ItemsNumber = 9

Group_3_Item_1_Name = PG_DDR
Group_3_Item_1_Comment = "Port G data direction register."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5020).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x5020,parseInt(GetString()));

Group_3_Item_2_Name = PG_DDR.0
Group_3_Item_2_Comment = "Bit 0 of PG_DDR."
Group_3_Item_2_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_2_BitField = Byte, 0, 0x5020, 0, 1

Group_3_Item_3_Name = PG_DDR.1
Group_3_Item_3_Comment = "Bit 1 of PG_DDR."
Group_3_Item_3_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_3_BitField = Byte, 0, 0x5020, 1, 1

Group_3_Item_4_Name = PG_DDR.2
Group_3_Item_4_Comment = "Bit 2 of PG_DDR."
Group_3_Item_4_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_4_BitField = Byte, 0, 0x5020, 2, 1

Group_3_Item_5_Name = PG_DDR.3
Group_3_Item_5_Comment = "Bit 3 of PG_DDR."
Group_3_Item_5_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_5_BitField = Byte, 0, 0x5020, 3, 1

Group_3_Item_6_Name = PG_DDR.4
Group_3_Item_6_Comment = "Bit 4 of PG_DDR."
Group_3_Item_6_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_6_BitField = Byte, 0, 0x5020, 4, 1

Group_3_Item_7_Name = PG_DDR.5
Group_3_Item_7_Comment = "Bit 5 of PG_DDR."
Group_3_Item_7_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_7_BitField = Byte, 0, 0x5020, 5, 1

Group_3_Item_8_Name = PG_DDR.6
Group_3_Item_8_Comment = "Bit 6 of PG_DDR."
Group_3_Item_8_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_8_BitField = Byte, 0, 0x5020, 6, 1

Group_3_Item_9_Name = PG_DDR.7
Group_3_Item_9_Comment = "Bit 7 of PG_DDR."
Group_3_Item_9_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_9_BitField = Byte, 0, 0x5020, 7, 1

#----------------------- 4 : PG_CR1 --------------------------------------------

Group_4_Name = Port G control register 1 (PG_CR1)
Group_4_Comment = "Port G control register 1. \n Address Offset: 03h. \n Reset value: 0x00. \n These bits are set and cleared by software. They select different functions  in input mode and output mode. \n - In input mode (DDR=0): \n   0: Floating input \n   1: Input with pull-up \n - In output mode (DDR=1): \n   0: Pseudo Open Drain \n   1: Push-pull, slope control for the output depends on the corresponding CR2 bit"
Group_4_ItemsNumber = 9

Group_4_Item_1_Name = PG_CR1
Group_4_Item_1_Comment = "Port G control register 1."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5021).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x5021,parseInt(GetString()));

Group_4_Item_2_Name = PG_CR1.0
Group_4_Item_2_Comment = "Bit 0 of PG_CR1."
Group_4_Item_2_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5021)&0x01)?1:0)+((GetByteValue(0,0x5020)&0x01)?2:0));
Group_4_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5021,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5021)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_4_Item_3_Name = PG_CR1.1
Group_4_Item_3_Comment = "Bit 1 of PG_CR1."
Group_4_Item_3_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5021)&0x02)?1:0)+((GetByteValue(0,0x5020)&0x02)?2:0));
Group_4_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5021,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5021)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_4_Item_4_Name = PG_CR1.2
Group_4_Item_4_Comment = "Bit 2 of PG_CR1."
Group_4_Item_4_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5021)&0x04)?1:0)+((GetByteValue(0,0x5020)&0x04)?2:0));
Group_4_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5021,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5021)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_4_Item_5_Name = PG_CR1.3
Group_4_Item_5_Comment = "Bit 3 of PG_CR1."
Group_4_Item_5_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5021)&0x08)?1:0)+((GetByteValue(0,0x5020)&0x08)?2:0));
Group_4_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5021,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5021)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_4_Item_6_Name = PG_CR1.4
Group_4_Item_6_Comment = "Bit 4 of PG_CR1."
Group_4_Item_6_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5021)&0x10)?1:0)+((GetByteValue(0,0x5020)&0x10)?2:0));
Group_4_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5021,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5021)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_4_Item_7_Name = PG_CR1.5
Group_4_Item_7_Comment = "Bit 5 of PG_CR1."
Group_4_Item_7_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5021)&0x20)?1:0)+((GetByteValue(0,0x5020)&0x20)?2:0));
Group_4_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5021,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5021)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_4_Item_8_Name = PG_CR1.6
Group_4_Item_8_Comment = "Bit 6 of PG_CR1."
Group_4_Item_8_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5021)&0x40)?1:0)+((GetByteValue(0,0x5020)&0x40)?2:0));
Group_4_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5021,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5021)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_4_Item_9_Name = PG_CR1.7
Group_4_Item_9_Comment = "Bit 7 of PG_CR1."
Group_4_Item_9_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5021)&0x80)?1:0)+((GetByteValue(0,0x5020)&0x80)?2:0));
Group_4_Item_9_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5021,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5021)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

#----------------------- 5 : PG_CR2 --------------------------------------------

Group_5_Name = Port G control register 2 (PG_CR2)
Group_5_Comment = "These bits are set and cleared by software.\nThey select different functions in input mode and output mode.\n - In input mode, the CR2 bit enables the interrupt capability if available. If the I/O does not have interrupt capability, setting the CR2 bit has no effect.\n - In output mode, setting the CR2 bit reduces the slew  rate of the I/O. This helps improve the EMC of the I/O. This applies to ports  with O3 and O4 output types (see pin description table).\n\nIn input mode  (DDR=0):\n   0: External interrupt disabled\n   1: External interrupt enabled\n In output mode (DDR=1) :\n   0: Slope limited to 2 MHz\n   1: Slope limited to 10 MHz"
Group_5_ItemsNumber = 9

Group_5_Item_1_Name = PG_CR2
Group_5_Item_1_Comment = "Port G control register 2."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5022).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x5022,parseInt(GetString()));

Group_5_Item_2_Name = PG_CR2.0
Group_5_Item_2_Comment = "Bit 0 of PG_CR2."
Group_5_Item_2_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5022)&0x01)?1:0)+((GetByteValue(0,0x5020)&0x01)?2:0));
Group_5_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5022,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5022)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_5_Item_3_Name = PG_CR2.1
Group_5_Item_3_Comment = "Bit 1 of PG_CR2."
Group_5_Item_3_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5022)&0x02)?1:0)+((GetByteValue(0,0x5020)&0x02)?2:0));
Group_5_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5022,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5022)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_5_Item_4_Name = PG_CR2.2
Group_5_Item_4_Comment = "Bit 2 of PG_CR2."
Group_5_Item_4_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5022)&0x04)?1:0)+((GetByteValue(0,0x5020)&0x04)?2:0));
Group_5_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5022,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5022)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_5_Item_5_Name = PG_CR2.3
Group_5_Item_5_Comment = "Bit 3 of PG_CR2."
Group_5_Item_5_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5022)&0x08)?1:0)+((GetByteValue(0,0x5020)&0x08)?2:0));
Group_5_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5022,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5022)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_5_Item_6_Name = PG_CR2.4
Group_5_Item_6_Comment = "Bit 4 of PG_CR2."
Group_5_Item_6_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5022)&0x10)?1:0)+((GetByteValue(0,0x5020)&0x10)?2:0));
Group_5_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5022,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5022)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_5_Item_7_Name = PG_CR2.5
Group_5_Item_7_Comment = "Bit 5 of PG_CR2."
Group_5_Item_7_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5022)&0x20)?1:0)+((GetByteValue(0,0x5020)&0x20)?2:0));
Group_5_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5022,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5022)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_5_Item_8_Name = PG_CR2.6
Group_5_Item_8_Comment = "Bit 6 of PG_CR2."
Group_5_Item_8_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5022)&0x40)?1:0)+((GetByteValue(0,0x5020)&0x40)?2:0));
Group_5_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5022,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5022)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

Group_5_Item_9_Name = PG_CR2.7
Group_5_Item_9_Comment = "Bit 7 of PG_CR2."
Group_5_Item_9_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5022)&0x80)?1:0)+((GetByteValue(0,0x5020)&0x80)?2:0));
Group_5_Item_9_DecodingProc = { var bit = 0x80; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5022,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5022)&~(bit))); SetByteValue(0,0x5020,half*bit|(GetByteValue(0,0x5020)&~(bit))); }

[GPIOH]

SymbsNumber = 5

Symb_1 = PH_ODR, 0, 0x5023
Symb_2 = PH_IDR, 0, 0x5024
Symb_3 = PH_DDR, 0, 0x5025
Symb_4 = PH_CR1, 0, 0x5026
Symb_5 = PH_CR2, 0, 0x5027

ResetCode = {SetByteValue(0,0x5023,0x00); SetByteValue(0,0x5024,0x00); SetByteValue(0,0x5025,0x00); SetByteValue(0,0x5026,0x00); SetByteValue(0,0x5027,0x00);}

GroupsNumber = 5
#----------------------- 1 : PH_ODR --------------------------------------------

Group_1_Name = Port H data output latch register (PH_ODR)
Group_1_Comment = "Port H data output latch register. \n Address Offset: 00h. \n Reset value: 00h."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = PH_ODR
Group_1_Item_1_Comment = "Port H data output latch register."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5023).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x5023,parseInt(GetString()));

#----------------------- 2 : PH_IDR --------------------------------------------

Group_2_Name = Port H input pin value register (PH_IDR)
Group_2_Comment = "Port H input pin value register. \n Address Offset: 01h. \n Reset value: 00h."
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = PH_IDR
Group_2_Item_1_Comment = "Port H input pin value register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5024).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x5024,parseInt(GetString()));

#----------------------- 3 : PH_DDR --------------------------------------------

Group_3_Name = Port H data direction register (PH_DDR)
Group_3_Comment = "Port H data direction register. \n Address Offset: 02h. \n Reset value: 0x00. \n These bits are set and cleared by software to select input or output mode  for a particular pin of a port. \n  0: Input mode \n  1: Output mode"
Group_3_ItemsNumber = 9

Group_3_Item_1_Name = PH_DDR
Group_3_Item_1_Comment = "Port H data direction register."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5025).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x5025,parseInt(GetString()));

Group_3_Item_2_Name = PH_DDR.0
Group_3_Item_2_Comment = "Bit 0 of PH_DDR."
Group_3_Item_2_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_2_BitField = Byte, 0, 0x5025, 0, 1

Group_3_Item_3_Name = PH_DDR.1
Group_3_Item_3_Comment = "Bit 1 of PH_DDR."
Group_3_Item_3_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_3_BitField = Byte, 0, 0x5025, 1, 1

Group_3_Item_4_Name = PH_DDR.2
Group_3_Item_4_Comment = "Bit 2 of PH_DDR."
Group_3_Item_4_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_4_BitField = Byte, 0, 0x5025, 2, 1

Group_3_Item_5_Name = PH_DDR.3
Group_3_Item_5_Comment = "Bit 3 of PH_DDR."
Group_3_Item_5_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_5_BitField = Byte, 0, 0x5025, 3, 1

Group_3_Item_6_Name = PH_DDR.4
Group_3_Item_6_Comment = "Bit 4 of PH_DDR."
Group_3_Item_6_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_6_BitField = Byte, 0, 0x5025, 4, 1

Group_3_Item_7_Name = PH_DDR.5
Group_3_Item_7_Comment = "Bit 5 of PH_DDR."
Group_3_Item_7_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_7_BitField = Byte, 0, 0x5025, 5, 1

Group_3_Item_8_Name = PH_DDR.6
Group_3_Item_8_Comment = "Bit 6 of PH_DDR."
Group_3_Item_8_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_8_BitField = Byte, 0, 0x5025, 6, 1

Group_3_Item_9_Name = PH_DDR.7
Group_3_Item_9_Comment = "Bit 7 of PH_DDR."
Group_3_Item_9_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_9_BitField = Byte, 0, 0x5025, 7, 1

#----------------------- 4 : PH_CR1 --------------------------------------------

Group_4_Name = Port H control register 1 (PH_CR1)
Group_4_Comment = "Port H control register 1. \n Address Offset: 03h. \n Reset value: 0x00. \n These bits are set and cleared by software. They select different functions  in input mode and output mode. \n - In input mode (DDR=0): \n   0: Floating input \n   1: Input with pull-up \n - In output mode (DDR=1): \n   0: Pseudo Open Drain \n   1: Push-pull, slope control for the output depends on the corresponding CR2 bit"
Group_4_ItemsNumber = 9

Group_4_Item_1_Name = PH_CR1
Group_4_Item_1_Comment = "Port H control register 1."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5026).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x5026,parseInt(GetString()));

Group_4_Item_2_Name = PH_CR1.0
Group_4_Item_2_Comment = "Bit 0 of PH_CR1."
Group_4_Item_2_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5026)&0x01)?1:0)+((GetByteValue(0,0x5025)&0x01)?2:0));
Group_4_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5026,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5026)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_4_Item_3_Name = PH_CR1.1
Group_4_Item_3_Comment = "Bit 1 of PH_CR1."
Group_4_Item_3_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5026)&0x02)?1:0)+((GetByteValue(0,0x5025)&0x02)?2:0));
Group_4_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5026,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5026)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_4_Item_4_Name = PH_CR1.2
Group_4_Item_4_Comment = "Bit 2 of PH_CR1."
Group_4_Item_4_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5026)&0x04)?1:0)+((GetByteValue(0,0x5025)&0x04)?2:0));
Group_4_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5026,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5026)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_4_Item_5_Name = PH_CR1.3
Group_4_Item_5_Comment = "Bit 3 of PH_CR1."
Group_4_Item_5_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5026)&0x08)?1:0)+((GetByteValue(0,0x5025)&0x08)?2:0));
Group_4_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5026,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5026)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_4_Item_6_Name = PH_CR1.4
Group_4_Item_6_Comment = "Bit 4 of PH_CR1."
Group_4_Item_6_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5026)&0x10)?1:0)+((GetByteValue(0,0x5025)&0x10)?2:0));
Group_4_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5026,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5026)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_4_Item_7_Name = PH_CR1.5
Group_4_Item_7_Comment = "Bit 5 of PH_CR1."
Group_4_Item_7_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5026)&0x20)?1:0)+((GetByteValue(0,0x5025)&0x20)?2:0));
Group_4_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5026,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5026)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_4_Item_8_Name = PH_CR1.6
Group_4_Item_8_Comment = "Bit 6 of PH_CR1."
Group_4_Item_8_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5026)&0x40)?1:0)+((GetByteValue(0,0x5025)&0x40)?2:0));
Group_4_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5026,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5026)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_4_Item_9_Name = PH_CR1.7
Group_4_Item_9_Comment = "Bit 7 of PH_CR1."
Group_4_Item_9_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5026)&0x80)?1:0)+((GetByteValue(0,0x5025)&0x80)?2:0));
Group_4_Item_9_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5026,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5026)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

#----------------------- 5 : PH_CR2 --------------------------------------------

Group_5_Name = Port H control register 2 (PH_CR2)
Group_5_Comment = "These bits are set and cleared by software.\nThey select different functions in input mode and output mode.\n - In input mode, the CR2 bit enables the interrupt capability if available. If the I/O does not have interrupt capability, setting the CR2 bit has no effect.\n - In output mode, setting the CR2 bit reduces the slew  rate of the I/O. This helps improve the EMC of the I/O. This applies to ports  with O3 and O4 output types (see pin description table).\n\nIn input mode  (DDR=0):\n   0: External interrupt disabled\n   1: External interrupt enabled\n In output mode (DDR=1) :\n   0: Slope limited to 2 MHz\n   1: Slope limited to 10 MHz"
Group_5_ItemsNumber = 9

Group_5_Item_1_Name = PH_CR2
Group_5_Item_1_Comment = "Port H control register 2."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5027).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x5027,parseInt(GetString()));

Group_5_Item_2_Name = PH_CR2.0
Group_5_Item_2_Comment = "Bit 0 of PH_CR2."
Group_5_Item_2_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_2_CodingProc = SetInt(((GetByteValue(0,0x5027)&0x01)?1:0)+((GetByteValue(0,0x5025)&0x01)?2:0));
Group_5_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5027,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5027)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_5_Item_3_Name = PH_CR2.1
Group_5_Item_3_Comment = "Bit 1 of PH_CR2."
Group_5_Item_3_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_3_CodingProc = SetInt(((GetByteValue(0,0x5027)&0x02)?1:0)+((GetByteValue(0,0x5025)&0x02)?2:0));
Group_5_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5027,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5027)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_5_Item_4_Name = PH_CR2.2
Group_5_Item_4_Comment = "Bit 2 of PH_CR2."
Group_5_Item_4_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_4_CodingProc = SetInt(((GetByteValue(0,0x5027)&0x04)?1:0)+((GetByteValue(0,0x5025)&0x04)?2:0));
Group_5_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5027,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5027)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_5_Item_5_Name = PH_CR2.3
Group_5_Item_5_Comment = "Bit 3 of PH_CR2."
Group_5_Item_5_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_5_CodingProc = SetInt(((GetByteValue(0,0x5027)&0x08)?1:0)+((GetByteValue(0,0x5025)&0x08)?2:0));
Group_5_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5027,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5027)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_5_Item_6_Name = PH_CR2.4
Group_5_Item_6_Comment = "Bit 4 of PH_CR2."
Group_5_Item_6_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_6_CodingProc = SetInt(((GetByteValue(0,0x5027)&0x10)?1:0)+((GetByteValue(0,0x5025)&0x10)?2:0));
Group_5_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5027,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5027)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_5_Item_7_Name = PH_CR2.5
Group_5_Item_7_Comment = "Bit 5 of PH_CR2."
Group_5_Item_7_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_7_CodingProc = SetInt(((GetByteValue(0,0x5027)&0x20)?1:0)+((GetByteValue(0,0x5025)&0x20)?2:0));
Group_5_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5027,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5027)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_5_Item_8_Name = PH_CR2.6
Group_5_Item_8_Comment = "Bit 6 of PH_CR2."
Group_5_Item_8_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_8_CodingProc = SetInt(((GetByteValue(0,0x5027)&0x40)?1:0)+((GetByteValue(0,0x5025)&0x40)?2:0));
Group_5_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5027,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5027)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

Group_5_Item_9_Name = PH_CR2.7
Group_5_Item_9_Comment = "Bit 7 of PH_CR2."
Group_5_Item_9_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_9_CodingProc = SetInt(((GetByteValue(0,0x5027)&0x80)?1:0)+((GetByteValue(0,0x5025)&0x80)?2:0));
Group_5_Item_9_DecodingProc = { var bit = 0x80; var half = Math.floor(GetInt()/2); SetByteValue(0,0x5027,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x5027)&~(bit))); SetByteValue(0,0x5025,half*bit|(GetByteValue(0,0x5025)&~(bit))); }

[GPIOI]

SymbsNumber = 5

Symb_1 = PI_ODR, 0, 0x5028
Symb_2 = PI_IDR, 0, 0x5029
Symb_3 = PI_DDR, 0, 0x502a
Symb_4 = PI_CR1, 0, 0x502b
Symb_5 = PI_CR2, 0, 0x502c

ResetCode = {SetByteValue(0,0x5028,0x00); SetByteValue(0,0x5029,0x00); SetByteValue(0,0x502a,0x00); SetByteValue(0,0x502b,0x00); SetByteValue(0,0x502c,0x00);}

GroupsNumber = 5
#----------------------- 1 : PI_ODR --------------------------------------------

Group_1_Name = Port I data output latch register (PI_ODR)
Group_1_Comment = "Port I data output latch register. \n Address Offset: 00h. \n Reset value: 00h."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = PI_ODR
Group_1_Item_1_Comment = "Port I data output latch register."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5028).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x5028,parseInt(GetString()));

#----------------------- 2 : PI_IDR --------------------------------------------

Group_2_Name = Port I input pin value register (PI_IDR)
Group_2_Comment = "Port I input pin value register. \n Address Offset: 01h. \n Reset value: 00h."
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = PI_IDR
Group_2_Item_1_Comment = "Port I input pin value register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5029).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x5029,parseInt(GetString()));

#----------------------- 3 : PI_DDR --------------------------------------------

Group_3_Name = Port I data direction register (PI_DDR)
Group_3_Comment = "Port I data direction register. \n Address Offset: 02h. \n Reset value: 0x00. \n These bits are set and cleared by software to select input or output mode  for a particular pin of a port. \n  0: Input mode \n  1: Output mode"
Group_3_ItemsNumber = 9

Group_3_Item_1_Name = PI_DDR
Group_3_Item_1_Comment = "Port I data direction register."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x502a).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x502a,parseInt(GetString()));

Group_3_Item_2_Name = PI_DDR.0
Group_3_Item_2_Comment = "Bit 0 of PI_DDR."
Group_3_Item_2_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_2_BitField = Byte, 0, 0x502a, 0, 1

Group_3_Item_3_Name = PI_DDR.1
Group_3_Item_3_Comment = "Bit 1 of PI_DDR."
Group_3_Item_3_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_3_BitField = Byte, 0, 0x502a, 1, 1

Group_3_Item_4_Name = PI_DDR.2
Group_3_Item_4_Comment = "Bit 2 of PI_DDR."
Group_3_Item_4_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_4_BitField = Byte, 0, 0x502a, 2, 1

Group_3_Item_5_Name = PI_DDR.3
Group_3_Item_5_Comment = "Bit 3 of PI_DDR."
Group_3_Item_5_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_5_BitField = Byte, 0, 0x502a, 3, 1

Group_3_Item_6_Name = PI_DDR.4
Group_3_Item_6_Comment = "Bit 4 of PI_DDR."
Group_3_Item_6_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_6_BitField = Byte, 0, 0x502a, 4, 1

Group_3_Item_7_Name = PI_DDR.5
Group_3_Item_7_Comment = "Bit 5 of PI_DDR."
Group_3_Item_7_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_7_BitField = Byte, 0, 0x502a, 5, 1

Group_3_Item_8_Name = PI_DDR.6
Group_3_Item_8_Comment = "Bit 6 of PI_DDR."
Group_3_Item_8_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_8_BitField = Byte, 0, 0x502a, 6, 1

Group_3_Item_9_Name = PI_DDR.7
Group_3_Item_9_Comment = "Bit 7 of PI_DDR."
Group_3_Item_9_Type = 1, Input mode (0), Output mode (1)
Group_3_Item_9_BitField = Byte, 0, 0x502a, 7, 1

#----------------------- 4 : PI_CR1 --------------------------------------------

Group_4_Name = Port I control register 1 (PI_CR1)
Group_4_Comment = "Port I control register 1. \n Address Offset: 03h. \n Reset value: 0x00. \n These bits are set and cleared by software. They select different functions  in input mode and output mode. \n - In input mode (DDR=0): \n   0: Floating input \n   1: Input with pull-up \n - In output mode (DDR=1): \n   0: Pseudo Open Drain \n   1: Push-pull, slope control for the output depends on the corresponding CR2 bit"
Group_4_ItemsNumber = 9

Group_4_Item_1_Name = PI_CR1
Group_4_Item_1_Comment = "Port I control register 1."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x502b).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x502b,parseInt(GetString()));

Group_4_Item_2_Name = PI_CR1.0
Group_4_Item_2_Comment = "Bit 0 of PI_CR1."
Group_4_Item_2_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_2_CodingProc = SetInt(((GetByteValue(0,0x502b)&0x01)?1:0)+((GetByteValue(0,0x502a)&0x01)?2:0));
Group_4_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502b,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502b)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_4_Item_3_Name = PI_CR1.1
Group_4_Item_3_Comment = "Bit 1 of PI_CR1."
Group_4_Item_3_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_3_CodingProc = SetInt(((GetByteValue(0,0x502b)&0x02)?1:0)+((GetByteValue(0,0x502a)&0x02)?2:0));
Group_4_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502b,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502b)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_4_Item_4_Name = PI_CR1.2
Group_4_Item_4_Comment = "Bit 2 of PI_CR1."
Group_4_Item_4_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_4_CodingProc = SetInt(((GetByteValue(0,0x502b)&0x04)?1:0)+((GetByteValue(0,0x502a)&0x04)?2:0));
Group_4_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502b,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502b)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_4_Item_5_Name = PI_CR1.3
Group_4_Item_5_Comment = "Bit 3 of PI_CR1."
Group_4_Item_5_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_5_CodingProc = SetInt(((GetByteValue(0,0x502b)&0x08)?1:0)+((GetByteValue(0,0x502a)&0x08)?2:0));
Group_4_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502b,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502b)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_4_Item_6_Name = PI_CR1.4
Group_4_Item_6_Comment = "Bit 4 of PI_CR1."
Group_4_Item_6_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_6_CodingProc = SetInt(((GetByteValue(0,0x502b)&0x10)?1:0)+((GetByteValue(0,0x502a)&0x10)?2:0));
Group_4_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502b,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502b)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_4_Item_7_Name = PI_CR1.5
Group_4_Item_7_Comment = "Bit 5 of PI_CR1."
Group_4_Item_7_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_7_CodingProc = SetInt(((GetByteValue(0,0x502b)&0x20)?1:0)+((GetByteValue(0,0x502a)&0x20)?2:0));
Group_4_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502b,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502b)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_4_Item_8_Name = PI_CR1.6
Group_4_Item_8_Comment = "Bit 6 of PI_CR1."
Group_4_Item_8_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_8_CodingProc = SetInt(((GetByteValue(0,0x502b)&0x40)?1:0)+((GetByteValue(0,0x502a)&0x40)?2:0));
Group_4_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502b,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502b)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_4_Item_9_Name = PI_CR1.7
Group_4_Item_9_Comment = "Bit 7 of PI_CR1."
Group_4_Item_9_Type = 1, 0: Floating input (input), 1: Input with pull-up (input), 0: Pseudo Open drain (output), 1: Push-pull (output)
Group_4_Item_9_CodingProc = SetInt(((GetByteValue(0,0x502b)&0x80)?1:0)+((GetByteValue(0,0x502a)&0x80)?2:0));
Group_4_Item_9_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502b,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502b)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

#----------------------- 5 : PI_CR2 --------------------------------------------

Group_5_Name = Port I control register 2 (PI_CR2)
Group_5_Comment = "These bits are set and cleared by software.\nThey select different functions in input mode and output mode.\n - In input mode, the CR2 bit enables the interrupt capability if available. If the I/O does not have interrupt capability, setting the CR2 bit has no effect.\n - In output mode, setting the CR2 bit reduces the slew  rate of the I/O. This helps improve the EMC of the I/O. This applies to ports  with O3 and O4 output types (see pin description table).\n\nIn input mode  (DDR=0):\n   0: External interrupt disabled\n   1: External interrupt enabled\n In output mode (DDR=1) :\n   0: Slope limited to 2 MHz\n   1: Slope limited to 10 MHz"
Group_5_ItemsNumber = 9

Group_5_Item_1_Name = PI_CR2
Group_5_Item_1_Comment = "Port I control register 2."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x502c).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x502c,parseInt(GetString()));

Group_5_Item_2_Name = PI_CR2.0
Group_5_Item_2_Comment = "Bit 0 of PI_CR2."
Group_5_Item_2_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_2_CodingProc = SetInt(((GetByteValue(0,0x502c)&0x01)?1:0)+((GetByteValue(0,0x502a)&0x01)?2:0));
Group_5_Item_2_DecodingProc = { var bit = 0x01; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502c)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_5_Item_3_Name = PI_CR2.1
Group_5_Item_3_Comment = "Bit 1 of PI_CR2."
Group_5_Item_3_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_3_CodingProc = SetInt(((GetByteValue(0,0x502c)&0x02)?1:0)+((GetByteValue(0,0x502a)&0x02)?2:0));
Group_5_Item_3_DecodingProc = { var bit = 0x02; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502c)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_5_Item_4_Name = PI_CR2.2
Group_5_Item_4_Comment = "Bit 2 of PI_CR2."
Group_5_Item_4_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_4_CodingProc = SetInt(((GetByteValue(0,0x502c)&0x04)?1:0)+((GetByteValue(0,0x502a)&0x04)?2:0));
Group_5_Item_4_DecodingProc = { var bit = 0x04; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502c)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_5_Item_5_Name = PI_CR2.3
Group_5_Item_5_Comment = "Bit 3 of PI_CR2."
Group_5_Item_5_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_5_CodingProc = SetInt(((GetByteValue(0,0x502c)&0x08)?1:0)+((GetByteValue(0,0x502a)&0x08)?2:0));
Group_5_Item_5_DecodingProc = { var bit = 0x08; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502c)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_5_Item_6_Name = PI_CR2.4
Group_5_Item_6_Comment = "Bit 4 of PI_CR2."
Group_5_Item_6_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_6_CodingProc = SetInt(((GetByteValue(0,0x502c)&0x10)?1:0)+((GetByteValue(0,0x502a)&0x10)?2:0));
Group_5_Item_6_DecodingProc = { var bit = 0x10; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502c)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_5_Item_7_Name = PI_CR2.5
Group_5_Item_7_Comment = "Bit 5 of PI_CR2."
Group_5_Item_7_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_7_CodingProc = SetInt(((GetByteValue(0,0x502c)&0x20)?1:0)+((GetByteValue(0,0x502a)&0x20)?2:0));
Group_5_Item_7_DecodingProc = { var bit = 0x20; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502c)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_5_Item_8_Name = PI_CR2.6
Group_5_Item_8_Comment = "Bit 6 of PI_CR2."
Group_5_Item_8_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_8_CodingProc = SetInt(((GetByteValue(0,0x502c)&0x40)?1:0)+((GetByteValue(0,0x502a)&0x40)?2:0));
Group_5_Item_8_DecodingProc = { var bit = 0x40; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502c)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

Group_5_Item_9_Name = PI_CR2.7
Group_5_Item_9_Comment = "Bit 7 of PI_CR2."
Group_5_Item_9_Type = 1, 0: External interrupt disabled (input), 1: External interrupt enabled (input), 0: Slope limited to 2 MHz (output), 1: Slope limited to 10 MHz (output)
Group_5_Item_9_CodingProc = SetInt(((GetByteValue(0,0x502c)&0x80)?1:0)+((GetByteValue(0,0x502a)&0x80)?2:0));
Group_5_Item_9_DecodingProc = { var bit = 0x80; var half = Math.floor(GetInt()/2); SetByteValue(0,0x502c,(2*bit*(GetInt()/2-half))|(GetByteValue(0,0x502c)&~(bit))); SetByteValue(0,0x502a,half*bit|(GetByteValue(0,0x502a)&~(bit))); }

[FLASH]

SymbsNumber = 8

Symb_1 = FLASH_CR1,   0, 0x00505a
Symb_2 = FLASH_CR2,   0, 0x00505b
Symb_3 = FLASH_NCR2,  0, 0x00505c
Symb_4 = FLASH_FPR,   0, 0x00505d
Symb_5 = FLASH_NFPR,  0, 0x00505e
Symb_6 = FLASH_IAPSR, 0, 0x00505f
Symb_7 = FLASH_PUKR,  0, 0x005062
Symb_8 = FLASH_DUKR,  0, 0x005064

ResetCode = {SetByteValue(0,0x00505a,0x00); SetByteValue(0,0x00505b,0x00); SetByteValue(0,0x00505c,0xff); SetByteValue(0,0x00505d,0x00); SetByteValue(0,0x00505e,0x00); SetByteValue(0,0x00505f,0x00); SetByteValue(0,0x005062,0x00); SetByteValue(0,0x005064,0x00);}

GroupsNumber = 8
#----------------------- 1 : FLASH_CR1 --------------------------------------------

Group_1_Name = Flash control register 1 (FLASH_CR1)
Group_1_Comment = "Flash control register 1. \n Reset value: 00h."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = FLASH_CR1
Group_1_Item_1_Comment = "Flash control register 1."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x00505a).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x00505a,parseInt(GetString()));

#----------------------- 2 : FLASH_CR2 --------------------------------------------

Group_2_Name = Flash control register 2 (FLASH_CR2)
Group_2_Comment = "Flash control register 2. \n Reset value: 00h. \n To modify this register, you must write the appropriate complementary values in the FLASH_CR2 and FLASH_NCR2 registers in 2 consecutive write instructions. If the registers are not complementary, they are forced at their reset values."
Group_2_ItemsNumber = 6

Group_2_Item_1_Name = FLASH_CR2
Group_2_Item_1_Comment = "Flash control register 2."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x00505b).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x00505b,parseInt(GetString()));

Group_2_Item_2_Name = OPT
Group_2_Item_2_Comment = "Select option bytes. \nThis bit is set and cleared by software. \n   0: Access to Option bytes disabled \n   1: Access to Option bytes enabled"
Group_2_Item_2_Type = 1, 0: Access to Option bytes disabled, 1: Access to Option bytes enabled
Group_2_Item_2_BitField = Byte, 0, 0x00505b, 7, 1

Group_2_Item_3_Name = WWO
Group_2_Item_3_Comment = "Word write once. \nThis bit is set and cleared by hardware when operation is completed.  \n   0: Word write once operation disabled \n   1: Word write once operation enabled"
Group_2_Item_3_Type = 1, 0: Word write once operation disabled, 1: Word write once operation enabled
Group_2_Item_3_BitField = Byte, 0, 0x00505b, 6, 1

Group_2_Item_4_Name = ERASE
Group_2_Item_4_Comment = "Erase block. \nThis bit is set by software and cleared by hardware when operation is completed. \n   0: No effect \n   1: Erase a block"
Group_2_Item_4_Type = 1, 0: No effect, 1: Erase a block
Group_2_Item_4_BitField = Byte, 0, 0x00505b, 5, 1

Group_2_Item_5_Name = FPRG
Group_2_Item_5_Comment = "Fast programming mode \nThis bit is set by software and cleared by hardware when operation is completed. \n   0: Standard programming mode (includes automatic erase before programming) \n   1: Fast programming mode (no erase before programming if previous value is not '00')"
Group_2_Item_5_Type = 1, 0: Standard programming mode, 1: Fast programming mode
Group_2_Item_5_BitField = Byte, 0, 0x00505b, 4, 1

Group_2_Item_6_Name = PRG
Group_2_Item_6_Comment = "Program block \nThis bit is set by software and cleared by hardware when operation is completed. \n   0: Byte programming mode \n   1: Block programming mode (must be executed from RAM). Programming starts when all 128 bytes are loaded."
Group_2_Item_6_Type = 1, 0: Byte programming mode, 1: Block programming mode
Group_2_Item_6_BitField = Byte, 0, 0x00505b, 0, 1

#----------------------- 3 : FLASH_NCR2 --------------------------------------------

Group_3_Name = Flash complementary control register 2 (FLASH_NCR2)
Group_3_Comment = "Flash complementary control register 2. \n Reset value: 0xFF."
Group_3_ItemsNumber = 6

Group_3_Item_1_Name = FLASH_NCR2
Group_3_Item_1_Comment = "Flash complementary control register 2."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x00505c).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x00505c,parseInt(GetString()));

Group_3_Item_2_Name = NOPT
Group_3_Item_2_Comment = "Select option bytes. \nThis bit is set and cleared by software. \n   0: Access to Option bytes enabled \n   1: Access to Option bytes disabled"
Group_3_Item_2_Type = 1, 0: Access to Option bytes enabled, 1: Access to Option bytes disabled
Group_3_Item_2_BitField = Byte, 0, 0x00505c, 7, 1

Group_3_Item_3_Name = NWWO
Group_3_Item_3_Comment = "Word write once. \nThis bit is set and cleared by hardware when operation is completed.  \n   0: Word write once operation enabled \n   1: Word write once operation disabled"
Group_3_Item_3_Type = 1, 0: Word write once operation enabled, 1: Word write once operation disabled
Group_3_Item_3_BitField = Byte, 0, 0x00505c, 6, 1

Group_3_Item_4_Name = NERASE
Group_3_Item_4_Comment = "Erase block. \nThis bit is set by software and cleared by hardware when operation is completed. \n   0: Erase a block \n   1: No effect"
Group_3_Item_4_Type = 1, 0: Erase a block, 1: No effect
Group_3_Item_4_BitField = Byte, 0, 0x00505c, 5, 1

Group_3_Item_5_Name = NFPRG
Group_3_Item_5_Comment = "Fast programming mode \nThis bit is set by software and cleared by hardware when operation is completed. \n   0: Fast programming mode (no erase before programming if previous value is not '00') \n   1: Standard programming mode (includes automatic erase before programming)"
Group_3_Item_5_Type = 1, 0: Fast programming mode, 1: Standard programming mode
Group_3_Item_5_BitField = Byte, 0, 0x00505c, 4, 1

Group_3_Item_6_Name = NPRG
Group_3_Item_6_Comment = "Program block \nThis bit is set by software and cleared by hardware when operation is completed. \n   0: Block programming mode (must be executed from RAM). Programming starts when all 32 bytes are loaded. \n   1: Byte programming mode"
Group_3_Item_6_Type = 1, 0: Block programming mode, 1: Byte programming mode
Group_3_Item_6_BitField = Byte, 0, 0x00505c, 0, 1

#----------------------- 4 : FLASH_FPR --------------------------------------------

Group_4_Name = Flash protection register (FLASH_FPR)
Group_4_Comment = "Flash protection register. \n Reset value: 0x00."
Group_4_ItemsNumber = 1

Group_4_Item_1_Name = FLASH_FPR
Group_4_Item_1_Comment = "Flash protection register."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x00505d).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x00505d,parseInt(GetString()));

#----------------------- 5 : FLASH_NFPR --------------------------------------------

Group_5_Name = Flash complementary protection register (FLASH_NFPR)
Group_5_Comment = "Flash complementary protection register. \n Reset value: 0xFF."
Group_5_ItemsNumber = 1

Group_5_Item_1_Name = FLASH_NFPR
Group_5_Item_1_Comment = "Flash complementary protection register."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x00505e).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x00505e,parseInt(GetString()));

#----------------------- 6 : FLASH_IAPSR --------------------------------------------

Group_6_Name = Flash in-application programming status register (FLASH_IAPSR)
Group_6_Comment = "Flash in-application programming status register. \n Reset value: 0x00."
Group_6_ItemsNumber = 1

Group_6_Item_1_Name = FLASH_IAPSR
Group_6_Item_1_Comment = "Flash in-application programming status register."
Group_6_Item_1_Type = 0
Group_6_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x00505f).toString(16));
Group_6_Item_1_DecodingProc = SetByteValue(0, 0x00505f,parseInt(GetString()));

#----------------------- 7 : FLASH_PUKR --------------------------------------------

Group_7_Name = Flash Program memory unprotection key register (FLASH_PUKR)
Group_7_Comment = "Flash Program memory unprotection key register. \nReset value: 0x00."
Group_7_ItemsNumber = 1

Group_7_Item_1_Name = PUK
Group_7_Item_1_Comment = "Program memory unprotection key. \nAfter a device reset, it is possible to overwrite the program memory write protection (for the program memory area not reserved for boot code) with the following algorithm: when the FLASH_PUKR register is written to for the first time after a reset, the data bus content is not latched into the register, but compared to the first hardware key value (56h). \nIf the key available on the data bus is incorrect, then the FLASH_PUKR register will remain locked until the next reset. Any new write commands sent to this address will be discarded. \nIf the first hardware key is correct when the FLASH_PUKR register is written to for the second time, the data bus content is still not latched into the register but compared to the second hardware key value (AEh). If the key available on the data bus is incorrect, then the write protection on program memory will remain locked until the next reset. Any new write commands sent to this address will be discarded. \nIf the second hardware key is correct, the program memory is write unprotected until you reset PRGUNLOCKED bit in the Flash in-application programming status register (FLASH_IAPSR) register. However the boot code specified in the Flash protection register (FLASH_FPR) register will continue to be write protected. \n1ST RASS Key: 0101 0110 (56h) \n2ND RASS Key: 1010 1110 (AEh)"
Group_7_Item_1_Type = 0
Group_7_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x005062).toString(16));
Group_7_Item_1_DecodingProc = SetByteValue(0, 0x005062,parseInt(GetString()));

#----------------------- 8 : FLASH_DUKR --------------------------------------------

Group_8_Name = Data EEPROM unprotection key register (FLASH_DUKR)
Group_8_Comment = "Data EEPROM unprotection key register. \nReset value: 0x00."
Group_8_ItemsNumber = 1

Group_8_Item_1_Name = DUNP
Group_8_Item_1_Comment = "Data EEPROM unprotection. \nAfter a device reset, it is possible to disable the data EEPROM (and option bytes) write protection with the following algorithm: \n - When the FLASH_DUKR register is written to for the first time after a reset, the data bus content is not latched into the register, but compared to the first hardware key value (AEh). \n  If the key available on the data bus is incorrect, then the FLASH_DUKR register can be written again with two correct keys in order to write unprotect data matrix. \n  If the first hardware key is correct when the FLASH_DUKR register is written to for the second time, the data bus content is still not latched into the register, but compared to the second hardware key value (56h). \n  If the key available on the data bus is incorrect, then the write protection on DATA matrix will not remain locked until the next reset, this means you can try to enter other two RASS keys to write unprotect DATA matrix even if you have previously entered a bad RASS key. \n  If the second hardware key is correct, the data EEPROM is write unprotected until you reset the DATAUNLOCKED bit in the Flash in-application programming status register (FLASH_IAPSR). \n1ST RASS Key: 1010 1110 (AEh) \n2ND RASS Key: 0101 0110 (56h)"
Group_8_Item_1_Type = 0
Group_8_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x005064).toString(16));
Group_8_Item_1_DecodingProc = SetByteValue(0, 0x005064,parseInt(GetString()));

[ITC]

SymbsNumber = 10

Symb_1  = ITC_SPR1, 0, 0x007F70
Symb_2  = ITC_SPR2, 0, 0x007F71
Symb_3  = ITC_SPR3, 0, 0x007F72
Symb_4  = ITC_SPR4, 0, 0x007F73
Symb_5  = ITC_SPR5, 0, 0x007F74
Symb_6  = ITC_SPR6, 0, 0x007F75
Symb_7  = ITC_SPR7, 0, 0x007F76
Symb_8  = ITC_SPR8, 0, 0x007F77
Symb_9  = EXTI_CR1, 0, 0x0050A0
Symb_10 = EXTI_CR2, 0, 0x0050A1

ResetCode = { SetByteValue(0,0x007F70,0xFF); SetByteValue(0,0x007F71,0xFF); SetByteValue(0,0x007F72,0xFF); SetByteValue(0,0x007F73,0xFF); SetByteValue(0,0x007F74,0xFF); SetByteValue(0,0x007F75,0xFF); SetByteValue(0,0x007F76,0xFF); SetByteValue(0,0x007F77,0xFF); SetByteValue(0,0x0050A0,0x00); SetByteValue(0,0x0050A1,0x00);}

GroupsNumber = 10
# GroupsNumber = 11
#----------------------- 1 : CPU_CCR --------------------------------------------

Group_1_Name = CPU Condition Code register (CPU_CCR)
Group_1_Comment = "CPU Condition Code register (partial view, read-only)."
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = I[1:0]
Group_1_Item_1_Comment = "Software Interrupt Priority bits. \nThese two bits indicate the software priority of the current interrupt request. \nWhen an interrupt request occurs, the software priority of the corresponding vector is loaded automatically from the software priority registers (ITC_SPRx). \nThe I[1:0] bits can be also set/cleared by software using the RIM, SIM, HALT, WFI, IRET or PUSH/POP instructions."
Group_1_Item_1_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_1_Item_1_CodingProc = { var i = ((GetByteValue(4, 0x20)&0x20)>>4)+((GetByteValue(4, 0x20)&0x08)>>3); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }

#----------------------- 2 : ITC_SPR8 --------------------------------------------

Group_2_Name = Software priority register 8 (ITC_SPR8)
Group_2_Comment = "Software priority register 8."
Group_2_ItemsNumber = 3

Group_2_Item_1_Name = ITC_SPR8
Group_2_Item_1_Comment = "Software priority register 8. \nThis register is written by software to define the software priority of some interrupt vectors. \nITC_SPR8 bits 7:4 are forced to 1 by hardware. \nReset value: 0xFF."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x7f77).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x7f77,parseInt(GetString()));

Group_2_Item_2_Name = VECT29SPR
Group_2_Item_2_Comment = "Vector 29 Software Priority bits."
Group_2_Item_2_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_2_Item_2_CodingProc = { var i = ((GetByteValue(0, 0x7f77)&0x0C)>>2); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_2_Item_2_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f77); SetByteValue(0, 0x7f77, oldval&(~0x0C)|i<<2); }

Group_2_Item_3_Name = VECT28SPR
Group_2_Item_3_Comment = "Vector 28 Software Priority bits."
Group_2_Item_3_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_2_Item_3_CodingProc = { var i = (GetByteValue(0, 0x7f77)&0x03); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_2_Item_3_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f77); SetByteValue(0, 0x7f77, oldval&(~0x03)|i); }

#----------------------- 3 : ITC_SPR7 --------------------------------------------

Group_3_Name = Software priority register 7 (ITC_SPR7)
Group_3_Comment = "Software priority register 7."
Group_3_ItemsNumber = 5

Group_3_Item_1_Name = ITC_SPR7
Group_3_Item_1_Comment = "Software priority register 7. \nThis register is written by software to define the software priority of some interrupt vectors. \nReset value: 0xFF."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x7f76).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x7f76,parseInt(GetString()));

Group_3_Item_2_Name = VECT27SPR
Group_3_Item_2_Comment = "Vector 27 Software Priority bits."
Group_3_Item_2_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_3_Item_2_CodingProc = { var i = ((GetByteValue(0, 0x7f76)&0xC0)>>6); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_3_Item_2_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f76); SetByteValue(0, 0x7f76, oldval&(~0xC0)|i<<6); }

Group_3_Item_3_Name = VECT26SPR
Group_3_Item_3_Comment = "Vector 26 Software Priority bits."
Group_3_Item_3_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_3_Item_3_CodingProc = { var i = ((GetByteValue(0, 0x7f76)&0x30)>>4); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_3_Item_3_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f76); SetByteValue(0, 0x7f76, oldval&(~0x30)|i<<4); }

Group_3_Item_4_Name = VECT25SPR
Group_3_Item_4_Comment = "Vector 25 Software Priority bits."
Group_3_Item_4_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_3_Item_4_CodingProc = { var i = ((GetByteValue(0, 0x7f76)&0x0C)>>2); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_3_Item_4_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f76); SetByteValue(0, 0x7f76, oldval&(~0x0C)|i<<2); }

Group_3_Item_5_Name = VECT24SPR
Group_3_Item_5_Comment = "Vector 24 Software Priority bits."
Group_3_Item_5_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_3_Item_5_CodingProc = { var i = (GetByteValue(0, 0x7f76)&0x03); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_3_Item_5_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f76); SetByteValue(0, 0x7f76, oldval&(~0x03)|i); }

#----------------------- 4 : ITC_SPR6 --------------------------------------------

Group_4_Name = Software priority register 6 (ITC_SPR6)
Group_4_Comment = "Software priority register 6."
Group_4_ItemsNumber = 5

Group_4_Item_1_Name = ITC_SPR6
Group_4_Item_1_Comment = "Software priority register 6. \nThis register is written by software to define the software priority of some interrupt vectors. \nReset value: 0xFF."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x7f75).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x7f75,parseInt(GetString()));

Group_4_Item_2_Name = VECT23SPR
Group_4_Item_2_Comment = "Vector 23 Software Priority bits."
Group_4_Item_2_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_4_Item_2_CodingProc = { var i = ((GetByteValue(0, 0x7f75)&0xC0)>>6); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_4_Item_2_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f75); SetByteValue(0, 0x7f75, oldval&(~0xC0)|i<<6); }

Group_4_Item_3_Name = VECT22SPR
Group_4_Item_3_Comment = "Vector 22 Software Priority bits."
Group_4_Item_3_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_4_Item_3_CodingProc = { var i = ((GetByteValue(0, 0x7f75)&0x30)>>4); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_4_Item_3_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f75); SetByteValue(0, 0x7f75, oldval&(~0x30)|i<<4); }

Group_4_Item_4_Name = VECT21SPR
Group_4_Item_4_Comment = "Vector 21 Software Priority bits."
Group_4_Item_4_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_4_Item_4_CodingProc = { var i = ((GetByteValue(0, 0x7f75)&0x0C)>>2); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_4_Item_4_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f75); SetByteValue(0, 0x7f75, oldval&(~0x0C)|i<<2); }

Group_4_Item_5_Name = VECT20SPR
Group_4_Item_5_Comment = "Vector 20 Software Priority bits."
Group_4_Item_5_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_4_Item_5_CodingProc = { var i = (GetByteValue(0, 0x7f75)&0x03); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_4_Item_5_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f75); SetByteValue(0, 0x7f75, oldval&(~0x03)|i); }

#----------------------- 5 : ITC_SPR5 --------------------------------------------

Group_5_Name = Software priority register 5 (ITC_SPR5)
Group_5_Comment = "Software priority register 5."
Group_5_ItemsNumber = 5

Group_5_Item_1_Name = ITC_SPR5
Group_5_Item_1_Comment = "Software priority register 5. \nThis register is written by software to define the software priority of some interrupt vectors. \nReset value: 0xFF."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x7f74).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x7f74,parseInt(GetString()));

Group_5_Item_2_Name = VECT19SPR
Group_5_Item_2_Comment = "Vector 19 Software Priority bits."
Group_5_Item_2_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_5_Item_2_CodingProc = { var i = ((GetByteValue(0, 0x7f74)&0xC0)>>6); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_5_Item_2_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f74); SetByteValue(0, 0x7f74, oldval&(~0xC0)|i<<6); }

Group_5_Item_3_Name = VECT18SPR
Group_5_Item_3_Comment = "Vector 18 Software Priority bits."
Group_5_Item_3_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_5_Item_3_CodingProc = { var i = ((GetByteValue(0, 0x7f74)&0x30)>>4); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_5_Item_3_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f74); SetByteValue(0, 0x7f74, oldval&(~0x30)|i<<4); }

Group_5_Item_4_Name = VECT17SPR
Group_5_Item_4_Comment = "Vector 17 Software Priority bits."
Group_5_Item_4_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_5_Item_4_CodingProc = { var i = ((GetByteValue(0, 0x7f74)&0x0C)>>2); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_5_Item_4_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f74); SetByteValue(0, 0x7f74, oldval&(~0x0C)|i<<2); }

Group_5_Item_5_Name = VECT16SPR
Group_5_Item_5_Comment = "Vector 16 Software Priority bits."
Group_5_Item_5_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_5_Item_5_CodingProc = { var i = (GetByteValue(0, 0x7f74)&0x03); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_5_Item_5_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f74); SetByteValue(0, 0x7f74, oldval&(~0x03)|i); }

#----------------------- 6 : ITC_SPR4 --------------------------------------------

Group_6_Name = Software priority register 4 (ITC_SPR4)
Group_6_Comment = "Software priority register 4."
Group_6_ItemsNumber = 5

Group_6_Item_1_Name = ITC_SPR4
Group_6_Item_1_Comment = "Software priority register 4. \nThis register is written by software to define the software priority of some interrupt vectors. \nReset value: 0xFF."
Group_6_Item_1_Type = 0
Group_6_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x7f73).toString(16));
Group_6_Item_1_DecodingProc = SetByteValue(0, 0x7f73,parseInt(GetString()));

Group_6_Item_2_Name = VECT15SPR
Group_6_Item_2_Comment = "Vector 15 Software Priority bits."
Group_6_Item_2_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_6_Item_2_CodingProc = { var i = ((GetByteValue(0, 0x7f73)&0xC0)>>6); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_6_Item_2_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f73); SetByteValue(0, 0x7f73, oldval&(~0xC0)|i<<6); }

Group_6_Item_3_Name = VECT14SPR
Group_6_Item_3_Comment = "Vector 14 Software Priority bits."
Group_6_Item_3_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_6_Item_3_CodingProc = { var i = ((GetByteValue(0, 0x7f73)&0x30)>>4); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_6_Item_3_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f73); SetByteValue(0, 0x7f73, oldval&(~0x30)|i<<4); }

Group_6_Item_4_Name = VECT13SPR
Group_6_Item_4_Comment = "Vector 13 Software Priority bits."
Group_6_Item_4_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_6_Item_4_CodingProc = { var i = ((GetByteValue(0, 0x7f73)&0x0C)>>2); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_6_Item_4_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f73); SetByteValue(0, 0x7f73, oldval&(~0x0C)|i<<2); }

Group_6_Item_5_Name = VECT12SPR
Group_6_Item_5_Comment = "Vector 12 Software Priority bits."
Group_6_Item_5_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_6_Item_5_CodingProc = { var i = (GetByteValue(0, 0x7f73)&0x03); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_6_Item_5_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f73); SetByteValue(0, 0x7f73, oldval&(~0x03)|i); }

#----------------------- 7 : ITC_SPR3 --------------------------------------------

Group_7_Name = Software priority register 3 (ITC_SPR3)
Group_7_Comment = "Software priority register 3."
Group_7_ItemsNumber = 5

Group_7_Item_1_Name = ITC_SPR3
Group_7_Item_1_Comment = "Software priority register 3. \nThis register is written by software to define the software priority of some interrupt vectors. \nReset value: 0xFF."
Group_7_Item_1_Type = 0
Group_7_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x7f72).toString(16));
Group_7_Item_1_DecodingProc = SetByteValue(0, 0x7f72,parseInt(GetString()));

Group_7_Item_2_Name = VECT11SPR
Group_7_Item_2_Comment = "Vector 11 Software Priority bits."
Group_7_Item_2_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_7_Item_2_CodingProc = { var i = ((GetByteValue(0, 0x7f72)&0xC0)>>6); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_7_Item_2_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f72); SetByteValue(0, 0x7f72, oldval&(~0xC0)|i<<6); }

Group_7_Item_3_Name = VECT10SPR
Group_7_Item_3_Comment = "Vector 10 Software Priority bits."
Group_7_Item_3_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_7_Item_3_CodingProc = { var i = ((GetByteValue(0, 0x7f72)&0x30)>>4); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_7_Item_3_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f72); SetByteValue(0, 0x7f72, oldval&(~0x30)|i<<4); }

Group_7_Item_4_Name = VECT9SPR
Group_7_Item_4_Comment = "Vector 9 Software Priority bits."
Group_7_Item_4_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_7_Item_4_CodingProc = { var i = ((GetByteValue(0, 0x7f72)&0x0C)>>2); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_7_Item_4_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f72); SetByteValue(0, 0x7f72, oldval&(~0x0C)|i<<2); }

Group_7_Item_5_Name = VECT8SPR
Group_7_Item_5_Comment = "Vector 8 Software Priority bits."
Group_7_Item_5_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_7_Item_5_CodingProc = { var i = (GetByteValue(0, 0x7f72)&0x03); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_7_Item_5_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f72); SetByteValue(0, 0x7f72, oldval&(~0x03)|i); }

#----------------------- 8 : ITC_SPR2 --------------------------------------------

Group_8_Name = Software priority register 2 (ITC_SPR2)
Group_8_Comment = "Software priority register 2."
Group_8_ItemsNumber = 5

Group_8_Item_1_Name = ITC_SPR2
Group_8_Item_1_Comment = "Software priority register 2. \nThis register is written by software to define the software priority of some interrupt vectors. \nReset value: 0xFF."
Group_8_Item_1_Type = 0
Group_8_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x7f71).toString(16));
Group_8_Item_1_DecodingProc = SetByteValue(0, 0x7f71,parseInt(GetString()));

Group_8_Item_2_Name = VECT7SPR
Group_8_Item_2_Comment = "Vector 7 Software Priority bits."
Group_8_Item_2_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_8_Item_2_CodingProc = { var i = ((GetByteValue(0, 0x7f71)&0xC0)>>6); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_8_Item_2_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f71); SetByteValue(0, 0x7f71, oldval&(~0xC0)|i<<6); }

Group_8_Item_3_Name = VECT6SPR
Group_8_Item_3_Comment = "Vector 6 Software Priority bits."
Group_8_Item_3_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_8_Item_3_CodingProc = { var i = ((GetByteValue(0, 0x7f71)&0x30)>>4); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_8_Item_3_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f71); SetByteValue(0, 0x7f71, oldval&(~0x30)|i<<4); }

Group_8_Item_4_Name = VECT5SPR
Group_8_Item_4_Comment = "Vector 5 Software Priority bits."
Group_8_Item_4_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_8_Item_4_CodingProc = { var i = ((GetByteValue(0, 0x7f71)&0x0C)>>2); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_8_Item_4_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f71); SetByteValue(0, 0x7f71, oldval&(~0x0C)|i<<2); }

Group_8_Item_5_Name = VECT4SPR
Group_8_Item_5_Comment = "Vector 4 Software Priority bits."
Group_8_Item_5_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_8_Item_5_CodingProc = { var i = (GetByteValue(0, 0x7f71)&0x03); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_8_Item_5_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f71); SetByteValue(0, 0x7f71, oldval&(~0x03)|i); }

#----------------------- 9 : ITC_SPR1 --------------------------------------------

Group_9_Name = Software priority register 1 (ITC_SPR1)
Group_9_Comment = "Software priority register 1."
Group_9_ItemsNumber = 5

Group_9_Item_1_Name = ITC_SPR1
Group_9_Item_1_Comment = "Software priority register 1. \nThis register is written by software to define the software priority of some interrupt vectors. \nReset value: 0xFF."
Group_9_Item_1_Type = 0
Group_9_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x7f70).toString(16));
Group_9_Item_1_DecodingProc = SetByteValue(0, 0x7f70,parseInt(GetString()));

Group_9_Item_2_Name = VECT3SPR
Group_9_Item_2_Comment = "Vector 3 Software Priority bits."
Group_9_Item_2_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_9_Item_2_CodingProc = { var i = ((GetByteValue(0, 0x7f70)&0xC0)>>6); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_9_Item_2_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f70); SetByteValue(0, 0x7f70, oldval&(~0xC0)|i<<6); }

Group_9_Item_3_Name = VECT2SPR
Group_9_Item_3_Comment = "Vector 2 Software Priority bits."
Group_9_Item_3_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_9_Item_3_CodingProc = { var i = ((GetByteValue(0, 0x7f70)&0x30)>>4); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_9_Item_3_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f70); SetByteValue(0, 0x7f70, oldval&(~0x30)|i<<4); }

Group_9_Item_4_Name = VECT1SPR
Group_9_Item_4_Comment = "Vector 1 Software Priority bits."
Group_9_Item_4_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_9_Item_4_CodingProc = { var i = ((GetByteValue(0, 0x7f70)&0x0C)>>2); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_9_Item_4_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f70); SetByteValue(0, 0x7f70, oldval&(~0x0C)|i<<2); }

Group_9_Item_5_Name = VECT0SPR
Group_9_Item_5_Comment = "Vector 0 Software Priority bits."
Group_9_Item_5_Type = 1, Level 0 (main),Level 1, Level 2, Level 3 (= software priority disabled)
Group_9_Item_5_CodingProc = { var i = (GetByteValue(0, 0x7f70)&0x03); var j = (i==2?0:(i==1?1:(i==0?2:3))); SetInt(j); }
Group_9_Item_5_DecodingProc = { var j = GetInt(); var i = (j==2?0:(j==1?1:(j==0?2:3))); var oldval = GetByteValue(0, 0x7f70); SetByteValue(0, 0x7f70, oldval&(~0x03)|i); }

#----------------------- 10 : EXTI_CR1 --------------------------------------------

Group_10_Name = External interrupt control register 1 (EXTI_CR1)
Group_10_Comment = "External interrupt control register 1. \nReset value: 0x00."
Group_10_ItemsNumber = 5

Group_10_Item_1_Name = EXTI_CR1
Group_10_Item_1_Comment = "External interrupt control register 1. \nReset value: 0x00."
Group_10_Item_1_Type = 0
Group_10_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x0050A0).toString(16));
Group_10_Item_1_DecodingProc = SetByteValue(0, 0x0050A0,parseInt(GetString()));

Group_10_Item_2_Name = PDIS
Group_10_Item_2_Comment = "Port D external interrupt sensitivity bits. \nThese bits can only be written when I1 and I0 in the CC register are both set to 1 (level 3). They define the sensitivity of the Port D external interrupts. \n   00: Falling edge and low level \n   01: Rising edge only \n   10: Falling edge only \n   11: Rising and falling edge"
Group_10_Item_2_Type = 1, 00: Falling edge and low level, 01: Rising edge only, 10: Falling edge only, 11: Rising and falling edge
Group_10_Item_2_BitField = Byte, 0, 0x0050A0, 6, 2

Group_10_Item_3_Name = PCIS
Group_10_Item_3_Comment = "Port C external interrupt sensitivity bits. \nThese bits can only be written when I1 and I0 in the CC register are both set to 1 (level 3). They define the sensitivity of the Port C external interrupts. \n   00: Falling edge and low level \n   01: Rising edge only \n   10: Falling edge only \n   11: Rising and falling edge"
Group_10_Item_3_Type = 1, 00: Falling edge and low level, 01: Rising edge only, 10: Falling edge only, 11: Rising and falling edge
Group_10_Item_3_BitField = Byte, 0, 0x0050A0, 4, 2

Group_10_Item_4_Name = PBIS
Group_10_Item_4_Comment = "Port B external interrupt sensitivity bits. \nThese bits can only be written when I1 and I0 in the CC register are both set to 1 (level 3). They define the sensitivity of the Port B external interrupts. \n   00: Falling edge and low level \n   01: Rising edge only \n   10: Falling edge only \n   11: Rising and falling edge"
Group_10_Item_4_Type = 1, 00: Falling edge and low level, 01: Rising edge only, 10: Falling edge only, 11: Rising and falling edge
Group_10_Item_4_BitField = Byte, 0, 0x0050A0, 2, 2

Group_10_Item_5_Name = PAIS
Group_10_Item_5_Comment = "Port A external interrupt sensitivity bits. \nThese bits can only be written when I1 and I0 in the CC register are both set to 1 (level 3). They define the sensitivity of the Port A external interrupts. \n   00: Falling edge and low level \n   01: Rising edge only \n   10: Falling edge only \n   11: Rising and falling edge"
Group_10_Item_5_Type = 1, 00: Falling edge and low level, 01: Rising edge only, 10: Falling edge only, 11: Rising and falling edge
Group_10_Item_5_BitField = Byte, 0, 0x0050A0, 0, 2

#----------------------- 11 : EXTI_CR2 --------------------------------------------

Group_11_Name = External interrupt control register 2 (EXTI_CR2)
Group_11_Comment = "External interrupt control register 2. \nReset value: 0x00."
Group_11_ItemsNumber = 5

Group_11_Item_1_Name = EXTI_CR2
Group_11_Item_1_Comment = "External interrupt control register 2. \nReset value: 0x00."
Group_11_Item_1_Type = 0
Group_11_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x0050A0).toString(16));
Group_11_Item_1_DecodingProc = SetByteValue(0, 0x0050A0,parseInt(GetString()));

Group_11_Item_2_Name = PDIS
Group_11_Item_2_Comment = "Port D external interrupt sensitivity bits. \nThese bits can only be written when I1 and I0 in the CC register are both set to 1 (level 3). They define the sensitivity of the Port D external interrupts. \n   00: Falling edge and low level \n   01: Rising edge only \n   10: Falling edge only \n   11: Rising and falling edge"
Group_11_Item_2_Type = 1, 00: Falling edge and low level, 01: Rising edge only, 10: Falling edge only, 11: Rising and falling edge
Group_11_Item_2_BitField = Byte, 0, 0x0050A0, 6, 2

Group_11_Item_3_Name = PCIS
Group_11_Item_3_Comment = "Port C external interrupt sensitivity bits. \nThese bits can only be written when I1 and I0 in the CC register are both set to 1 (level 3). They define the sensitivity of the Port C external interrupts. \n   00: Falling edge and low level \n   01: Rising edge only \n   10: Falling edge only \n   11: Rising and falling edge"
Group_11_Item_3_Type = 1, 00: Falling edge and low level, 01: Rising edge only, 10: Falling edge only, 11: Rising and falling edge
Group_11_Item_3_BitField = Byte, 0, 0x0050A0, 4, 2

Group_11_Item_4_Name = PBIS
Group_11_Item_4_Comment = "Port B external interrupt sensitivity bits. \nThese bits can only be written when I1 and I0 in the CC register are both set to 1 (level 3). They define the sensitivity of the Port B external interrupts. \n   00: Falling edge and low level \n   01: Rising edge only \n   10: Falling edge only \n   11: Rising and falling edge"
Group_11_Item_4_Type = 1, 00: Falling edge and low level, 01: Rising edge only, 10: Falling edge only, 11: Rising and falling edge
Group_11_Item_4_BitField = Byte, 0, 0x0050A0, 2, 2

Group_11_Item_5_Name = PAIS
Group_11_Item_5_Comment = "Port A external interrupt sensitivity bits. \nThese bits can only be written when I1 and I0 in the CC register are both set to 1 (level 3). They define the sensitivity of the Port A external interrupts. \n   00: Falling edge and low level \n   01: Rising edge only \n   10: Falling edge only \n   11: Rising and falling edge"
Group_11_Item_5_Type = 1, 00: Falling edge and low level, 01: Rising edge only, 10: Falling edge only, 11: Rising and falling edge
Group_11_Item_5_BitField = Byte, 0, 0x0050A0, 0, 2

[TIM1]

SymbsNumber = 32

Symb_1  = TIM1_CR1,   0, 0x005250
Symb_2  = TIM1_CR2,   0, 0x005251
Symb_3  = TIM1_SMCR,  0, 0x005252
Symb_4  = TIM1_ETR,   0, 0x005253
Symb_5  = TIM1_IER,   0, 0x005254
Symb_6  = TIM1_SR1,   0, 0x005255
Symb_7  = TIM1_SR2,   0, 0x005256
Symb_8  = TIM1_EGR,   0, 0x005257
Symb_9  = TIM1_CCMR1, 0, 0x005258
Symb_10 = TIM1_CCMR2, 0, 0x005259
Symb_11 = TIM1_CCMR3, 0, 0x00525a
Symb_12 = TIM1_CCMR4, 0, 0x00525b
Symb_13 = TIM1_CCER1, 0, 0x00525c
Symb_14 = TIM1_CCER2, 0, 0x00525d
Symb_15 = TIM1_CNTRH, 0, 0x00525e
Symb_16 = TIM1_CNTRL, 0, 0x00525f
Symb_17 = TIM1_PSCRH, 0, 0x005260
Symb_18 = TIM1_PSCRL, 0, 0x005261
Symb_19 = TIM1_ARRH,  0, 0x005262
Symb_20 = TIM1_ARRL,  0, 0x005263
Symb_21 = TIM1_RCR,   0, 0x005264
Symb_22 = TIM1_CCR1H, 0, 0x005265
Symb_23 = TIM1_CCR1L, 0, 0x005266
Symb_24 = TIM1_CCR2H, 0, 0x005267
Symb_25 = TIM1_CCR2L, 0, 0x005268
Symb_26 = TIM1_CCR3H, 0, 0x005269
Symb_27 = TIM1_CCR3L, 0, 0x00526a
Symb_28 = TIM1_CCR4H, 0, 0x00526b
Symb_29 = TIM1_CCR4L, 0, 0x00526c
Symb_30 = TIM1_BKR,   0, 0x00526d
Symb_31 = TIM1_DTR,   0, 0x00526e
Symb_32 = TIM1_OISR,  0, 0x00526f

ResetCode = { SetByteValue(0,0x5250,0x0); SetByteValue(0,0x5251,0x0); SetByteValue(0,0x5252,0x0); SetByteValue(0,0x5253,0x0); SetByteValue(0,0x5254,0x0); SetByteValue(0,0x5255,0x0); SetByteValue(0,0x5256,0x0); SetByteValue(0,0x5257,0x0); SetByteValue(0,0x5258,0x0); SetByteValue(0,0x5259,0x0); SetByteValue(0,0x525a,0x0); SetByteValue(0,0x525b,0x0); SetByteValue(0,0x525c,0x0); SetByteValue(0,0x525d,0x0); SetByteValue(0,0x525e,0x0); SetByteValue(0,0x525f,0x0); SetByteValue(0,0x5260,0x0); SetByteValue(0,0x5261,0x0); SetByteValue(0,0x5262,0xff); SetByteValue(0,0x5263,0xff); SetByteValue(0,0x5264,0x0); SetByteValue(0,0x5265,0x0); SetByteValue(0,0x5266,0x0); SetByteValue(0,0x5267,0x0); SetByteValue(0,0x5268,0x0); SetByteValue(0,0x5269,0x0); SetByteValue(0,0x526a,0x0); SetByteValue(0,0x526b,0x0); SetByteValue(0,0x526c,0x0); SetByteValue(0,0x526d,0x0); SetByteValue(0,0x526e,0x0); SetByteValue(0,0x526f,0x0);};

GroupsNumber = 32
#----------------------- 1 : TIM1_CR1 --------------------------------------------

Group_1_Name = Control Register 1 (TIM1_CR1)
Group_1_Comment = "Control Register 1. \nReset value: 0x00"
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = TIM1_CR1
Group_1_Item_1_Comment = "Control Register 1."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5250).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x5250,parseInt(GetString()));

#----------------------- 2 : TIM1_CR2 --------------------------------------------

Group_2_Name = Control Register 2 (TIM1_CR2)
Group_2_Comment = "Control Register 2. \nReset value: 0x00"
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = TIM1_CR2
Group_2_Item_1_Comment = "Control Register 2."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5251).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x5251,parseInt(GetString()));

#----------------------- 3 : TIM1_SMCR --------------------------------------------

Group_3_Name = Slave Mode Control Register (TIM1_SMCR)
Group_3_Comment = "Slave Mode Control Register. \nReset value: 0x00"
Group_3_ItemsNumber = 1

Group_3_Item_1_Name = TIM1_SMCR
Group_3_Item_1_Comment = "Slave Mode Control Register."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5252).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x5252,parseInt(GetString()));

#----------------------- 4 : TIM1_ETR --------------------------------------------

Group_4_Name = External Trigger Register (TIM1_ETR)
Group_4_Comment = "External Trigger Register. \nReset value: 0x00"
Group_4_ItemsNumber = 1

Group_4_Item_1_Name = TIM1_ETR
Group_4_Item_1_Comment = "External Trigger Register."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5253).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x5253,parseInt(GetString()));

#----------------------- 5 : TIM1_IER --------------------------------------------

Group_5_Name = Interrupt Enable Register (TIM1_IER)
Group_5_Comment = "Interrupt Enable Register. \nReset value: 0x00"
Group_5_ItemsNumber = 1

Group_5_Item_1_Name = TIM1_IER
Group_5_Item_1_Comment = "Interrupt Enable Register."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5254).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x5254,parseInt(GetString()));

#----------------------- 6 : TIM1_SR1 --------------------------------------------

Group_6_Name = Status Register 1 (TIM1_SR1)
Group_6_Comment = "Status Register 1. \nReset value: 0x00"
Group_6_ItemsNumber = 1

Group_6_Item_1_Name = TIM1_SR1
Group_6_Item_1_Comment = "Status Register 1."
Group_6_Item_1_Type = 0
Group_6_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5255).toString(16));
Group_6_Item_1_DecodingProc = SetByteValue(0, 0x5255,parseInt(GetString()));

#----------------------- 7 : TIM1_SR2 --------------------------------------------

Group_7_Name = Status Register 2 (TIM1_SR2)
Group_7_Comment = "Status Register 2. \nReset value: 0x00"
Group_7_ItemsNumber = 1

Group_7_Item_1_Name = TIM1_SR2
Group_7_Item_1_Comment = "Status Register 2."
Group_7_Item_1_Type = 0
Group_7_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5256).toString(16));
Group_7_Item_1_DecodingProc = SetByteValue(0, 0x5256,parseInt(GetString()));

#----------------------- 8 : TIM1_EGR --------------------------------------------

Group_8_Name = Event Generation Register (TIM1_EGR)
Group_8_Comment = "Event Generation Register. \nReset value: 0x00"
Group_8_ItemsNumber = 1

Group_8_Item_1_Name = TIM1_EGR
Group_8_Item_1_Comment = "Event Generation Register."
Group_8_Item_1_Type = 0
Group_8_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5257).toString(16));
Group_8_Item_1_DecodingProc = SetByteValue(0, 0x5257,parseInt(GetString()));

#----------------------- 9 : TIM1_CCMR1 --------------------------------------------

Group_9_Name = Capture/Compare Mode Register 1 (TIM1_CCMR1)
Group_9_Comment = "Capture/Compare Mode Register 1. \nReset value: 0x00"
Group_9_ItemsNumber = 1

Group_9_Item_1_Name = TIM1_CCMR1
Group_9_Item_1_Comment = "Capture/Compare Mode Register 1."
Group_9_Item_1_Type = 0
Group_9_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5258).toString(16));
Group_9_Item_1_DecodingProc = SetByteValue(0, 0x5258,parseInt(GetString()));

#----------------------- 10 : TIM1_CCMR2 --------------------------------------------

Group_10_Name = Capture/Compare Mode Register 2 (TIM1_CCMR2)
Group_10_Comment = "Capture/Compare Mode Register 2. \nReset value: 0x00"
Group_10_ItemsNumber = 1

Group_10_Item_1_Name = TIM1_CCMR2
Group_10_Item_1_Comment = "Capture/Compare Mode Register 2."
Group_10_Item_1_Type = 0
Group_10_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5259).toString(16));
Group_10_Item_1_DecodingProc = SetByteValue(0, 0x5259,parseInt(GetString()));

#----------------------- 11 : TIM1_CCMR3 --------------------------------------------

Group_11_Name = Capture/Compare Mode Register 3 (TIM1_CCMR3)
Group_11_Comment = "Capture/Compare Mode Register 3. \nReset value: 0x00"
Group_11_ItemsNumber = 1

Group_11_Item_1_Name = TIM1_CCMR3
Group_11_Item_1_Comment = "Capture/Compare Mode Register 3."
Group_11_Item_1_Type = 0
Group_11_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x525a).toString(16));
Group_11_Item_1_DecodingProc = SetByteValue(0, 0x525a,parseInt(GetString()));

#----------------------- 12 : TIM1_CCMR4 --------------------------------------------

Group_12_Name = Capture/Compare Mode Register 4 (TIM1_CCMR4)
Group_12_Comment = "Capture/Compare Mode Register 4. \nReset value: 0x00"
Group_12_ItemsNumber = 1

Group_12_Item_1_Name = TIM1_CCMR4
Group_12_Item_1_Comment = "Capture/Compare Mode Register 4."
Group_12_Item_1_Type = 0
Group_12_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x525b).toString(16));
Group_12_Item_1_DecodingProc = SetByteValue(0, 0x525b,parseInt(GetString()));

#----------------------- 13 : TIM1_CCER1 --------------------------------------------

Group_13_Name = Capture/Compare Enable Register 1 (TIM1_CCER1)
Group_13_Comment = "Capture/Compare Enable Register 1. \nReset value: 0x00"
Group_13_ItemsNumber = 1

Group_13_Item_1_Name = TIM1_CCER1
Group_13_Item_1_Comment = "Capture/Compare Enable Register 1."
Group_13_Item_1_Type = 0
Group_13_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x525c).toString(16));
Group_13_Item_1_DecodingProc = SetByteValue(0, 0x525c,parseInt(GetString()));

#----------------------- 14 : TIM1_CCER2 --------------------------------------------

Group_14_Name = Capture/Compare Enable Register 2 (TIM1_CCER2)
Group_14_Comment = "Capture/Compare Enable Register 2. \nReset value: 0x00"
Group_14_ItemsNumber = 1

Group_14_Item_1_Name = TIM1_CCER2
Group_14_Item_1_Comment = "Capture/Compare Enable Register 2."
Group_14_Item_1_Type = 0
Group_14_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x525d).toString(16));
Group_14_Item_1_DecodingProc = SetByteValue(0, 0x525d,parseInt(GetString()));

#----------------------- 15 : TIM1_CNTRH --------------------------------------------

Group_15_Name = Counter High (TIM1_CNTRH)
Group_15_Comment = "Counter High. \nReset value: 0x00"
Group_15_ItemsNumber = 1

Group_15_Item_1_Name = TIM1_CNTRH
Group_15_Item_1_Comment = "Counter High."
Group_15_Item_1_Type = 0
Group_15_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x525e).toString(16));
Group_15_Item_1_DecodingProc = SetByteValue(0, 0x525e,parseInt(GetString()));

#----------------------- 16 : TIM1_CNTRL --------------------------------------------

Group_16_Name = Counter Low (TIM1_CNTRL)
Group_16_Comment = "Counter Low. \nReset value: 0x00"
Group_16_ItemsNumber = 1

Group_16_Item_1_Name = TIM1_CNTRL
Group_16_Item_1_Comment = "Counter Low."
Group_16_Item_1_Type = 0
Group_16_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x525f).toString(16));
Group_16_Item_1_DecodingProc = SetByteValue(0, 0x525f,parseInt(GetString()));

#----------------------- 17 : TIM1_PSCRH --------------------------------------------

Group_17_Name = Prescaler High (TIM1_PSCRH)
Group_17_Comment = "Prescaler high. \nReset value: 0x00"
Group_17_ItemsNumber = 1

Group_17_Item_1_Name = TIM1_PSCRH
Group_17_Item_1_Comment = "Prescaler High."
Group_17_Item_1_Type = 0
Group_17_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5260).toString(16));
Group_17_Item_1_DecodingProc = SetByteValue(0, 0x5260,parseInt(GetString()));

#----------------------- 18 : TIM1_PSCRL --------------------------------------------

Group_18_Name = Prescaler Low (TIM1_PSCRL)
Group_18_Comment = "Prescaler Low. \nReset value: 0x00"
Group_18_ItemsNumber = 1

Group_18_Item_1_Name = TIM1_PSCRL
Group_18_Item_1_Comment = "Prescaler Low."
Group_18_Item_1_Type = 0
Group_18_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5261).toString(16));
Group_18_Item_1_DecodingProc = SetByteValue(0, 0x5261,parseInt(GetString()));

#----------------------- 19 : TIM1_ARRH --------------------------------------------

Group_19_Name = Auto-Reload Register High (TIM1_ARRH)
Group_19_Comment = "Auto-Reload Register High. \nReset value: 0xFF"
Group_19_ItemsNumber = 1

Group_19_Item_1_Name = TIM1_ARRH
Group_19_Item_1_Comment = "Auto-Reload Register High."
Group_19_Item_1_Type = 0
Group_19_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5262).toString(16));
Group_19_Item_1_DecodingProc = SetByteValue(0, 0x5262,parseInt(GetString()));

#----------------------- 20 : TIM1_ARRL --------------------------------------------

Group_20_Name = Auto-Reload Register Low (TIM1_ARRL)
Group_20_Comment = "Auto-Reload Register Low. \nReset value: 0xFF"
Group_20_ItemsNumber = 1

Group_20_Item_1_Name = TIM1_ARRL
Group_20_Item_1_Comment = "Auto-Reload Register Low."
Group_20_Item_1_Type = 0
Group_20_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5263).toString(16));
Group_20_Item_1_DecodingProc = SetByteValue(0, 0x5263,parseInt(GetString()));

#----------------------- 21 : TIM1_RCR --------------------------------------------

Group_21_Name = Repetition Counter Register (TIM1_RCR)
Group_21_Comment = "Repetition Counter Register. \nReset value: 0x00"
Group_21_ItemsNumber = 1

Group_21_Item_1_Name = TIM1_RCR
Group_21_Item_1_Comment = "Repetition Counter Register."
Group_21_Item_1_Type = 0
Group_21_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5264).toString(16));
Group_21_Item_1_DecodingProc = SetByteValue(0, 0x5264,parseInt(GetString()));

#----------------------- 22 : TIM1_CCR1H --------------------------------------------

Group_22_Name = Capture/Compare Register 1 High (TIM1_CCR1H)
Group_22_Comment = "Capture/Compare Register 1 High. \nReset value: 0x00"
Group_22_ItemsNumber = 1

Group_22_Item_1_Name = TIM1_CCR1H
Group_22_Item_1_Comment = "Capture/Compare Register 1 High."
Group_22_Item_1_Type = 0
Group_22_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5265).toString(16));
Group_22_Item_1_DecodingProc = SetByteValue(0, 0x5265,parseInt(GetString()));

#----------------------- 23 : TIM1_CCR1L --------------------------------------------

Group_23_Name = Capture/Compare Register 1 Low (TIM1_CCR1L)
Group_23_Comment = "Capture/Compare Register 1 Low. \nReset value: 0x00"
Group_23_ItemsNumber = 1

Group_23_Item_1_Name = TIM1_CCR1L
Group_23_Item_1_Comment = "Capture/Compare Register 1 Low."
Group_23_Item_1_Type = 0
Group_23_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5266).toString(16));
Group_23_Item_1_DecodingProc = SetByteValue(0, 0x5266,parseInt(GetString()));

#----------------------- 24 : TIM1_CCR2H --------------------------------------------

Group_24_Name = Capture/Compare Register 2 High (TIM1_CCR2H)
Group_24_Comment = "Capture/Compare Register 2 High. \nReset value: 0x00"
Group_24_ItemsNumber = 1

Group_24_Item_1_Name = TIM1_CCR2H
Group_24_Item_1_Comment = "Capture/Compare Register 2 High."
Group_24_Item_1_Type = 0
Group_24_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5267).toString(16));
Group_24_Item_1_DecodingProc = SetByteValue(0, 0x5267,parseInt(GetString()));

#----------------------- 25 : TIM1_CCR2L --------------------------------------------

Group_25_Name = Capture/Compare Register 2 Low (TIM1_CCR2L)
Group_25_Comment = "Capture/Compare Register 2 Low. \nReset value: 0x00"
Group_25_ItemsNumber = 1

Group_25_Item_1_Name = TIM1_CCR2L
Group_25_Item_1_Comment = "Capture/Compare Register 2 Low."
Group_25_Item_1_Type = 0
Group_25_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5268).toString(16));
Group_25_Item_1_DecodingProc = SetByteValue(0, 0x5268,parseInt(GetString()));

#----------------------- 26 : TIM1_CCR3H --------------------------------------------

Group_26_Name = Capture/Compare Register 3 High (TIM1_CCR3H)
Group_26_Comment = "Capture/Compare Register 3 High. \nReset value: 0x00"
Group_26_ItemsNumber = 1

Group_26_Item_1_Name = TIM1_CCR3H
Group_26_Item_1_Comment = "Capture/Compare Register 3 High."
Group_26_Item_1_Type = 0
Group_26_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5269).toString(16));
Group_26_Item_1_DecodingProc = SetByteValue(0, 0x5269,parseInt(GetString()));

#----------------------- 27 : TIM1_CCR3L --------------------------------------------

Group_27_Name = Capture/Compare Register 3 Low (TIM1_CCR3L)
Group_27_Comment = "Capture/Compare Register 3 Low. \nReset value: 0x00"
Group_27_ItemsNumber = 1

Group_27_Item_1_Name = TIM1_CCR3L
Group_27_Item_1_Comment = "Capture/Compare Register 3 Low."
Group_27_Item_1_Type = 0
Group_27_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x526a).toString(16));
Group_27_Item_1_DecodingProc = SetByteValue(0, 0x526a,parseInt(GetString()));

#----------------------- 28 : TIM1_CCR4H --------------------------------------------

Group_28_Name = Capture/Compare Register 4 High (TIM1_CCR4H)
Group_28_Comment = "Capture/Compare Register 4 High. \nReset value: 0x00"
Group_28_ItemsNumber = 1

Group_28_Item_1_Name = TIM1_CCR4H
Group_28_Item_1_Comment = "Capture/Compare Register 4 High."
Group_28_Item_1_Type = 0
Group_28_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x526b).toString(16));
Group_28_Item_1_DecodingProc = SetByteValue(0, 0x526b,parseInt(GetString()));

#----------------------- 29 : TIM1_CCR4L --------------------------------------------

Group_29_Name = Capture/Compare Register 4 Low (TIM1_CCR4L)
Group_29_Comment = "Capture/Compare Register 4 Low. \nReset value: 0x00"
Group_29_ItemsNumber = 1

Group_29_Item_1_Name = TIM1_CCR4L
Group_29_Item_1_Comment = "Capture/Compare Register 4 Low."
Group_29_Item_1_Type = 0
Group_29_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x526c).toString(16));
Group_29_Item_1_DecodingProc = SetByteValue(0, 0x526c,parseInt(GetString()));

#----------------------- 30 : TIM1_BKR --------------------------------------------

Group_30_Name = Break Register (TIM1_BKR)
Group_30_Comment = "Break Register. \nReset value: 0x00"
Group_30_ItemsNumber = 1

Group_30_Item_1_Name = TIM1_BKR
Group_30_Item_1_Comment = "Break Register."
Group_30_Item_1_Type = 0
Group_30_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x526d).toString(16));
Group_30_Item_1_DecodingProc = SetByteValue(0, 0x526d,parseInt(GetString()));

#----------------------- 31 : TIM1_DTR --------------------------------------------

Group_31_Name = Dead-Time Register (TIM1_DTR)
Group_31_Comment = "Dead-Time Register. \nReset value: 0x00"
Group_31_ItemsNumber = 1

Group_31_Item_1_Name = TIM1_DTR
Group_31_Item_1_Comment = "Dead-Time Register."
Group_31_Item_1_Type = 0
Group_31_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x526e).toString(16));
Group_31_Item_1_DecodingProc = SetByteValue(0, 0x526e,parseInt(GetString()));

#----------------------- 32 : TIM1_OISR --------------------------------------------

Group_32_Name = Output Idle State Register (TIM1_OISR)
Group_32_Comment = "Output Idle State Register. \nReset value: 0x00"
Group_32_ItemsNumber = 1

Group_32_Item_1_Name = TIM1_OISR
Group_32_Item_1_Comment = "Output Idle State Register."
Group_32_Item_1_Type = 0
Group_32_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x526f).toString(16));
Group_32_Item_1_DecodingProc = SetByteValue(0, 0x526f,parseInt(GetString()));

[TIM2]

SymbsNumber = 21

Symb_1  = TIM2_CR1,   0, 0x005300
Symb_2  = TIM2_IER,   0, 0x005301
Symb_3  = TIM2_SR1,   0, 0x005302
Symb_4  = TIM2_SR2,   0, 0x005303
Symb_5  = TIM2_EGR,   0, 0x005304
Symb_6  = TIM2_CCMR1, 0, 0x005305
Symb_7  = TIM2_CCMR2, 0, 0x005306
Symb_8  = TIM2_CCMR3, 0, 0x005307
Symb_9  = TIM2_CCER1, 0, 0x005308
Symb_10 = TIM2_CCER2, 0, 0x005309
Symb_11 = TIM2_CNTRH, 0, 0x00530a
Symb_12 = TIM2_CNTRL, 0, 0x00530b
Symb_13 = TIM2_PSCR,  0, 0x00530c
Symb_14 = TIM2_ARRH,  0, 0x00530d
Symb_15 = TIM2_ARRL,  0, 0x00530e
Symb_16 = TIM2_CCR1H, 0, 0x00530f
Symb_17 = TIM2_CCR1L, 0, 0x005310
Symb_18 = TIM2_CCR2H, 0, 0x005311
Symb_19 = TIM2_CCR2L, 0, 0x005312
Symb_20 = TIM2_CCR3H, 0, 0x005313
Symb_21 = TIM2_CCR3L, 0, 0x005314

ResetCode = { SetByteValue(0,0x5300,0x0); SetByteValue(0,0x5301,0x0); SetByteValue(0,0x5302,0x0); SetByteValue(0,0x5303,0x0); SetByteValue(0,0x5304,0x0); SetByteValue(0,0x5305,0x0); SetByteValue(0,0x5306,0x0); SetByteValue(0,0x5307,0x0); SetByteValue(0,0x5308,0x0); SetByteValue(0,0x5309,0x0); SetByteValue(0,0x530a,0x0); SetByteValue(0,0x530b,0x0); SetByteValue(0,0x530c,0x0); SetByteValue(0,0x530d,0xff); SetByteValue(0,0x530e,0xff); SetByteValue(0,0x530f,0x0); SetByteValue(0,0x5310,0x0); SetByteValue(0,0x5311,0x0); SetByteValue(0,0x5312,0x0); SetByteValue(0,0x5313,0x0); SetByteValue(0,0x5314,0x0);};

GroupsNumber = 21
#----------------------- 1 : TIM2_CR1 --------------------------------------------

Group_1_Name = Control Register 1 (TIM2_CR1)
Group_1_Comment = "Control Register 1. \nReset value: 0x00"
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = TIM2_CR1
Group_1_Item_1_Comment = "Control Register 1."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5300).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x5300,parseInt(GetString()));

#----------------------- 2 : TIM2_IER --------------------------------------------

Group_2_Name = Interrupt Enable Register (TIM2_IER)
Group_2_Comment = "Interrupt Enable Register. \nReset value: 0x00"
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = TIM2_IER
Group_2_Item_1_Comment = "Interrupt Enable Register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5301).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x5301,parseInt(GetString()));

#----------------------- 3 : TIM2_SR1 --------------------------------------------

Group_3_Name = Status Register 1 (TIM2_SR1)
Group_3_Comment = "Status Register 1. \nReset value: 0x00"
Group_3_ItemsNumber = 1

Group_3_Item_1_Name = TIM2_SR1
Group_3_Item_1_Comment = "Status Register 1."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5302).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x5302,parseInt(GetString()));

#----------------------- 4 : TIM2_SR2 --------------------------------------------

Group_4_Name = Status Register 2 (TIM2_SR2)
Group_4_Comment = "Status Register 2. \nReset value: 0x00"
Group_4_ItemsNumber = 1

Group_4_Item_1_Name = TIM2_SR2
Group_4_Item_1_Comment = "Status Register 2."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5303).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x5303,parseInt(GetString()));

#----------------------- 5 : TIM2_EGR --------------------------------------------

Group_5_Name = Event Generation Register (TIM2_EGR)
Group_5_Comment = "Event Generation Register. \nReset value: 0x00"
Group_5_ItemsNumber = 1

Group_5_Item_1_Name = TIM2_EGR
Group_5_Item_1_Comment = "Event Generation Register."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5304).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x5304,parseInt(GetString()));

#----------------------- 6 : TIM2_CCMR1 --------------------------------------------

Group_6_Name = Capture/Compare Mode Register 1 (TIM2_CCMR1)
Group_6_Comment = "Capture/Compare Mode Register 1. \nReset value: 0x00"
Group_6_ItemsNumber = 1

Group_6_Item_1_Name = TIM2_CCMR1
Group_6_Item_1_Comment = "Capture/Compare Mode Register 1."
Group_6_Item_1_Type = 0
Group_6_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5305).toString(16));
Group_6_Item_1_DecodingProc = SetByteValue(0, 0x5305,parseInt(GetString()));

#----------------------- 7 : TIM2_CCMR2 --------------------------------------------

Group_7_Name = Capture/Compare Mode Register 2 (TIM2_CCMR2)
Group_7_Comment = "Capture/Compare Mode Register 2. \nReset value: 0x00"
Group_7_ItemsNumber = 1

Group_7_Item_1_Name = TIM2_CCMR2
Group_7_Item_1_Comment = "Capture/Compare Mode Register 2."
Group_7_Item_1_Type = 0
Group_7_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5306).toString(16));
Group_7_Item_1_DecodingProc = SetByteValue(0, 0x5306,parseInt(GetString()));

#----------------------- 8 : TIM2_CCMR3 --------------------------------------------

Group_8_Name = Capture/Compare Mode Register 3 (TIM2_CCMR3)
Group_8_Comment = "Capture/Compare Mode Register 3. \nReset value: 0x00"
Group_8_ItemsNumber = 1

Group_8_Item_1_Name = TIM2_CCMR3
Group_8_Item_1_Comment = "Capture/Compare Mode Register 3."
Group_8_Item_1_Type = 0
Group_8_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5307).toString(16));
Group_8_Item_1_DecodingProc = SetByteValue(0, 0x5307,parseInt(GetString()));

#----------------------- 9 : TIM2_CCER1 --------------------------------------------

Group_9_Name = Capture/Compare Enable Register 1 (TIM2_CCER1)
Group_9_Comment = "Capture/Compare Enable Register 1. \nReset value: 0x00"
Group_9_ItemsNumber = 1

Group_9_Item_1_Name = TIM2_CCER1
Group_9_Item_1_Comment = "Capture/Compare Enable Register 1."
Group_9_Item_1_Type = 0
Group_9_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5308).toString(16));
Group_9_Item_1_DecodingProc = SetByteValue(0, 0x5308,parseInt(GetString()));

#----------------------- 10 : TIM2_CCER2 --------------------------------------------

Group_10_Name = Capture/Compare Enable Register 2 (TIM2_CCER2)
Group_10_Comment = "Capture/Compare Enable Register 2. \nReset value: 0x00"
Group_10_ItemsNumber = 1

Group_10_Item_1_Name = TIM2_CCER2
Group_10_Item_1_Comment = "Capture/Compare Enable Register 2."
Group_10_Item_1_Type = 0
Group_10_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5309).toString(16));
Group_10_Item_1_DecodingProc = SetByteValue(0, 0x5309,parseInt(GetString()));

#----------------------- 11 : TIM2_CNTRH --------------------------------------------

Group_11_Name = Counter High (TIM2_CNTRH)
Group_11_Comment = "Counter High. \nReset value: 0x00"
Group_11_ItemsNumber = 1

Group_11_Item_1_Name = TIM2_CNTRH
Group_11_Item_1_Comment = "Counter High."
Group_11_Item_1_Type = 0
Group_11_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x530a).toString(16));
Group_11_Item_1_DecodingProc = SetByteValue(0, 0x530a,parseInt(GetString()));

#----------------------- 12 : TIM2_CNTRL --------------------------------------------

Group_12_Name = Counter Low (TIM2_CNTRL)
Group_12_Comment = "Counter Low. \nReset value: 0x00"
Group_12_ItemsNumber = 1

Group_12_Item_1_Name = TIM2_CNTRL
Group_12_Item_1_Comment = "Counter Low."
Group_12_Item_1_Type = 0
Group_12_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x530b).toString(16));
Group_12_Item_1_DecodingProc = SetByteValue(0, 0x530b,parseInt(GetString()));

#----------------------- 13 : TIM2_PSCR --------------------------------------------

Group_13_Name = Prescaler (TIM2_PSCR)
Group_13_Comment = "Prescaler. \nReset value: 0x00"
Group_13_ItemsNumber = 1

Group_13_Item_1_Name = TIM2_PSCR
Group_13_Item_1_Comment = "Prescaler."
Group_13_Item_1_Type = 0
Group_13_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x530c).toString(16));
Group_13_Item_1_DecodingProc = SetByteValue(0, 0x530c,parseInt(GetString()));

#----------------------- 14 : TIM2_ARRH --------------------------------------------

Group_14_Name = Auto-Reload Register High (TIM2_ARRH)
Group_14_Comment = "Auto-Reload Register High. \nReset value: 0xFF"
Group_14_ItemsNumber = 1

Group_14_Item_1_Name = TIM2_ARRH
Group_14_Item_1_Comment = "Auto-Reload Register High."
Group_14_Item_1_Type = 0
Group_14_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x530d).toString(16));
Group_14_Item_1_DecodingProc = SetByteValue(0, 0x530d,parseInt(GetString()));

#----------------------- 15 : TIM2_ARRL --------------------------------------------

Group_15_Name = Auto-Reload Register Low (TIM2_ARRL)
Group_15_Comment = "Auto-Reload Register Low. \nReset value: 0xFF"
Group_15_ItemsNumber = 1

Group_15_Item_1_Name = TIM2_ARRL
Group_15_Item_1_Comment = "Auto-Reload Register Low."
Group_15_Item_1_Type = 0
Group_15_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x530e).toString(16));
Group_15_Item_1_DecodingProc = SetByteValue(0, 0x530e,parseInt(GetString()));

#----------------------- 16 : TIM2_CCR1H --------------------------------------------

Group_16_Name = Capture/Compare Register 1 High (TIM2_CCR1H)
Group_16_Comment = "Capture/Compare Register 1 High. \nReset value: 0x00"
Group_16_ItemsNumber = 1

Group_16_Item_1_Name = TIM2_CCR1H
Group_16_Item_1_Comment = "Capture/Compare Register 1 High."
Group_16_Item_1_Type = 0
Group_16_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x530f).toString(16));
Group_16_Item_1_DecodingProc = SetByteValue(0, 0x530f,parseInt(GetString()));

#----------------------- 17 : TIM2_CCR1L --------------------------------------------

Group_17_Name = Capture/Compare Register 1 Low (TIM2_CCR1L)
Group_17_Comment = "Capture/Compare Register 1 Low. \nReset value: 0x00"
Group_17_ItemsNumber = 1

Group_17_Item_1_Name = TIM2_CCR1L
Group_17_Item_1_Comment = "Capture/Compare Register 1 Low."
Group_17_Item_1_Type = 0
Group_17_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5310).toString(16));
Group_17_Item_1_DecodingProc = SetByteValue(0, 0x5310,parseInt(GetString()));

#----------------------- 18 : TIM2_CCR2H --------------------------------------------

Group_18_Name = Capture/Compare Register 2 High (TIM2_CCR2H)
Group_18_Comment = "Capture/Compare Register 2 High. \nReset value: 0x00"
Group_18_ItemsNumber = 1

Group_18_Item_1_Name = TIM2_CCR2H
Group_18_Item_1_Comment = "Capture/Compare Register 2 High."
Group_18_Item_1_Type = 0
Group_18_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5311).toString(16));
Group_18_Item_1_DecodingProc = SetByteValue(0, 0x5311,parseInt(GetString()));

#----------------------- 19 : TIM2_CCR2L --------------------------------------------

Group_19_Name = Capture/Compare Register 2 Low (TIM2_CCR2L)
Group_19_Comment = "Capture/Compare Register 2 Low. \nReset value: 0x00"
Group_19_ItemsNumber = 1

Group_19_Item_1_Name = TIM2_CCR2L
Group_19_Item_1_Comment = "Capture/Compare Register 2 Low."
Group_19_Item_1_Type = 0
Group_19_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5312).toString(16));
Group_19_Item_1_DecodingProc = SetByteValue(0, 0x5312,parseInt(GetString()));

#----------------------- 20 : TIM2_CCR3H --------------------------------------------

Group_20_Name = Capture/Compare Register 3 High (TIM2_CCR3H)
Group_20_Comment = "Capture/Compare Register 3 High. \nReset value: 0x00"
Group_20_ItemsNumber = 1

Group_20_Item_1_Name = TIM2_CCR3H
Group_20_Item_1_Comment = "Capture/Compare Register 3 High."
Group_20_Item_1_Type = 0
Group_20_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5313).toString(16));
Group_20_Item_1_DecodingProc = SetByteValue(0, 0x5313,parseInt(GetString()));

#----------------------- 21 : TIM2_CCR3L --------------------------------------------

Group_21_Name = Capture/Compare Register 3 Low (TIM2_CCR3L)
Group_21_Comment = "Capture/Compare Register 3 Low. \nReset value: 0x00"
Group_21_ItemsNumber = 1

Group_21_Item_1_Name = TIM2_CCR3L
Group_21_Item_1_Comment = "Capture/Compare Register 3 Low."
Group_21_Item_1_Type = 0
Group_21_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5314).toString(16));
Group_21_Item_1_DecodingProc = SetByteValue(0, 0x5314,parseInt(GetString()));

[TIM3]

SymbsNumber = 17

Symb_1  = TIM3_CR1,   0, 0x005320
Symb_2  = TIM3_IER,   0, 0x005321
Symb_3  = TIM3_SR1,   0, 0x005322
Symb_4  = TIM3_SR2,   0, 0x005323
Symb_5  = TIM3_EGR,   0, 0x005324
Symb_6  = TIM3_CCMR1, 0, 0x005325
Symb_7  = TIM3_CCMR2, 0, 0x005326
Symb_8  = TIM3_CCER1, 0, 0x005327
Symb_9  = TIM3_CNTRH, 0, 0x005328
Symb_10 = TIM3_CNTRL, 0, 0x005329
Symb_11 = TIM3_PSCR,  0, 0x00532a
Symb_12 = TIM3_ARRH,  0, 0x00532b
Symb_13 = TIM3_ARRL,  0, 0x00532c
Symb_14 = TIM3_CCR1H, 0, 0x00532d
Symb_15 = TIM3_CCR1L, 0, 0x00532e
Symb_16 = TIM3_CCR2H, 0, 0x00532f
Symb_17 = TIM3_CCR2L, 0, 0x005330

ResetCode = { SetByteValue(0,0x5320,0x0); SetByteValue(0,0x5321,0x0); SetByteValue(0,0x5322,0x0); SetByteValue(0,0x5323,0x0); SetByteValue(0,0x5324,0x0); SetByteValue(0,0x5325,0x0); SetByteValue(0,0x5326,0x0); SetByteValue(0,0x5327,0x0); SetByteValue(0,0x5328,0x0); SetByteValue(0,0x5329,0x0); SetByteValue(0,0x532a,0x0); SetByteValue(0,0x532b,0xff); SetByteValue(0,0x532c,0xff); SetByteValue(0,0x532d,0x0); SetByteValue(0,0x532e,0x0); SetByteValue(0,0x532f,0x0); SetByteValue(0,0x5330,0x0);};

GroupsNumber = 17
#----------------------- 1 : TIM3_CR1 --------------------------------------------

Group_1_Name = Control Register 1 (TIM3_CR1)
Group_1_Comment = "Control Register 1. \nReset value: 0x00"
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = TIM3_CR1
Group_1_Item_1_Comment = "Control Register 1."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5320).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x5320,parseInt(GetString()));

#----------------------- 2 : TIM3_IER --------------------------------------------

Group_2_Name = Interrupt Enable Register (TIM3_IER)
Group_2_Comment = "Interrupt Enable Register. \nReset value: 0x00"
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = TIM3_IER
Group_2_Item_1_Comment = "Interrupt Enable Register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5321).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x5321,parseInt(GetString()));

#----------------------- 3 : TIM3_SR1 --------------------------------------------

Group_3_Name = Status Register 1 (TIM3_SR1)
Group_3_Comment = "Status Register 1. \nReset value: 0x00"
Group_3_ItemsNumber = 1

Group_3_Item_1_Name = TIM3_SR1
Group_3_Item_1_Comment = "Status Register 1."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5322).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x5322,parseInt(GetString()));

#----------------------- 4 : TIM3_SR2 --------------------------------------------

Group_4_Name = Status Register 2 (TIM3_SR2)
Group_4_Comment = "Status Register 2. \nReset value: 0x00"
Group_4_ItemsNumber = 1

Group_4_Item_1_Name = TIM3_SR2
Group_4_Item_1_Comment = "Status Register 2."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5323).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x5323,parseInt(GetString()));

#----------------------- 5 : TIM3_EGR --------------------------------------------

Group_5_Name = Event Generation Register (TIM3_EGR)
Group_5_Comment = "Event Generation Register. \nReset value: 0x00"
Group_5_ItemsNumber = 1

Group_5_Item_1_Name = TIM3_EGR
Group_5_Item_1_Comment = "Event Generation Register."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5324).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x5324,parseInt(GetString()));

#----------------------- 6 : TIM3_CCMR1 --------------------------------------------

Group_6_Name = Capture/Compare Mode Register 1 (TIM3_CCMR1)
Group_6_Comment = "Capture/Compare Mode Register 1. \nReset value: 0x00"
Group_6_ItemsNumber = 1

Group_6_Item_1_Name = TIM3_CCMR1
Group_6_Item_1_Comment = "Capture/Compare Mode Register 1."
Group_6_Item_1_Type = 0
Group_6_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5325).toString(16));
Group_6_Item_1_DecodingProc = SetByteValue(0, 0x5325,parseInt(GetString()));

#----------------------- 7 : TIM3_CCMR2 --------------------------------------------

Group_7_Name = Capture/Compare Mode Register 2 (TIM3_CCMR2)
Group_7_Comment = "Capture/Compare Mode Register 2. \nReset value: 0x00"
Group_7_ItemsNumber = 1

Group_7_Item_1_Name = TIM3_CCMR2
Group_7_Item_1_Comment = "Capture/Compare Mode Register 2."
Group_7_Item_1_Type = 0
Group_7_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5326).toString(16));
Group_7_Item_1_DecodingProc = SetByteValue(0, 0x5326,parseInt(GetString()));

#----------------------- 8 : TIM3_CCER1 --------------------------------------------

Group_8_Name = Capture/Compare Enable Register 1 (TIM3_CCER1)
Group_8_Comment = "Capture/Compare Enable Register 1. \nReset value: 0x00"
Group_8_ItemsNumber = 1

Group_8_Item_1_Name = TIM3_CCER1
Group_8_Item_1_Comment = "Capture/Compare Enable Register 1."
Group_8_Item_1_Type = 0
Group_8_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5327).toString(16));
Group_8_Item_1_DecodingProc = SetByteValue(0, 0x5327,parseInt(GetString()));

#----------------------- 9 : TIM3_CNTRH --------------------------------------------

Group_9_Name = Counter High (TIM3_CNTRH)
Group_9_Comment = "Counter High. \nReset value: 0x00"
Group_9_ItemsNumber = 1

Group_9_Item_1_Name = TIM3_CNTRH
Group_9_Item_1_Comment = "Counter High."
Group_9_Item_1_Type = 0
Group_9_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5328).toString(16));
Group_9_Item_1_DecodingProc = SetByteValue(0, 0x5328,parseInt(GetString()));

#----------------------- 10 : TIM3_CNTRL --------------------------------------------

Group_10_Name = Counter Low (TIM3_CNTRL)
Group_10_Comment = "Counter Low. \nReset value: 0x00"
Group_10_ItemsNumber = 1

Group_10_Item_1_Name = TIM3_CNTRL
Group_10_Item_1_Comment = "Counter Low."
Group_10_Item_1_Type = 0
Group_10_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5329).toString(16));
Group_10_Item_1_DecodingProc = SetByteValue(0, 0x5329,parseInt(GetString()));

#----------------------- 11 : TIM3_PSCR --------------------------------------------

Group_11_Name = Prescaler (TIM3_PSCR)
Group_11_Comment = "Prescaler. \nReset value: 0x00"
Group_11_ItemsNumber = 1

Group_11_Item_1_Name = TIM3_PSCR
Group_11_Item_1_Comment = "Prescaler."
Group_11_Item_1_Type = 0
Group_11_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x532a).toString(16));
Group_11_Item_1_DecodingProc = SetByteValue(0, 0x532a,parseInt(GetString()));

#----------------------- 12 : TIM3_ARRH --------------------------------------------

Group_12_Name = Auto-Reload Register High (TIM3_ARRH)
Group_12_Comment = "Auto-Reload Register High. \nReset value: 0xFF"
Group_12_ItemsNumber = 1

Group_12_Item_1_Name = TIM3_ARRH
Group_12_Item_1_Comment = "Auto-Reload Register High."
Group_12_Item_1_Type = 0
Group_12_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x532b).toString(16));
Group_12_Item_1_DecodingProc = SetByteValue(0, 0x532b,parseInt(GetString()));

#----------------------- 13 : TIM3_ARRL --------------------------------------------

Group_13_Name = Auto-Reload Register Low (TIM3_ARRL)
Group_13_Comment = "Auto-Reload Register Low. \nReset value: 0xFF"
Group_13_ItemsNumber = 1

Group_13_Item_1_Name = TIM3_ARRL
Group_13_Item_1_Comment = "Auto-Reload Register Low."
Group_13_Item_1_Type = 0
Group_13_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x532c).toString(16));
Group_13_Item_1_DecodingProc = SetByteValue(0, 0x532c,parseInt(GetString()));

#----------------------- 14 : TIM3_CCR1H --------------------------------------------

Group_14_Name = Capture/Compare Register 1 High (TIM3_CCR1H)
Group_14_Comment = "Capture/Compare Register 1 High. \nReset value: 0x00"
Group_14_ItemsNumber = 1

Group_14_Item_1_Name = TIM3_CCR1H
Group_14_Item_1_Comment = "Capture/Compare Register 1 High."
Group_14_Item_1_Type = 0
Group_14_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x532d).toString(16));
Group_14_Item_1_DecodingProc = SetByteValue(0, 0x532d,parseInt(GetString()));

#----------------------- 15 : TIM3_CCR1L --------------------------------------------

Group_15_Name = Capture/Compare Register 1 Low (TIM3_CCR1L)
Group_15_Comment = "Capture/Compare Register 1 Low. \nReset value: 0x00"
Group_15_ItemsNumber = 1

Group_15_Item_1_Name = TIM3_CCR1L
Group_15_Item_1_Comment = "Capture/Compare Register 1 Low."
Group_15_Item_1_Type = 0
Group_15_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x532e).toString(16));
Group_15_Item_1_DecodingProc = SetByteValue(0, 0x532e,parseInt(GetString()));

#----------------------- 16 : TIM3_CCR2H --------------------------------------------

Group_16_Name = Capture/Compare Register 2 High (TIM3_CCR2H)
Group_16_Comment = "Capture/Compare Register 2 High. \nReset value: 0x00"
Group_16_ItemsNumber = 1

Group_16_Item_1_Name = TIM3_CCR2H
Group_16_Item_1_Comment = "Capture/Compare Register 2 High."
Group_16_Item_1_Type = 0
Group_16_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x532f).toString(16));
Group_16_Item_1_DecodingProc = SetByteValue(0, 0x532f,parseInt(GetString()));

#----------------------- 17 : TIM3_CCR2L --------------------------------------------

Group_17_Name = Capture/Compare Register 2 Low (TIM3_CCR2L)
Group_17_Comment = "Capture/Compare Register 2 Low. \nReset value: 0x00"
Group_17_ItemsNumber = 1

Group_17_Item_1_Name = TIM3_CCR2L
Group_17_Item_1_Comment = "Capture/Compare Register 2 Low."
Group_17_Item_1_Type = 0
Group_17_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5330).toString(16));
Group_17_Item_1_DecodingProc = SetByteValue(0, 0x5330,parseInt(GetString()));

[TIM4]

SymbsNumber = 7

Symb_1  = TIM4_CR1,   0, 0x005340
Symb_2  = TIM4_IER,   0, 0x005341
Symb_3  = TIM4_SR1,   0, 0x005342
Symb_4  = TIM4_EGR,   0, 0x005343
Symb_5  = TIM4_CNTR,  0, 0x005344
Symb_6  = TIM4_PSCR,  0, 0x005345
Symb_7  = TIM4_ARR,   0, 0x005346

ResetCode = { SetByteValue(0,0x5340,0x0); SetByteValue(0,0x5341,0x0); SetByteValue(0,0x5342,0x0); SetByteValue(0,0x5343,0x0); SetByteValue(0,0x5344,0x0); SetByteValue(0,0x5345,0x0); SetByteValue(0,0x5346,0xff);};

GroupsNumber = 7
#----------------------- 1 : TIM4_CR1 --------------------------------------------

Group_1_Name = Control Register 1 (TIM4_CR1)
Group_1_Comment = "Control Register 1. \nReset value: 0x00"
Group_1_ItemsNumber = 1

Group_1_Item_1_Name = TIM4_CR1
Group_1_Item_1_Comment = "Control Register 1."
Group_1_Item_1_Type = 0
Group_1_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5340).toString(16));
Group_1_Item_1_DecodingProc = SetByteValue(0, 0x5340,parseInt(GetString()));

#----------------------- 2 : TIM4_IER --------------------------------------------

Group_2_Name = Interrupt Enable Register (TIM4_IER)
Group_2_Comment = "Interrupt Enable Register. \nReset value: 0x00"
Group_2_ItemsNumber = 1

Group_2_Item_1_Name = TIM4_IER
Group_2_Item_1_Comment = "Interrupt Enable Register."
Group_2_Item_1_Type = 0
Group_2_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5341).toString(16));
Group_2_Item_1_DecodingProc = SetByteValue(0, 0x5341,parseInt(GetString()));

#----------------------- 3 : TIM4_SR1 --------------------------------------------

Group_3_Name = Status Register 1 (TIM4_SR1)
Group_3_Comment = "Status Register 1. \nReset value: 0x00"
Group_3_ItemsNumber = 1

Group_3_Item_1_Name = TIM4_SR1
Group_3_Item_1_Comment = "Status Register 1."
Group_3_Item_1_Type = 0
Group_3_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5342).toString(16));
Group_3_Item_1_DecodingProc = SetByteValue(0, 0x5342,parseInt(GetString()));

#----------------------- 4 : TIM4_EGR --------------------------------------------

Group_4_Name = Event Generation Register (TIM4_EGR)
Group_4_Comment = "Event Generation Register. \nReset value: 0x00"
Group_4_ItemsNumber = 1

Group_4_Item_1_Name = TIM4_EGR
Group_4_Item_1_Comment = "Event Generation Register."
Group_4_Item_1_Type = 0
Group_4_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5343).toString(16));
Group_4_Item_1_DecodingProc = SetByteValue(0, 0x5343,parseInt(GetString()));

#----------------------- 5 : TIM4_CNTR --------------------------------------------

Group_5_Name = Counter Low (TIM4_CNTR)
Group_5_Comment = "Counter Low. \nReset value: 0x00"
Group_5_ItemsNumber = 1

Group_5_Item_1_Name = TIM4_CNTR
Group_5_Item_1_Comment = "Counter Low."
Group_5_Item_1_Type = 0
Group_5_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5344).toString(16));
Group_5_Item_1_DecodingProc = SetByteValue(0, 0x5344,parseInt(GetString()));

#----------------------- 6 : TIM4_PSCR --------------------------------------------

Group_6_Name = Prescaler (TIM4_PSCR)
Group_6_Comment = "Prescaler. \nReset value: 0x00"
Group_6_ItemsNumber = 1

Group_6_Item_1_Name = TIM4_PSCR
Group_6_Item_1_Comment = "Prescaler."
Group_6_Item_1_Type = 0
Group_6_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5345).toString(16));
Group_6_Item_1_DecodingProc = SetByteValue(0, 0x5345,parseInt(GetString()));

#----------------------- 7 : TIM4_ARR --------------------------------------------

Group_7_Name = Auto-Reload Register (TIM4_ARR)
Group_7_Comment = "Auto-Reload Register. \nReset value: 0xFF"
Group_7_ItemsNumber = 1

Group_7_Item_1_Name = TIM4_ARR
Group_7_Item_1_Comment = "Auto-Reload Register."
Group_7_Item_1_Type = 0
Group_7_Item_1_CodingProc = SetString("0x"+GetByteValue(0, 0x5346).toString(16));
Group_7_Item_1_DecodingProc = SetByteValue(0, 0x5346,parseInt(GetString()));

