Texas Instruments TMS320C645X User Manual

Page 22

Advertising
background image

Registers

General-Purpose Input/Output (GPIO)

22

SPRU724

5.7

Set Rising Edge Interrupt Register (SET_RIS_TRIG)

The GPIO rising trigger register (RIS_TRIG) configures the edge detection
logic to trigger GPIO interrupts and EDMA events on the rising edge of GPIO
signals. Setting a bit to 1 in RIS_TRIG causes the corresponding GPIO
interrupt and EDMA event (GPINTn) to be generated on the rising edge of
GPn. RIS_TRIG is not directly accessible by the CPU; it must be configured
using the GPIO set rising trigger and clear rising trigger registers.

The GPIO set rising trigger register (SET_RIS_TRIG) is shown in Figure 9 and
described in Table 9. Writing a 1 to a bit of SET_RIS_TRIG sets the
corresponding bit in RIS_TRIG. Writing a 0 has no effect. Reading
SET_RIS_TRIG returns the value in RIS_TRIG.

Figure 9.

Set Rising Edge Interrupt Register (SET_RIS_TRIG)

31

16

Reserved

R-0

15

14

13

12

11

10

9

8

SETRIS15

SETRIS14

SETRIS13

SETRIS12

SETRIS11

SETRIS10

SETRIS9

SETRIS8

R/W-0

R/W-0

R/W-0

R/W-0

R/W-0

R/W-0

R/W-0

R/W-0

7

6

5

4

3

2

1

0

SETRIS7

SETRIS6

SETRIS5

SETRIS4

SETRIS3

SETRIS2

SETRIS1

SETRIS0

R/W-0

R/W-0

R/W-0

R/W-0

R/W-0

R/W-0

R/W-0

R/W-0

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

Table 9.

Set Rising Edge Interrupt Register (SET_RIS_TRIG) 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

SETRISn

Writing a 1 enables the rising edge detection for the corresponding GPn pin.
Reading this register returns the state of the RIS_TRIG register.

0

No effect

1

Sets the corresponding bit in RIS_TRIG

Advertising