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.

CC2538的HalAdcRead()读不出数据

Other Parts Discussed in Thread: CC2538, CC2530

如图,在用CC2538做ADC读取实验时,ADC读出来的值一直都是00,我自己想了下原因:

一是之前我在使用其他M3芯片时,需要开ADC的RCC时钟,我不知道这里需不需要;

二是我没有配置PA4脚为通用IO口。

这两个我都不知道该怎么写,CC2530配置IO口是用P0SEL之类的,但CC2538不知道该怎么配置。

另外,如果还有其他原因,请告知,谢谢。