(1) 在PC机上运行windows自带的超级终端串口通信程序(波特率115200、1位停止位、无校验位、无硬件流
控制);或者使用其它串口通信程序;
(2) 点击MDK 的Debug菜单,点击Start/Stop Debug Session;
(3) 旋转电位器RV1,可以看到串口输出数值不断变化,正常显示结果如下所示。
usart1 print AD_value --------------------------
The current AD value = 0x0425
The current AD value = 0x0423
The current AD value = 0x0421
The current AD value = 0x0422
The current AD value = 0x0420
The current AD value = 0x0416
The current AD value = 0x03B6
The current AD value = 0x0841
The current AD value = 0x08C3
The current AD value = 0x08C0
The current AD value = 0x08BE
The current AD value = 0x09E9
The current AD value = 0x0A12
The current AD value = 0x0ACA
The current AD value = 0x0B0D
The current AD value = 0x0B10
The current AD value = 0x0B0E
....
....
(4)若想通过ITM Viewer来观测Printf数据,则需要加入#define DBG_ITM,并允许ITM跟踪,
详见RTX_Blinky例的说明。本例程中只要取消#define DBG_ITM前的注释符号即可。
=======================================
内置温度:
AIN-16
Temperature=(V25-Vsense)/Avg_Sloge+25
其中: V25-->1.34 1.43 1.52 一般取中间值 1.43
Avg_Sloge--> 4.0 4.3 4.6 一般取中间值 4.3
Vsense=ADC_value*Vdd/4096 VDD-->3.3V
vu16 Temperature= (1.42 - ADC_Value*3.3/4096)*1000/4.35 + 25;
没有合适的资源?快使用搜索试试~ 我知道了~
stm32内置温度传感器串口输出
共211个文件
h:29个
o:27个
txt:27个
4星 · 超过85%的资源 需积分: 50 57 下载量 93 浏览量
2011-05-27
17:54:17
上传
评论
收藏 1.63MB RAR 举报
温馨提示
使用stm32内置温度传感器测量cpu温度,通过串口输出到pc机上显示.
资源推荐
资源详情
资源评论
收起资源包目录
stm32内置温度传感器串口输出 (211个子文件)
stm32f10x_it.__i 298B
main.__i 266B
stm32f10x_it._ip 213B
main._ip 197B
ADC.axf 131KB
main.c.bak 12KB
ADC_Opt.Bak 4KB
ADC_Uv2.Bak 3KB
stm32f10x_tim.c 128KB
stm32f10x_adc.c 57KB
stm32f10x_i2c.c 46KB
stm32f10x_rcc.c 43KB
stm32f10x_usart.c 42KB
stm32f10x_fsmc.c 41KB
stm32f10x_sdio.c 38KB
stm32f10x_spi.c 34KB
stm32f10x_dma.c 33KB
stm32f10x_flash.c 32KB
stm32f10x_can.c 31KB
stm32f10x_nvic.c 28KB
stm32f10x_gpio.c 22KB
stm32f10x_it.c 22KB
stm32f10x_dac.c 17KB
main.c 12KB
stm32f10x_rtc.c 12KB
stm32f10x_pwr.c 11KB
stm32f10x_bkp.c 11KB
stm32f10x_lib.c 9KB
stm32f10x_exti.c 9KB
stm32f10x_wwdg.c 8KB
stm32f10x_systick.c 7KB
stm32f10x_iwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_crc.c 5KB
main.crf 151KB
stm32f10x_it.crf 146KB
stm32f10x_lib.crf 144KB
stm32f10x_tim.crf 74KB
stm32f10x_adc.crf 49KB
stm32f10x_can.crf 48KB
stm32f10x_fsmc.crf 47KB
stm32f10x_i2c.crf 47KB
stm32f10x_sdio.crf 45KB
stm32f10x_usart.crf 45KB
stm32f10x_spi.crf 44KB
stm32f10x_dma.crf 42KB
stm32f10x_gpio.crf 42KB
stm32f10x_rcc.crf 40KB
stm32f10x_dac.crf 39KB
stm32f10x_flash.crf 38KB
stm32f10x_bkp.crf 37KB
stm32f10x_nvic.crf 36KB
stm32f10x_pwr.crf 36KB
stm32f10x_wwdg.crf 34KB
stm32f10x_exti.crf 28KB
stm32f10x_rtc.crf 28KB
stm32f10x_systick.crf 26KB
stm32f10x_iwdg.crf 26KB
stm32f10x_dbgmcu.crf 26KB
stm32f10x_crc.crf 26KB
stm32f10x_it.d 2KB
stm32f10x_lib.d 2KB
main.d 2KB
stm32f10x_usart.d 485B
stm32f10x_gpio.d 476B
stm32f10x_fsmc.d 476B
stm32f10x_sdio.d 476B
stm32f10x_wwdg.d 476B
stm32f10x_dac.d 467B
stm32f10x_can.d 467B
stm32f10x_i2c.d 467B
stm32f10x_spi.d 467B
stm32f10x_pwr.d 467B
stm32f10x_tim.d 467B
stm32f10x_adc.d 467B
stm32f10x_bkp.d 467B
stm32f10x_dma.d 467B
stm32f10x_systick.d 430B
stm32f10x_dbgmcu.d 422B
stm32f10x_flash.d 414B
stm32f10x_exti.d 406B
stm32f10x_nvic.d 406B
stm32f10x_iwdg.d 406B
stm32f10x_rtc.d 398B
stm32f10x_crc.d 398B
stm32f10x_rcc.d 398B
ADC_ADC.dep 22KB
ADC_CAN.dep 8KB
stm32f10x_tim.h 46KB
stm32f10x_map.h 28KB
stm32f10x_nvic.h 19KB
stm32f10x_fsmc.h 19KB
stm32f10x_adc.h 18KB
stm32f10x_sdio.h 18KB
stm32f10x_dma.h 18KB
stm32f10x_i2c.h 16KB
stm32f10x_gpio.h 14KB
stm32f10x_rcc.h 14KB
stm32f10x_usart.h 14KB
stm32f10x_flash.h 14KB
共 211 条
- 1
- 2
- 3
jomosiron
- 粉丝: 1
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页