This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc3220sf ADCsinglechannel organizaiton

Other Parts Discussed in Thread: SYSCONFIG

* ======== ADC ========
*/

/* P59, Analog Input 3 */
extern const uint_least8_t CONFIG_ADC_0_CONST;
#define CONFIG_ADC_0 0
/* P60, Analog Input 4 */
extern const uint_least8_t CONFIG_ADC_1_CONST;
#define CONFIG_ADC_1 1
#define CONFIG_TI_DRIVERS_ADC_COUNT 2

This code may be found in the ti_drivers_config.h file. I am wondering why it is saying pin 59 is adc channel 0 when adc channels correspond to pins 57 through 60. TIA

  • Hi Derek,

    The ti_drivers_config.h file is only defining names to be used in your application. The default is CONFIG_ADC_x, and you can set this to any name in SysConfig.

    The values correspond to the instance in the ADC config struct. This config struct is generated in ti_drivers_config.c, and this is where it configures the correct pins and ADC channels.

    Best regards,

    Sarah