Analog-to-Digital Converter
C2000 Microcontroller Workshop - Analog-to-Digital Converter 6 - 5
The bottom examples extends this with channels A0, B0, and A5 being converted initially with a
software trigger. After A5 is converted, ADCINT2 is generated, which is fed back as a trigger to
start the process again.
Example – ADC Triggering
(simultaneous sampling)
Sample all channels continuously and provide Ping-Pong interrupts to CPU/system:
Channel
A0:B0
Sample
7 cycles
SOC0
no interrupt
ADCINT2
Software Trigger
Result0
Result1
Channel
A1:B1
Sample
7cycles
SOC2
no interrupt
Result2
Result3
Channel
A2:B2
Sample
7 cycles
SOC4
no interrupt
Result4
Result5
Channel
A3:B3
Sample
7 cycles
SOC6
Result6
Result7
Channel
A4:B4
Sample
7 cycles
SOC8
no interrupt
Result8
Result9
Channel
A5:B5
Sample
7 cycles
SOC10
no interrupt
Result10
Result11
Channel
A6:B6
Sample
7 cycles
SOC12
no interrupt
Result12
Result13
Channel
A7:B7
Sample
7 cycles
SOC14
Result14
Result15
ADCINT1
ADCINT2
The example on this slide shows channels A/B 0 through 7 being converted in simultaneous
sampling mode, triggered initially by software. After channel A/B three is converted, ADCINT1
is generated. After channel A/B seven is converted, ADCINT2 is generated and fed back to start
the process again. ADCINT1 and ADCINT2 are being used as ping-pong interrupts.