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.

MSP430FR2033 ADC问题求助

Other Parts Discussed in Thread: MSP430FR2033

我要使用MSP430FR2033 ADC的A7 A8 A9通道轮询采集数据,A7 A8 A9分开独立测试都是能采集到正确的ADC数据,但我把3个放到一起轮询采集的时候,一直只能采集到第一个通道的ADC数据,DEBUG查ADC寄存器状态时查到通道没有切换成功,A7 A8 A9通道切换配置是参考demo code来配置的,具体配置代码如下:

Adc_Capture代码如下:

主函数轮询读取ADC值代码如下:

请问我的配置哪里出问题了?万分感谢!

  • 建议看一下用户手册描述 和 范例代码

     20.2.7.2 Sequence-of-Channels Mode A sequence of channels is sampled and converted once. The sequence begins with the channel selected by the ADCINCHx bits and decrements to channel A0. Each ADC result is written to ADCMEM0. The sequence stops after conversion of channel A0. 10-bit mode Figure 20-10 or 12-bit mode Figure 20-11 shows the sequence-of-channels mode.

    主要问题是 FR2033 的ADC序列采样和之前的430ADC有点不一样。

    The sequence begins with the channel selected by the ADCINCHx bits and decrements to channel A0. 

  • 你可能理解错了我的意思了,我现在是用单通道单次采集,但我需要在不同时间点采集不同通道的ADC值,现在的问题是我通道切换不成功,读到的一直是第一个通道的ADC值,所以我把相关代码都贴上来了,想请教一下我哪里配置出问题了?谢谢!

  • adc_test()是怎么样的?建议也提供一下。

  • adc_test()是我写的一个ADC采集的测试程序,程序代码如下:

    这个问题困扰我很久了,希望不吝赐教,感谢!

  • ADC 中断程序怎么写的?

    这个ADC只有一个结果转换寄存器,不是一个通道对应一个

  • 中断程序是参照demo code写的,具体代码如下: