beautypg.com

4 board control and status registers, Board control and status registers, Address: 0x005 - gpio data register 0 (gpdat0) – Kontron COMe-bP5020 User Manual

Page 36

background image

www.kontron.com

36

User Guide

COMe-bP5020

3.4 Board Control and Status Registers

The following registers are special registers which the COMe-bP5020 uses to monitor and control the onboard hardware special
features.

Table 16: Address: 0x003 - GPIO Direction Register 0 (GPDIR0)

Table 17: Address: 0x004 - GPIO Direction Register 1 (GPDIR1)

Table 18: Address: 0x005 - GPIO Data Register 0 (GPDAT0)

N O T I C E

Take care when modifying the contents of these registers as the system may be relying on the
state of the bits under its control.

BIT

7

6

5

4

3

2

1

0

NAME

DIR7

DIR6

DIR5

DIR4

DIR3

DIR3

DIR1

DIR0

ACCESS

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

RESET

0

0

0

0

0

0

0

0

BITFIELD

DESCRIPTION

[7..0]

DIR[7..0]

GPIO[7..0] Direction

0 = GPIO[7..0] is configured for Input
1 = GPIO[7..0] is configured for Output

BIT

7

6

5

4

3

2

1

0

NAME

reserved

DIR11

DIR10

DIR9

DIR8

ACCESS

R

R/W

R/W

R/W

R/W

RESET

0000

0

0

0

0

BITFIELD

DESCRIPTION

[3..0]

DIR[11..8]

GPIO[11..8] Direction

0 = GPIO[11..8] is conf igured for Input
1 = GPIO[11..8] is conf igured for Output

BIT

7

6

5

4

3

2

1

0

NAME

GPDAT7

GPDAT6

GPDAT5

GPDAT4

GPDAT3

GPDAT2

GPDAT1

GPDAT0

ACCESS

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

RESET

0

0

0

0

0

0

0

0

BITFIELD

DESCRIPTION

[7..0]

GPDAT[7..0]

GPDAT[7..0] Data
If GPIO[7..0] is conf igured for INPUT:

0 = GPDAT[7..0] indicates that the signal GPIO[7..0] is at a ‘low’ level
1 = GPDAT[7..0] indicates that the signal GPIO[7..0] is at a ‘high’ level

If GPIO[7..0] is conf igured for OUTPUT:

0 = GPDAT[7..0] indicates that the signal GPIO[7..0] is being driven ‘low’
1 = GPDAT[7..0] indicates that the signal GPIO[7..0] is being driven ‘high’