For example, to configure a single conversion on channel ADCINA1 to occur when the ePWM3 timer
reaches its period match you must first setup ePWM3 to output an SOCA or SOCB signal on a period
match. See the TMS320x2802x Piccolo Enhanced Pulse Width Modulator Module User's Guide
(SPRUGE9) on how to do this. In this case, we’ll use SOCA. Then, setup one of the SOC’s using its
ADCSOCxCTL register. It makes no difference which SOC we choose, so we’ll use SOC0. The fastest
allowable sample window for the ADC is 7 cycles. Choosing the fastest time for the sample window,
channel ADCINA1 for the channel to convert, and ePWM3 for the SOC0 trigger, we’ll set the ACQPS field
to 6, the CHSEL field to 1, and the TRIGSEL field to 9, respectively. The resulting value written into the
register will be: