Description: 本程序使用MSP430F149驱动DS18B20,并再1602液晶显示温度;DS18B20 是一款小巧的温度传感器,它通过单总线协议与 MCU 进行通信,硬件连接十分简洁,它具有如下特性:测温范围-55℃~+125℃,并且在-10℃~+85℃范围内具有±0.5℃的精度,9-Bit 到 12-Bit 的可编程分辨率,用户自定义、非易失性温度阈值。MCU的P1.6端口与DS18B20的DQ端连接, 通过在MCU的IO 端口模拟1-Wire协议的时序就能实现对 DS18B20 的读写了。-This procedure using the MSP430F149 drive DS18B20, and re-1602 LCD temperature DS18B20 is a compact temperature sensor, through a single bus protocol to communicate with the MCU, the hardware connection is very simple, it has the following features: temperature range-55 ℃ ~+ 125 ℃, and in-10 ℃ ~+ 85 ℃ range ± 0.5 ℃ accuracy ,9-Bit to 12-Bit programmable resolution, user-definable, nonvolatile temperature threshold . MCU port P1.6 of the DQ and DS18B20 client connections, through the IO port MCU simulation 1-Wire protocol will be able to realize the timing of the reading and writing DS18B20. Platform: |
Size: 162816 |
Author:skywalker |
Hits: