SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
The PRU_ICSSG implements an enhanced General Purpose Input/Output (GPIO) module with SCU that supports the following general-purpose input modes: direct input, 16-bit parallel capture, 28-bit serial shift in, and MII_RT. Register R31 serves as an interface with the general-purpose inputs. Table 6-411 describes the input modes in detail.
Each PRU core can only be configured for one GPI mode at a time. Each mode uses the same R31 signals and internal register bits for different purposes. A summary is found in Table 6-412.
The ICSSG_GPCFG0_REG register, bitfield [29-26] PR1_PRU0_GP_MUX_SEL (PRU0 or PRU1) in the PRU_ICSSG CFG register space needs to be set to 0h for GP mode. For a given PRU core, the following IO modes are mutually exclusive: GP mode, Sigma Delta mode, and 3 channel Peripheral I/F mode.
Mode | Function | Configuration |
---|---|---|
Direct input | GPI[19:0] feeds directly into the PRU R31 | Default state |
16-bit parallel capture | DATAIN[0:15] is captured by the posedge or negedge of CLOCKIN |
|
28-bit shift in | DATAIN is sampled and shifted into a 28-bit shift register.
|
|
MII_RT | mii_rt_r31_status [29:0] internally driven by the MII_RT module | Enabled by ICSSG_GPCFG0_REG[1-0] PRU0_GPI_MODE register (value: 3h), where n = 0 or 1 |
Pad Names at Device Level(1) | GPI Modes | ||
---|---|---|---|
Direct input | Parallel Capture | 28-Bit Shift in | |
PRG<k>_PRU<n>_GPI0 | GPI0 | DATAIN0 | DATAIN |
PRG<k>_PRU<n>_GPI1 | GPI1 | DATAIN1 | |
PRG<k>_PRU<n>_GPI2 | GPI2 | DATAIN2 | |
PRG<k>_PRU<n>_GPI3 | GPI3 | DATAIN3 | |
PRG<k>_PRU<n>_GPI4 | GPI4 | DATAIN4 | |
PRG<k>_PRU<n>_GPI5 | GPI5 | DATAIN5 | |
PRG<k>_PRU<n>_GPI6 | GPI6 | DATAIN6 | |
PRG<k>_PRU<n>_GPI7 | GPI7 | DATAIN7 | |
PRG<k>_PRU<n>_GPI8 | GPI8 | DATAIN8 | |
PRG<k>_PRU<n>_GPI9 | GPI9 | DATAIN9 | |
PRG<k>_PRU<n>_GPI10 | GPI10 | DATAIN10 | |
PRG<k>_PRU<n>_GPI11 | GPI11 | DATAIN11 | |
PRG<k>_PRU<n>_GPI12 | GPI12 | DATAIN12 | |
PRG<k>_PRU<n>_GPI13 | GPI13 | DATAIN13 | |
PRG<k>_PRU<n>_GPI14 | GPI14 | DATAIN14 | |
PRG<k>_PRU<n>_GPI15 | GPI15 | DATAIN15 | |
PRG<k>_PRU<n>_GPI16 | GPI16 | CLOCKIN | |
PRG<k>_PRU<n>_GPI17 | GPI17 | ||
PRG<k>_PRU<n>_GPI18 | GPI18 | ||
PRG<k>_PRU<n>_GPI19 | GPI19 |