SPRUJD3A July 2025 – October 2025 F28E120SB , F28E120SC
Many applications perform a limit check against the ADC conversion results. The PPB can automatically perform a check against a high limit, a low limit, high and low limits simultaneously, or whenever ADCPPBxRESULT changes sign. Based on these comparisons, the PPB can generate a trip to the PWM and an interrupt automatically, lowering the sample to MCPWM latency and reducing software overhead. This functionality also enables safety-conscious applications to trip the MCPWM based on an out-of-range ADC conversion without any CPU intervention.
To enable this functionality, first point the ADCPPBxCONFIG.CONFIG to the desired SOC, then write a value to one or both of the registers ADCPPBxTRIPHI.LIMITHI and ADCPPBxTRIPLO.LIMITLO (zero-crossing detection does not require further configuration). Whenever these limits are exceeded, the PPBxTRIPHI bit or PPBxTRIPLO bit is set in the ADCEVTSTAT register. When the PPB result is either in between or equal to the PPBxTRIPHI and PPBxTRIPLO thresholds, the PPBxINLIMIT bit is set. Note that the PPBxZERO bit in the ADCEVTSTAT register is gated by end-of-conversion (EOC), not by the sign change in the ADCPPBxRESULT register. The ADCEVTCLR register has corresponding bits to clear these event flags. The ADCEVTSEL register has corresponding bits that allow the events to propagate through to the PWM. The ADCEVTINTSEL register has corresponding bits that allow the events to propagate through to the .
One interrupt is shared between all the PPBs for a given ADC module as shown in Figure 12-11.