收藏 分享(赏)

基于单片机的高精度温度测量系统设计.pdf

上传人:HR专家 文档编号:6252515 上传时间:2019-04-03 格式:PDF 页数:4 大小:401.13KB
下载 相关 举报
基于单片机的高精度温度测量系统设计.pdf_第1页
第1页 / 共4页
基于单片机的高精度温度测量系统设计.pdf_第2页
第2页 / 共4页
基于单片机的高精度温度测量系统设计.pdf_第3页
第3页 / 共4页
基于单片机的高精度温度测量系统设计.pdf_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

1、2011 M 5 1 34 9 C 0 / M odern Electro nics T echniqueM ay 2011V ol. 34 N o. 9基于单片机的高精度温度测量系统设计何宗虎, 张德祥, 张玲君( v 1 , g null 230039)K null 1 :提出采用单总线数字式温度传感器DS18B20和单片机组成的新型高精度温度测量仪的设计b介绍了温度传感器DS18B20的结构a特点和工作原理, 设计了DS18B20和 AT 89S52单片机的温度测量系统硬件电路和软件编程,主要包括温度采集a温度显示及报警控制等功能b整个系统具有结构简单,测量精度高, 传输距离远, 抗干扰

2、能力强, 温度读取方便和造价低等一系列优点,适用于生产生活及科学研究中对温度的测量,应用前景十分广阔b1 o M :温度测量; 单片机; DS18B20; 数码管显示 m s | : T N876null34 null null null null null D S M : Anull null null null null c I | : 1004null373X( 2011) 09null0130null03Design of Highnullaccuracy Temperature Detecting System Based on Single Chip MicrocomputerHE

3、 Zo ngnullhu, ZH AN G Denullxiang , ZH A N G L ingnulljun( Inst itute o f Electrica l Engineering and Auto mat io n, Anhui U niv ersity , He fei 230039, China)Abstract: A new hig hnullaccuracy temperature detecting system based on sing lenullbus dig ital temperatur e senso r DS18B20 andsing le chip

4、micr ocomputer ( SCM ) is pro po sed. In this paper, the structur e, char acteristics and wo rking pr inciple o f t em peranulltur e sensor DS18B20 is intro duced. H ardw are circuit and softw are prog ramming ( including temper ature acquisitio n, t em peranulltur e display and a larm contr ol func

5、t ions) of the temperatur e measurement system are designed based on DS18B20 andAT 89S52 SCM . T he whole sy stem has a series of advantages of simple str ucture, high detection accuracy, lo ng transmissiondistance, str ong antinullinter ference ability, easy to read temper atur e and low cost. It h

6、as a br ight applicatio n future in daily lifeand scientific research for temper ature measur ement.Keywords: temper ature measur ement; SCM ; DS18B20; nixie displayl : 2010null12null10 “ : 8 O 1 S ( KJ2008B094)0null null 7 1 , 7 1 , B Q S $ F 1 null , 5 A U ! 6null8 b A A U 3 ! B “ , u 7 7 1 . b V

7、1 - ! , # “ d ? a b1. 3 null 其他的部分“ d 1 7 5 A U , ? ; = 5 b T ! 1 null , “ d ( ? ; = 5 , Y )b “ V V 2 j $ l “d b1. 4 null 系统的电路原理图“ d m m 2 U b图 2null 系统电路原理图2null q ! 9“ d 7 S T H , n 5 I/ O g S a S , 7 1 , 1 - $ , e q ? | 7 ,Y V 3 . DS18B20 “ - , V 9 L . , V ) 5 A U , T ! 1 null , “ d (? ; = 5 a Y

8、 ) 9null10b“ d q s 1 0 a DB18B20 aA U “ d s F , m m 3 U b图 3null 主程序流程图! 9 s / :# include# include# includesbit DQ = P32; null / / l DS18B20 gsbit SET = P33; null null / / l e 7 1131 9 7 : “ d ! 9null null unsig ned char T A P 10 = null / / , 0xC0, 0xF 9, 0x A 4, 0x B0, 0x99, 0x92, 0x 82, 0x F8,0x 8

9、0, 0x90, ;unsig ned char T A P2 10 = / / , 0x40, 0x 79, 0x 24, 0x30, 0x 19, 0x12, 0x 02, 0x78,0x 00, 0x10, ;/ / l B i b F , 3 ( A SCI I ) , l = 2 unsig ned char str 10 ;/ / H 0 , H ( 10* D+ 3) usvoid delay _10us( unsig ned char D) null null unsigned char i;null null for ( i= 0; i 1; null / / 5 null

10、null null DQ = 0;null null null _nop_ ( ) ;null null null DQ = 1; null / / d b18B20 Lnull null null for ( j= 1; j 1; / / M B , ! / B null null / / A U ( str F = A SCI I , 1 h 48)void display( vo id) null null unsigned char i;null null unsig ned char j= 100;null null while( j- - )null null null null

11、for ( i= 0; i = war ning ) P 1_0= 0;/ / T v , null null elsenull null P1_0= 1; nullnull null 3null null C51 “ DS18B20 3 . “ d e a a T Z L ,1 z w B , B . L _ J . Y / , 2009, 26( 3) : 51null54. 2 C , o , Z . B = E Z E #L C J . N V / . , 2004( 5) : 49null50. 4 , . # y k / 4 s J . Y / , 2006, 23( 1) : 5

12、9null60, 67. 5 ,f R , , . v = E E N J . 9 e , 2008, 16( 7) : 1050null1052. 6 f , l = , R . = E L _ s N ! 9 J . S / , 2010( 6) : 96null98. 10 V . : L _ Z E J . , 2006, 20( 5) : 39null41.T e : 包天悦null 男, 1977年出生,教研室主任b主要研究方向为蓄电池在线监测与性能预测a蓄电池组的计算机测控技术研究b(上接第132页)参null 考null 文null 献 1 .“ . DS1820 # J . C S/ , 2008( 21) : 52. 2 . 0 e “ d ! 9 J . 7 : , 2010( 2) : 50null51. 3 . . # M . : 0 . # M . : , 2003. 10 f l , 3 , . 51 M . : , 2008.135 9 ? : e q VRLA L S “ d

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报