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.
您好!
我尝试在 TM4C123GH6PM 微控制器中使用 ADC0外设。 我已配置采样序列发生器1、用于从 AIN0、AIN1、AIN2和 AIN3通道读取模拟值。 我在尝试跨通道读取数据时遇到以下问题。
但数据不会按预期存储、有时甚至读取的数据也不相关。
请帮助我解决此问题、我还附上了参考 code.e2e.ti.com/.../6052.TI_5F00_query.txt
谢谢、此致、
桑托什。
您无需等待 ADC 正确完成转换。 我想您应该在状态等于零时保持在这个 while 循环中。 更改的是第80行。
while (ADCIntStatus (((uint32_t) ADC0_BASE、(uint32_t) ADC_SAMPLE_SEQUENCER1、false)== 0U) { }
尊敬的 Bob:
感谢您的建议。 它现在可以工作、问题在于 PLL 时钟配置。 系统时钟和 ADC 时钟配置不匹配会导致问题。
谢谢、此致、
桑托什。