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.
您好!
我正在使用空的位域项目、写入寄存器、当我将 ADC 引脚短接至3.3V 时、ADC 模块存在问题、它提供的最大值为900。
SetVREF (ADC_ADCA、ADC_INTERNAL、ADC_VREF3P3);
AdcaRegs.ADCCTL2.bit.prescale = 6;//将 ADCCLK 分频器设置为/4
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;//为 ADC 加电
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
所用的缓冲器功能。 我缺少哪些设置。
您好 Manoj:
A2是 AGPIO 引脚(GPIO224)。 在将其用作 ADC 输入之前、您需要将其配置为模拟模式:
GpioCtrlRegs.GPHAMSEL.bit.GPIO224 = 1; AnalogSubsysRegs.AGPIOCTRLH.bit.GPIO224 = 1;
此致、
伊袋