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.

2538ADC测GND读取值太大

关于2538ADC 例程 使用过程中碰到的两个问题:

1.例程中,配置了12位ADC,为何#define CONST 0.58134 //(VREF / 2047) = (1190 / 2047), VREF from Datasheet 中是除以2047(2的11次方),而不是2的12次方?

2.例程中是读取的内部温度传感器,我把例程改为读取PA2上的电压值,为何在测量GND时,会出现2.4V(参考电压满量程1.2V,悬空时为1.2V),寄存器正常是32764(0111 1111 1111 1100),测GND是65304(1111 1111 0001 1000) 。