beautypg.com

6 input data register (in_data) – Texas Instruments TMS320C645X User Manual

Page 21

background image

Registers

21

General-Purpose Input/Output (GPIO)

SPRU724

5.6

Input Data Register (IN_DATA)

The GPIO input data register (IN_DATA) reflects the state of the GPIO pins.
The IN_DATA register is shown in Figure 8 and described in Table 8. When
read, IN_DATA returns the state of the GPIO pins regardless of the state of the
corresponding bits in the DIR and OUT_DATA registers.

Figure 8.

Input Data Register (IN_DATA)

31

16

Reserved

R-0

15

14

13

12

11

10

9

8

IN15

IN14

IN13

IN12

IN11

IN10

IN9

IN8

R-0

R-0

R-0

R-0

R-0

R-0

R-0

R-0

7

6

5

4

3

2

1

0

IN7

IN6

IN5

IN4

IN3

IN2

IN1

IN0

R-0

R-0

R-0

R-0

R-0

R-0

R-0

R-0

Legend: R = Read only; R/W = Read/Write; -n = value after reset

Table 8.

Input Data Register (IN_DATA) Field Descriptions

Bit

Field

Value

Description

31−16

Reserved

0

Reserved. The reserved bit location is always read as 0. A value written to
this field has no effect.

15−0

INn

Returns the status of the corresponding GPn pin.