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.

F28035的ADC引脚通过电阻接地,读数就一定不会为0吗?

Expert 1795 points
Other Parts Discussed in Thread: CONTROLSUITE

本人对模拟电路比较白,各位见笑了~

对ADC的原理不是很了解,本来设想的是,对ADC端口始终用一个电阻接地,这样读数就是0,当接上传感器后,读数一定不为0,这样就能明确提供反馈告诉用户,是否有传感器接入。但是测试发现,只要接了电阻,读数就不是0,电阻又不能太小,否则影响传感器电路。

这该怎么办?我想从代码中减去一个偏移值,强行把读数变为0,但是不懂怎么从理论上算这个偏移,直接靠测量值来算好像又不大靠谱,心里没底。