我有两个问题:1.我采用2812ADC内部参考,请问内部参考电压为3v吗,我ADCREFM和ADCREFP都是通过电容接地。2.调试时我直接在ADCINA0(174腿)加上一个直流电压为1.2v,读到AdcRegs.RESULT0左移后的结果为1606,但重新下载程序后仿真,有时结果为1818.这是为什么?
Eric Ma:
见手册:
The on-chip ADC has a built-in reference, which provides the reference voltages for the ADC. ADCVREFPis set to 2.0 V and ADCVREFM is set to 1.0 V.
Eric