Follow this steps to configure the PRU EGPI in 28-bit shift input mode:
- Clear ICSSG_GPECFG0_REG[1] PRU0_GPI_SHIFT_EN bit
(PRU0 or PRU1)
- Clear/Set ICSSG_GPECFG0_REG[0] PRU0_GPI_SB_P bit
(PRU0 or PRU1)
- Clear Start Bit by writing 1h to
ICSSG_GPECFG0_REG[13] PRU0_GPI_SB bit
- Program the dividers through:
ICSSG_GPECFG0_REG[24-20] PRU0_GPI_DIV1 bit
(PRU0 or PRU1)
ICSSG_GPECFG0_REG[19-15]
PRU0_GPI_DIV0 bit (PRU0 or PRU1) - Enable Shift Input Mode by writing to
ICSSG_GPECFG0_REG[1] PRU0_GPI_SHIFT_EN bit