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.

[参考译文] 编译器:HalAdcRead ()我对 P1.0使用 ADC 读取、但无法读取't 读取数据。

Guru**** 2540720 points
Other Parts Discussed in Thread: CC2531, CC2530

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

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/564641/compiler-haladcread-i-use-adc-read-for-p1-0-but-cann-t-read-data

主题中讨论的其他器件:CC2531CC2530

工具/软件:TI C/C++编译器

我在中有 init P1.0

 P1SEL &=~BV (0);
 P1DIR &=~BV (0);

I SET HalAdcRead (0、HAL_ADC_Resolution);

但我会读取数据。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    P1.0不是 ADC 输入的模拟引脚。 您只能在 CC2530/CC2531上使用 P0.0-P0.7作为 ADC 输入。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    是的、我在数据表中看到过它。

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