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.
1)我的问题是关于 ADC。 要读取 ADC 值,我们可以使用无中断的 ADC。 因为在示例代码中它们用于读取 ADC 作为中断,我们可以使用无中断的 ADC。
尊敬的 Aryan:
您可以在没有中断的情况下使用 ADC。 中断帮助 MCU 了解 ADC 通道何时完成对该值的采样和转换。
一般来说、我建议使用中断、因为您可以将 CPU 置于睡眠模式或在等待 ADC 采样的同时执行其他任务。 否则、您必须在 ADC 例程周围具有特定的处理流程、以跟踪何时启动 ADC 以及何时完成采样和转换。
此致、
卢克