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.

LAUNCHXL-F28379D: Using a single interrupt for multiple ADC pins

Part Number: LAUNCHXL-F28379D

Tool/software:

Hello, I started off with the adc_ex_temp_sensor example that includes and adc in it that takes in measurements from ADCINA0 and I was attempting to modify it to also take in measurements from another pin. As I went about my attempt I noticed that the "while" loop that normally cycles until the buffer is full of adc readings, stops working (never exits the loop) when I attempt to add the other adc pin (ADC_SOC_NUMBER1). Why is this? Am I missing something in how I am initializing all this? Thanks.

  

  • Hello John,

    If you need to take another measurement, just start another SoCx using the same PWM SoC as the trigger. Since the ADC interrupt pulse mode activates at the end of the conversion, you should use that EOCx as the interrupt SoC source.

    Best Regards,

    Masoud