SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
The trip logic is common for each set of PRGn_PWMm_[2:0]_POS and PRGn_PWMm_[2:0]_NEG pins (where n = 0 to 2 and m = 0 to 3). This logic is responsible for monitoring the “error” inputs and producing a PRGn_PWM_m_TRIP_OUT event, which is used to trip the I/O into a predefined trip state.
The I/O will remain in this trip state until the CMP0 event (if enabled) or trip software reset occurs. After clearing of these events (through ICSSG_PWM0[17] PWM0_TRIP_CMP0_EN bit or [18] PWMm_TRIP_RESET, where m = 0 to 3), then the I/Os will be in the initial state until the first IEP0/1_CMP_INTR_PEND_P[15:0] event occurs that corresponds to a particular PRGn_PWMm_[2:0]_POS or PRGn_PWMm_[2:0]_NEG set of pins. The first compare event occurrence corresponding to that PWMm set will cause all I/Os of that PWMm set to go into an active state. Subsequent compare events will cause the I/Os to toggle.
The SoC pad is in default tristate and the internal weak pull-down resistor is enabled. Before PRU_ICSSG PWM to be exported, the software needs to execute initialization sequence along with the IEP0 and IEP1.
The following registers are used to configure the trip signals: