文件名称:STC12C5A60S2_DS18B20_Test
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-05-04
- 文件大小:
- 44kb
- 下载次数:
- 0次
- 提 供 者:
- yush*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
DS18B20数字温度传感器测试程序
1、程序说明:
该例程演示了接在单片机P3.5端口上的数字温度传感器DS18B20测试实验。
并在数码管上显示当前温度。
2、实验操作
将拨码开关S10的SMG端拨到ON端,表示该端接通。
将拨码开关S10的TDQ端拨到ON端, 表示该端接通。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。
该程序下载到开发板运行后可观察到数码管显示当前温度。-DS18B20 digital temperature sensor test program
1, program instructions:
This routine demonstrates the P3.5 port on the microcontroller DS18B20 digital temperature sensor test experiment.
And display the current temperature on the digital tube.
2, experimental operation
The dial switch SMG S10 end of the ON to the side, indicating that the end is connected.
The dial switch TDQ S10 end of the ON to the side, indicating that the end is connected.
At the same time, the other end of the dial switch is in a disconnected state, that is, the switch is not transferred to the ON terminal.
Otherwise, it will affect the experimental results.
After the program is downloaded to the development board can be observed in the digital tube display the current temperature.
1、程序说明:
该例程演示了接在单片机P3.5端口上的数字温度传感器DS18B20测试实验。
并在数码管上显示当前温度。
2、实验操作
将拨码开关S10的SMG端拨到ON端,表示该端接通。
将拨码开关S10的TDQ端拨到ON端, 表示该端接通。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。
该程序下载到开发板运行后可观察到数码管显示当前温度。-DS18B20 digital temperature sensor test program
1, program instructions:
This routine demonstrates the P3.5 port on the microcontroller DS18B20 digital temperature sensor test experiment.
And display the current temperature on the digital tube.
2, experimental operation
The dial switch SMG S10 end of the ON to the side, indicating that the end is connected.
The dial switch TDQ S10 end of the ON to the side, indicating that the end is connected.
At the same time, the other end of the dial switch is in a disconnected state, that is, the switch is not transferred to the ON terminal.
Otherwise, it will affect the experimental results.
After the program is downloaded to the development board can be observed in the digital tube display the current temperature.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
7、DS18B20单总线温度传感器实验\Application\Doc\readme.txt
..............................\...........\Header\STC12C5A60S2.H
..............................\...........\Source\main.c
..............................\...........\.tartup\STARTUP.A51
..............................\DS18B20_Test.plg
..............................\DS18B20_Test.uvopt
..............................\DS18B20_Test.uvproj
..............................\DS18B20_Test_uvopt.bak
..............................\DS18B20_Test_uvproj.bak
..............................\Lis\DS18B20_Test.m51
..............................\...\main.lst
..............................\...\STARTUP.lst
..............................\Obj\DS18B20_Test
..............................\...\DS18B20_Test.hex
..............................\...\DS18B20_Test.lnp
..............................\...\DS18B20_Test.plg
..............................\...\main.obj
..............................\...\STARTUP.obj
..............................\...\STARTUP._ia
..............................\Application\Doc
..............................\...........\Header
..............................\...........\Source
..............................\...........\Startup
..............................\Application
..............................\Lis
..............................\Obj
7、DS18B20单总线温度传感器实验