SPRUIL1D May 2019 – December 2024 DRA829J , DRA829J-Q1 , DRA829V , DRA829V-Q1 , TDA4VM , TDA4VM-Q1
The General-Purpose Input/Output (GPIO) peripheral provides dedicated general-purpose pins that can be configured as either inputs or outputs. When configured as an output, the user can write to an internal register to control the state driven on the output pin. When configured as an input, user can obtain the state of the input by reading the state of an internal register.
In addition, the GPIO peripheral can produce host CPU interrupts and DMA synchronization events in different interrupt/event generation modes.
The device has ten instances of GPIO modules. The GPIO modules are integrated in three groups.
The corresponding groups I/O pins are multiplexed within each group modules.
The GPIO pins are grouped into banks (16 pins per bank and 9 banks per module), which means that each GPIO module provides up to 144 dedicated general-purpose pins with input and output capabilities; thus, the general-purpose interface supports up to 432 (3 group instances × (9 banks × 16 pins)) I/O pins. Since WKUP_GPIOu_[84:143] (u = 0, 1), GPIOn_[128:143] (n = 0, 2, 4, 6), and GPIOm_[36:143] (m = 1, 3, 5 ,7) are reserved in this device, general purpose interface supports up to 248 I/O pins.
Table 12-10 shows GPIO modules allocation across device domains.
| Instance | Domain | ||
| WKUP | MCU | MAIN | |
| WKUP_GPIO0 | ✓ | - | - |
| WKUP_GPIO1 | ✓ | - | - |
| GPIO0 | - | - | ✓ |
| GPIO1 | - | - | ✓ |
| GPIO2 | - | - | ✓ |
| GPIO3 | - | - | ✓ |
| GPIO4 | - | - | ✓ |
| GPIO5 | - | - | ✓ |
| GPIO6 | - | - | ✓ |
| GPIO7 | - | - | ✓ |
Figure 12-7 presents the GPIO modules overview.