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:对多个 ADC 引脚使用单个中断

Guru**** 2465890 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1492651/launchxl-f28379d-using-a-single-interrupt-for-multiple-adc-pins

器件型号:LAUNCHXL-F28379D

工具与软件:

大家好、我从 adc_ex_temp_sensor 示例开始、其中包括 ADC、该示例从 ADCINA0获取测量数据、并且我试图修改该示例、以便还从另一个引脚获取测量数据。 尝试过程中、我注意到"while"循环通常会循环、直到缓冲区填满 ADC 读数、当我尝试添加另一个 ADC 引脚(ADC_SOC_number1)时、该循环会停止工作(从不退出循环)。 为什么会这样呢? 我在初始化这一切时缺少什么吗? 谢谢。

  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    John、您好!

    如果需要进行另一次测量、只需使用与触发器相同的 PWM SoC 启动另一个 SoCx。 由于 ADC 中断脉冲模式在转换结束时激活、因此您应该使用该 EOCx 作为中断 SoC 源。

    此致、

    Masoud