adc=((float)AdcRegs.RESULT0)*3.0/65520.0+adclo。
A/D转换中,我使用Watchwindow来观察adc和AdcRegs.RESULT0中的值,发现他们两个不满足上面的关系式,请问是什么原因。
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=((float)AdcRegs.RESULT0)*3.0/65520.0+adclo。
A/D转换中,我使用Watchwindow来观察adc和AdcRegs.RESULT0中的值,发现他们两个不满足上面的关系式,请问是什么原因。
楼主影视这样操作吧?
请问楼主adc定义的是什么格式,如果是浮点格式,通常应该按以下方法吧?
adc=(float)(AdcRegs.RESULT0*3.0/65520.0)+adclo。
另外楼主可以在这句话之后设置断点看一下,是否满足这个关系!