4.2.1 Address Assignment of GPIO Registers
The GPIO registers are 32 bits in width. The registers can be read or written to with 8-bit, 16-bit, or 32-bit accesses.
GPIO (Base Address 0x4000_2500)
Register Name Offset
Address Address Area Access Default Description
GPIO_IOCTRL 0x0000 4 bytes W/R 0xFFFFFFFF Configuration register for
GPIO
GPIO_OUT 0x0004 4 bytes W/R 0x00000000 Output register for GPIO
GPIO_IN 0x0008 4 bytes R
Port
assignment Input register for GPIO
GPIO_PORT_MODE_L 0x000C 4 bytes W/R 0x00000000
Function assignment of
GPIO port 0 to 15
GPIO_PORT_MODE_H 0x0010 4 bytes W/R 0x00000000
Function assignment of
GPIO port 16 to 31
GPIO_POLSEL 0x0014 4 bytes W/R 0x00000000
Interrupt polarity of GPIO
interrupt
GPIO2_IOCTRL 0x0020 4 bytes W/R 0x00001FFF
Configuration register for
GPIO2
GPIO2_OUT 0x0024 4 bytes W/R 0x00000000 Output register for GPI O2
GPIO2_IN 0x0028 4 bytes R
Port
assignment Input register for GPIO2
Table 9: Overview of GPIO Registers
4.2.2 GPIO Register Description
GPIO_IOCTRL W/R Addr.: 0x4000_2500 Default: 0xFFFF_FFFF
Description Configuration register for General Purpose IO[31:0]
Bit No. Name Description
31 - 0 GPIO_IOCTRL[31:0] 0 : GPIOx is output
1: GPIOx is input
x = Bit 0 ... 31
GPIO_ OUT W/R Addr.: 0x4000_2504 Default: 0x0000_0000
Description Output register for General Purpose IO[31:0]
Bit No. Name Description
31..0 GPIO_OUT[31:0] 0: GPIO outputx = 0, 1: GPIO outputx = 1
GPIO_IN R Addr.: 0x4000_2508 Default: Port assignment
Description Input register for General Purpose IO[31:0]
Bit No. Name Description
31..0 GPIO_IN[31:0] 0: GPIO inputx = 0, 1: GPIO inputx = 1
GPIO_PORT_MODE_L W/R Addr.: 0x4000_250C Default: 0x0000_0000
Description Configuration register for GP-IO[15:0]
Function assignment:
00 = Function 0; 01 = Function 1; 10 = Function 2; 11 = Function 3
Bit No. Name Description
1:0 GPIO0_PORT_MODE Port GPIO[0];
3:2 GPIO1_PORT_MODE Port GPIO[1];
5:4 GPIO2_PORT_MODE Port GPIO[2];
7:6 GPIO3_PORT_MODE Port GPIO[3];
9:8 GPIO4_PORT_MODE Port GPIO[4];
11:10 GPIO5_PORT_MODE Port GPIO[5];
13:12 GPIO6_PORT_MODE Port GPIO[6];
15:14 GPIO7_PORT_MODE Port GPIO[7];
Copyright © Siemens AG 2007. All rights reserved. 36 ERTEC 200 Manual
Technical data subject to change Version 1.1.0