OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 3126|回复: 1

STM32内部温度传感器问题

[复制链接]

18

主题

94

帖子

0

精华

高级会员

Rank: 4

积分
571
金钱
571
注册时间
2016-5-30
在线时间
87 小时
发表于 2017-5-13 09:55:28 | 显示全部楼层 |阅读模式
把原子大哥的内部温度传感器的代码中的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



正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

18

主题

94

帖子

0

精华

高级会员

Rank: 4

积分
571
金钱
571
注册时间
2016-5-30
在线时间
87 小时
 楼主| 发表于 2017-5-17 15:41:31 | 显示全部楼层
哈哈 细看资料原来内部传感器只能在ADC1应用
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-8-21 04:42

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表