ADC Type 3-5
Configure ADC to sample analog pins and output digital data
Libraries:
C2000 Microcontroller Blockset /
C2802x
C2000 Microcontroller Blockset /
C2803x
C2000 Microcontroller Blockset /
C2805x
C2000 Microcontroller Blockset /
C2806x
C2000 Microcontroller Blockset /
C280x
C2000 Microcontroller Blockset /
C281x
C2000 Microcontroller Blockset /
C2833x
C2000 Microcontroller Blockset /
F280013x
C2000 Microcontroller Blockset /
F280015x
C2000 Microcontroller Blockset /
F28002x
C2000 Microcontroller Blockset /
F28003x
C2000 Microcontroller Blockset /
F28004x
C2000 Microcontroller Blockset /
F2807x
C2000 Microcontroller Blockset /
F2837xD
C2000 Microcontroller Blockset /
F2837xS
C2000 Microcontroller Blockset /
F2838x /
C28x
C2000 Microcontroller Blockset /
F28M35x /
C28x
C2000 Microcontroller Blockset /
F28M36x /
C28x
C2000 Microcontroller Blockset /
F28p65x
C2000 Microcontroller Blockset /
F28p55x
Description
Configures the Type 3 to Type 5 ADC to output a constant stream of data collected from the ADC pins on the DSP. For more information on ADC types, refer to C2000 Real-Time Control Peripheral Reference Guide.
An ADC block allows for reading one ADC channel. Use multiple ADC blocks to read multiple ADC channels.
Examples
Ports
Output
Parameters
Tips
TMS320x2802x, 2803x Piccolo Analog-to-Digital Converter (ADC) and Comparator, Literature Number: SPRUGE5, from the Texas Instruments® Web site.
Configuration of GPIO as Analog Pins
Configuration of GPIO as Analog Pins
For TI F280013x and TI F280015x processors the following tables provides the mapping of GPIO pins which can be used as the analog pins for ADC and CMPSS blocks.
GPIO | ADC | CMPSS | ||
Module | Channel | Module | Input | |
GPIO12 | A | 20 | ||
C | 20 | |||
GPIO13 | A | 19 | ||
C | 19 | |||
GPIO20 | A | 17 | ||
C | 17 | |||
GPIO21 | A | 18 | ||
C | 18 | |||
GPIO28 | A | 16 | ||
C | 16 | |||
GPIO224 | A | 2 | 1 | Positive |
C | 9 | |||
GPIO226 | C | 6 | 3 | Positive |
GPIO227 | A | 9 | 2 | Positive |
C | 8 | 4 | Positive | |
GPIO228 | A | 6 | 1 | Positive |
GPIO230 | A | 10 | 2 | Negative |
C | 10 | |||
GPIO242 | A | 3 | 3 | Negative |
C | 5 |
For TI F28P65x processors the following tables provides the mapping of GPIO pins which can be used as the analog pins for ADC and CMPSS blocks.
GPIO | ADC | CMPSS | |||
Module | Channel | Module | Input | ||
GPIO198 | B | 31 | 11 | Positive | |
C | 7 | ||||
GPIO199 | B | 24 | 6 | Positive | |
C | 0 | 6 | Negative | ||
GPIO200 | B | 25 | 6 | Positive | |
C | 1 | ||||
GPIO201 | C | 9 | 11 | Positive | |
GPIO202 | C | 8 | 10 | Positive | |
GPIO203 | B | 30 | 10 | Positive | |
C | 6 | ||||
GPIO204 | B | 25 | 2 | Positive | |
C | 9 | 5 | Negative | ||
GPIO205 | B | 28 | 5 | Positive | |
C | 4 | 10 | Negative | ||
GPIO206 | B | 27 | 3 | Positive | |
C | 3 | 6 | Negative | ||
GPIO207 | A | 30 | 7 | Positive | |
B | 6 | 7 | Negative | ||
GPIO208 | A | 31 | 3 | Negative | |
B | 7 | 7 | Positive | ||
GPIO209 | A | 6 | 7 | Positive | |
GPIO210 | 4 and 9 | Positive | |||
A | 7 | 7 | Negative | ||
GPIO211 | A | 8 | 8 | Positive | |
C | 24 | ||||
GPIO212 | A | 9 | 5 | Positive | |
C | 25 | 8 | Negative | ||
GPIO213 | A | 10 | 8 | Positive | |
C | 26 | 8 | Negative | ||
GPIO214 | A | 11 | 8 | Positive | |
C | 27 | ||||
GPIO215 | A | 28 | 5 | Positive | |
B | 4 | 5 | Negative | ||
GPIO216 | A | 25 | 5 | Positive | |
B | 5 | ||||
GPIO217 | B | 8 | 2 | Positive | |
C | 28 | 10 | Negative | ||
GPIO218 | B | 9 | 2 | Positive | |
C | 29 | 9 | Negative | ||
GPIO219 | B | 10 | 4 | Positive | |
C | 30 | 4 | Negative |
These pins are configured as analog pins if ADC or CMPSS blocks utilize them. Ensure that a GPIO pin is not used as both digital and analog pin. For example, if GPIO12 cannot be used in digital input or digital output block and as ADCA input channel 20.
Version History
Introduced in R2016b