Analog-to-Digital Converter (ADC)
862
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
Analog Subsystem
When configured as such, four conversions of ADCINA1 will be started in series on an ePWM3 SOCA
event with the resulting values stored in the ADCRESULT0 – ADCRESULT3 registers.
Another application may require 3 different signals to be sampled from the same trigger. This can be done
by simply changing the CHSEL field for SOC0-SOC2 while leaving the TRIGSEL field and TRIG1SEL
register unchanged.
ADCSOC0CTL = 2846h;
// (ACQPS=6, CHSEL=1, TRIGSEL=5)
ADCSOC1CTL = 2886h;
// (ACQPS=6, CHSEL=2, TRIGSEL=5)
ADCSOC2CTL = 28C6h;
// (ACQPS=6, CHSEL=3, TRIGSEL=5)
TRIG1SEL = 000Bh
// (TRIG1SEL=11)
When configured this way, three conversions will be started in series on an ePWM3 SOCA event. The
result of the conversion on channel ADCINA1 will show up in ADCRESULT0. The result of the conversion
on channel ADCINA2 will show up in ADCRESULT1. The result of the conversion on channel ADCINA3
will show up in ADCRESULT2. The channel converted and the trigger have no bearing on where the result
of the conversion shows up. The RESULT register is associated with the SOC.
NOTE:
These examples are incomplete. Clocks must be enabled and the ADC must be powered to
work correctly. See
for more details on how to configure Analog Subsystem
clocks. For the power up sequence of the ADC, see
.
shows the configuration options for the TRIGxSEL registers.
Table 10-2. TRIGxSEL Trigger Options
TRIGxSEL Bits
Trigger Source
Peripheral
00000
No Trigger Enabled (Default)
00001
TINT0
CPU Timer 0
00010
TINT1
CPU Timer 1
00011
TINT2
CPU Timer 2
00100
ADCEXTTRIG
C28 GPIO MUX
00101
EPWM1SOCA
EPWM1
00110
EPWM1SOCB
00111
EPWM1SYNC
01000
EPWM2SOCA
EPWM2
01001
EPWM2SOCB
01010
EPWM2SYNC
01011
EPWM3SOCA
EPWM3
01100
EPWM3SOCB
01101
EPWM3SYNC
01110
EPWM4SOCA
EPWM4
01111
EPWM4SOCB
10000
EPWM4SYNC
10001
EPWM5SOCA
EPWM5
10010
EPWM5SOCB
10011
EPWM5SYNC
10100
EPWM6SOCA
EPWM6
10101
EPWM6SOCB
10110
EPWM6SYNC
10111
EPWM7SOCA
EPWM7
11000
EPWM7SOCB
11001
EPWM7SYNC