《单片机的数字温度计设计方案8.pdf》由会员分享,可在线阅读,更多相关《单片机的数字温度计设计方案8.pdf(18页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、目录1 绪论 0 1.1设计背景 01.2设计要求 01.3设计思路 12 系统硬件设计 12.1设计总框图 12.2各模块功能 1 2.3设计总电路图 73 系统软件设计 73.1程序流程图 73.2源程序 104 系统仿真与调试 104.1电路仿真 144.2系统调试 145 总结与展望 145.1总结 155.2展望 15参考文献 15致谢 161 绪论1.1 设计背景环境温度作为最基本的环境参数之一,与人们的生活、工农业生产以及科学研究密切相关,研制温度测量装置具有很高的现实意义和应用价值。常用的温度计如水银温度计虽然价格低廉,但随着人们对测量精度要求的不断提高使其在很多方面难以满足人
2、们的需求。数字温度计作为一种高精度和高灵敏度的温度测量装置,在许多领域都得到了越来越广泛的应用。1.2 设计要求1/18 利用单片机80C51与串行A/D转换芯片ADC0831设计一个数字温度计,能够测量0150C的温度值,测量结果用4位数码显示。温度通过温度传感器TC1测量后转换为电信号,再经放大器输出送至ADC0831进行A/D转换。本设计用80C51作为主控芯片,采用ADC0831作为电压信号转换器,采用TCK作为实时温度信号采集器,输入电压值范围为05V。本设计电路结构简单,成本相对而言比较低,温度测量范围为0150C,精确也比较高,其精度为1C。1.3 设计思路温度传感器 TC1 输
3、出信号经差动放大到05V,放大器输出送ADC0831进行A/D转换,A/D转换结果送至单片机进行外理,最后将所测的温度在LED数码管上显示。2 系统硬件设计2.1 设计总框图设计总框图见图2.1:图 2.1 设计总框图2.2 各模块功能2.2.1 ADC0831功能说明1)ADC0831引脚图见图2.2:温度传感器A/D 转换单片机LED 显示文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9
4、S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U
5、9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3
6、U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C
7、3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1
8、C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D
9、1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8
10、D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S12/18 图 2.2 ADC0831 引脚图2)ADC0831各引脚定义与功能如下:CS:片选信号输入端。VIN+)VIN-):差分输入端。DO:A/D转换数据输入端。VREF:参考电压输入端,接+5V。CLOCK:时钟信号输入端,决定A/D转换速率,时钟信号频率范围为50800KHZ。2.2.2 80C51单片机的信号引脚
11、说明及其功能1)80C51的信号引脚80C51的引脚排列请参见图2.3。XTAL218XTAL119ALE30EA31PSEN29RST9P0.0/AD039P0.1/AD138P0.2/AD237P0.3/AD336P0.4/AD435P0.5/AD534P0.6/AD633P0.7/AD732P2.7/A1528P2.0/A821P2.1/A922P2.2/A1023P2.3/A1124P2.4/A1225P2.5/A1326P2.6/A1427P1.01P1.12P1.23P1.34P1.45P1.56P1.67P1.78P3.0/RXD10P3.1/TXD11P3.2/INT012P3
12、.3/INT113P3.4/T014P3.7/RD17P3.6/WR16P3.5/T115U180C51图 2.380C51 引脚信号引脚介绍P0.0 P0.7:P0口8位双向口线。P1.0 P1.7:P1口8位双向口线。P2.0 P2.7:P2口8位双向口线。P3.0 P3.7:P3口8位双向口线。:访问程序存储控制信号。当信号为低电平时,对ROM的读操作限定在外部程序存储器;而当信号为高电平时,则对ROM的读操作是从内部程序存储器开始,并可延至外部程序存储器。文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10
13、P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF1
14、0P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF
15、10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 H
16、F10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10
17、HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10
18、 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H1
19、0 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S13/18 RST:复位信号。当输入的复位信号延续2个机器周期以上高电平即为有效,用以完成单片机的复位初始化操作。XTAL1和XTAL2:外接晶体引线端。当使用芯片内部时钟时,此二引线端用于外接石英晶体和微
20、调电容;当使用外部时钟时,用于接外部时钟脉冲信号。P3口的第二功能P3口的8条口线都定义有第二功能,详见表2.1。表 2.1 P3口的第二功能引脚第二功能信号名称P3.0 RXD 串行数据接收P3.1 TXD 串行数据发送P3.2 外部中断0 申请P3.3 外部中断1 申请P3.4 T0 定时器/计数器 0的外部输入P3.5 T1 定时器/计数器 1的外部输入P3.6 外部 RAM 写选通P3.7 外部 RAM 读选通2)分别介绍下P0、P1、P2、P3口P0口P0口的口线逻辑电路如图2.4所示。图 2.4 P0口某位结构P1口P1口的口线逻辑电路见图2.5。文档编码:CV4W10O7S1H1
21、0 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H
22、10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1
23、H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S
24、1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7
25、S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O
26、7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10
27、O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S14/18 图 2.5 P1口某位结构P2口P2口的口线逻辑电路见图2.6。图 2.6 P2口某位结构图P3
28、口P3口的口线逻辑电路见图2.7。图 2.7P3 口某位结构3)时钟电路与复位电路时钟电路时钟电路用于产生单片机工作所需要的时钟信号,而时序所研究的是指令执行中各地信号之间的相互关系。单片机本身就如一个复杂的同步时序电路,为了保证同步工作方式的实现,电路应在唯一的时钟信号控制下严格地按时序进行工作。单片机的时钟电路,如图2.8所示。文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码
29、:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编
30、码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档
31、编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文
32、档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1
33、文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S
34、1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9
35、S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S15/18 图 2.8 时钟振荡电路一般电容C1,C2取30pF左右,晶体的振荡频率范围是1.2MHz12 MHz。晶体振荡频率高,则系统的时钟频率也高,单片机运行速度也就快。MCS-51在通常应用情况下,使用振荡频率为的6MHz或12MHz。单片机的复位电路单片机复位的条件是:必须使RST/VPD或RST引脚9)加上持续二个机器周期即2
36、4个振荡周期)的高电平。单片机常见的复位电路如图2.9a)b)所示。按键复位电路图 2.9 常见的复位电路图2.9a)为上电复位电路,它是得用电容充电来实现的。在接电瞬间,RST端的电位与VCC的相同,随着充电电流的减小,RST的电位逐渐下降。图2.9b)为按键复位电路。该电路除具有上电复位功能外,若要复位,只需按图2.9b)中的RESET键,此时电源VCC经电阻R1、R2分压,在RST端产生一个复位高电平。2.2.3 四位数码显示管1)四位数码显示管引脚图如图2.10。文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10
37、HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10
38、 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H1
39、0 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H
40、10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1
41、H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S
42、1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7
43、S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S16/18 图 2.10四位数码显示管引脚图2)四位七段共阳数码显示器功能介绍:图中引脚1、2、3、4分别为数码显示选择位,顺序从左至右,高电平有效。引脚A、B、C、D、E、F、G表示的是七段字符,
44、控制数码管显示,低电平有效。引脚DP表示的是小数点,低电平有效。2.2.4 温度测量电路1)温度测量电路如图2.11。图 2.11 温度测量电路2)温度测量电路的功能介绍:温度测量电路将采集到的温度通过温度传感器测量,运算放大得到05V的电压信号。经过模/数转换再由单片机分析后即可得到实际温度。2.2.4A/D转换电路1)A/D转换电路如图2.12。文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C
45、3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1
46、C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D
47、1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8
48、D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM
49、8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 Z
50、M8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3 ZM8D1C3U9S1文档编码:CV4W10O7S1H10 HF10P6O3O6P3