beautypg.com

Address assignment of gpio registers, Gpio register description, Table 9: overview of gpio registers – Siemens ERTEC200 User Manual

Page 37: Gpio_port_mode_h, Gpio_polsel, Gpio2_ ioctrl, Gpio2_ out

background image

17:16

GPIO8_PORT_MODE

Port GPIO[8];

19:18 GPIO9_PORT_MODE

Port

GPIO[9];

21:20

GPIO10_PORT_MODE

Port GPIO[10];

23:22

GPIO11_PORT_MODE

Port GPIO[11];

25:24 GPIO12_PORT_MODE

Port

GPIO[12];

27:26 GPIO13_PORT_MODE

Port

GPIO[13];

29:28 GPIO14_PORT_MODE

Port

GPIO[14];

31:30 GPIO15_PORT_MODE

Port

GPIO[15];

GPIO_PORT_MODE_H

W/R Addr.: 0x4000_2510 Default: 0x0000_0000

Description Configuration

register for GP-IO[31:16]

Function assignment:
00 = Function 0; 01 = Function 1; 10 = Function 2; 11 = Function 3

Bit No.

Name

Description

1:0

GPIO16_PORT_MODE

Port GPIO[16];

3:2 GPIO17_PORT_MODE

Port

GPIO[17];

5:4

GPIO18_PORT_MODE

Port GPIO[18];

7:6 GPIO19_PORT_MODE

Port

GPIO[19];

9:8 GPIO20_PORT_MODE

Port

GPIO[20];

11:10 GPIO21_PORT_MODE

Port

GPIO[21];

13:12 GPIO22_PORT_MODE

Port

GPIO[22];

15:14 GPIO23_PORT_MODE

Port

GPIO[23];

17:16 GPIO24_PORT_MODE

Port

GPIO[24];

19:18 GPIO25_PORT_MODE

Port

GPIO[25];

21:20 GPIO26_PORT_MODE

Port

GPIO[26];

23:22 GPIO27_PORT_MODE

Port

GPIO[27];

25:24 GPIO28_PORT_MODE

Port

GPIO[28];

27:26 GPIO29_PORT_MODE

Port

GPIO[29];

29:28 GPIO30_PORT_MODE

Port

GPIO[30];

31:30 GPIO31_PORT_MODE

Port

GPIO[31];

GPIO_POLSEL

W/R Addr.: 0x4000_2514 Default: 0x0000_0000

Description

Interrupt polarity for GPIO interrupts [31/30/1/0]

Bit No.

Name

Description

31..4 Reserved

Reserved

3

POLSEL GPIO31

0: GPIO31 is not inverted to ICU [IRQ5]
1: GPIO31 is inverted to ICU [IRQ5]

2

POLSEL GPIO30

0: GPIO30 is not inverted to ICU [IRQ4]
1: GPIO30 is inverted to ICU [IRQ4]

1

POLSEL GPIO1

0: GPIO1 is not inverted to ICU [IRQ3]
1: GPIO1 is inverted to ICU [IRQ3]

0

POLSEL GPIO0

0: GPIO0 is not inverted to ICU [IRQ2]
1: GPIO0 is inverted to ICU [IRQ2]

GPIO2_ IOCTRL

W/R

Addr.: 0x4000_2520 Default: 0x0000_1FFF

Description Configuration

register

for General Purpose IO [44:32]

Bit No.

Name

Description

31..13 Reserved

Reserved

12..0 GPIO2_IOCTRL[44:32]

0:

GPIOx = Output, 1: GPIOx = Input

GPIO2_ OUT

W/R

Addr.: 0x4000_2524 Default: 0x0000_0000

Description

Output register for General Purpose IO [44:32]

Bit No.

Name

Description

31..13 Reserved

Reserved

12..0 GPIO2_OUT[44:32]

0:

GPIO

outputx = 0, 1: GPIO outputx = 1


Copyright © Siemens AG 2007. All rights reserved.

37

ERTEC 200 Manual

Technical data subject to change Version 1.1.0