1、 单片机原理及系统课程设计单片机原理及系统课程设计 专专 业:业: XXXXXXXXXXXXXXXXXXXXX 班班 级:级: XXXXXXXXXXXXX 姓姓 名:名: XXXXXXXXXXXXXXXXXXXXX 学学 号:号: XXXXXXXXXXX 指导教师:指导教师: XXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 2013 2013 年年 3 3 月月 1414 日日 评语: 考勤(10) 守纪(10) 过程(40) 设计报告(30) 答辩(10) 总成绩(100) 单片机原理及系统课程设计报告 1 基于单片机的简易数字
2、电压表的设计基于单片机的简易数字电压表的设计 摘摘 要要 本文介绍了一种基于单片机的简易数字电压表的设计。该设计主要由三个模 块组成: A/D 转换模块, 数据处理模块及显示模块。 A/D 转换主要由芯片 ADC0808 来完成,它负责把采集到的模拟量转换为相应的数字量在传送到数据处理模块。 数据处理则由芯片 AT89C51 来完成,其负责把 ADC0808 传送来的数字量经过一 定的数据处理,产生相应的显示码送到显示模块进行显示;此外,它还控制着 ADC0808 芯片工作。 该系统的数字电压表电路简单,所用的元件较少,成本低,且测量精度和可 靠性较高。此数字电压表可以测量 0-5V 的 1
3、路模拟直流输入电压值,并通过一个 四位一体的 7 段数码管显示出来。 关键词关键词: :单片机单片机;数字电压表数字电压表;A/D 转换转换 Design of Simple Digital Voltmeter Based on Single-chip Microcontroller Abstract This paper which introduces a kind of simple digital voltmeter is based on single-chip microcontroller design. The circuit of the voltage meter is m
4、ainly consisted of three mould pieces: A/D converting mould piece, A/D converting is mainly completed by the ADC0808, it converts the collected analog data into the digital data and transmits the outcome to the manifestation controlling mould piece. Data processing is mainly completed by the AT89C51
5、 chip, it processes the data produced by the ADC0808 chip and generates the right manifestation codes, also transmits the codes to the manifestation controlling mould piece. Also, the AT89C51 chip controls the ADC0808 chip to work. The voltmeter features in simple electrical circuit, lower use of el
6、ements, low cost, moreover, its measuring precision and reliability. The voltmeter is capable of measuring voltage inputs from 1 route ranging from 0 to 5 volt, and displaying the measurements though a digital code tube of 7 pieces of LED. Keywords :Single-chip microcontroller,Digital voltmeter,A/D converter 单片机原理及系统课程设计报告 2 1、引言引言