摘要
单片机在检测和控制系统中得到广泛的应用,温度是一个系统常需要测量、控制和保持的量,而温度是一个模拟量,不能直接与单片机交换信息,采用适当的技术将模拟的温度量转化为数字量在原理上虽不困难,但电路较复杂、成本较高、还会遇到其他方面的问题。用MCS 5 1单片机多余的I/ O口P1(P1.0 ,P1.1,P1.2 )实现对温度的检测,可以使电路简单、接口少,适用于几乎所有类型的单片机,易于实现,应用在一些精度要求不太高的系统中。
The single chip microcomputer be required extensively in measurement and control systems, and the temperature need to be surveyed, controled and maintained by a system frequently. But the temperature is an analog, can′t exchange information with the single chip directly. In principle, it is not difficult to transform the simulated temperature into the digital quantity, if adopting proper technique. But get the electric circuit is more complex, the lost is more expensive, and other questions can be met.In the way of surplus I/O′s rim P1 ( P1.0,P1.1,P1.2) realization temperature of the single chip microcomputer measurement, can make the electric circuit become easy, make the port be less, and it is suit for nearly all sorts of single chip microcomputer, be realized easily.It is used in the system which is not need high accuracy.
出处
《现代电子技术》
2005年第10期1-3,共3页
Modern Electronics Technique
基金
陕西省教育厅专项科研计划 (0 4 JK31 1 )资助项目
关键词
单片机
热敏电阻
温度
检测
P1口
single chip microcomputer
thermal resistor
temperature
examined
P1 port