STM32内部温度传感器问题

2019-08-19 16:19发布

把原子大哥的内部温度传感器的代码中的ADC1仅修改成用ADC2采集,其它设置不变,结果不能正确采集数据。。。。
ADC1采集:
Internal temperature is: 40.726074 'C
Internal temperature is: 40.913425 'C
Internal temperature is: 40.913425 'C
Internal temperature is: 40.913425 'C
Internal temperature is: 40.726074 'C
Internal temperature is: 40.913425 'C
Internal temperature is: 40.913425 'C
Internal temperature is: 40.913425 'C
Internal temperature is: 40.913425 'C
Internal temperature is: 40.726074 'C
Internal temperature is: 40.913425 'C
Internal temperature is: 40.913425 'C


修改成ADC2后:

Internal temperature is: 357.183411 'C
Internal temperature is: 357.183411 'C
Internal temperature is: 357.183411 'C
Internal temperature is: 357.183411 'C
Internal temperature is: 357.183411 'C
Internal temperature is: 357.183411 'C
Internal temperature is: 357.183411 'C
Internal temperature is: 357.183411 'C
Internal temperature is: 357.183411 'C
Internal temperature is: 357.183411 'C



友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。