首页 | 本学科首页   官方微博 | 高级检索  
     

基于AVR单片机捕获中断和热敏电阻的温度测量
引用本文:田开坤,徐海霞. 基于AVR单片机捕获中断和热敏电阻的温度测量[J]. 现代电子技术, 2008, 31(3): 138-140
作者姓名:田开坤  徐海霞
作者单位:湖北师范学院,电工电子实验教学中心,湖北,黄石,435002
摘    要:介绍一种类R-F转换频率测量温度的方法,由AVR单片机引脚输出的高低电平通过热敏电阻和标准电阻对电容充放电,并由外部输入捕获中断测量充电时间,然后单片机根据测得的时间和标准电阻阻值计算出热敏电阻的阻值,查表得到温度值.详细介绍了该方法的测量原理,给出了主要程序流程图和关键程序代码,并在一款温度计的设计中成功运用了该方法,实现低成本、高精度的温度测量.

关 键 词:热敏电阻  温度测量  AVR单片机  捕获中断  单片机  输入捕获中断  热敏电阻  温度测量  Thermistor  Interrupt  Capture  Based  Measurement  精度  成本  成功运用  设计  温度计  程序代码  程序流程图  测量原理  温度值  计算  充电时间
文章编号:1004-373X(2008)03-138-03
收稿时间:2007-08-17
修稿时间:2007-08-17

Temperature Measurement Based on AVR Capture Interrupt and Thermistor
TIAN Kaikun,XU Haixia. Temperature Measurement Based on AVR Capture Interrupt and Thermistor[J]. Modern Electronic Technique, 2008, 31(3): 138-140
Authors:TIAN Kaikun  XU Haixia
Abstract:The paper introduces a method of measuring thermistor temperature the similar to R - F convert frequency method,high level or low level output from AVR MCU charges up capacitance through thermistor and standard resistance, outside input capture interrupt measures charged time,and calculates resistance value of thermistor according to charged time and the value of standard resistance,get temperature value by means of table look- up. It discusses the measuring theorem, gives main program flowchart and key code. And this method is successfully launched in designing thermometer, realized lower - cost, high - precision temperature measurement.
Keywords:thermistor   temperature measurement    AVR MCU    capture interrupt
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号