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.

[参考译文] MSPM0C1103-Q1:使用无中断例程的 ADC 模块。

Guru**** 2442090 points
Other Parts Discussed in Thread: MSPM0C1103-Q1

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1548531/mspm0c1103-q1-using-adc-module-without-interrupt-routine

器件型号:MSPM0C1103-Q1


工具/软件:

TI 团队大家好

我的名字在米歇尔(意大利)。 我将使用 MSPM0C1103-Q1 进行公司的项目。

我想在不使用中断的情况下使用 ADC(当转换结束且结果已准备好输入寄存器时,就会触发中断)。

我想以这种方式使用 ADC 模块:

  1. 我在主要的日常工作中;
  2. ADC 转换启动;
  3. 等待(在主例程中)ADC 正在设置 EOC 标志(我在轮询模式下读取 EOC 标志);
  4. 当 EOC=1(转换结束)时、我在特定寄存器中读取结果;

点 1、2、3 和 4 位于“主“例程中、不使用中断 sobrouture。 是否可以使用 MSPM0C1103-Q1 做到这一点?

如果是、您能给我发送一个示例吗? 在所有 TI 示例(我可以看到)中、ADC 转换器始终与中断例程一起使用。

感谢您的支持。

此致
Michele

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

    您好、Michele:

    请尝试下面的操作。