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