摘 要
本文所研究的单片机是Atmega16,这款单片机零售价低,货源充足;且具有16KB的Flash,能满足绝大部分的实际需要;它还支持JTAG仿真,特别适合AVR初学者和需要繁琐调试的低成本应用。本文主要设计了蜂鸣器、8位LED显示、4位8段数码管显示、1602LCD液晶屏显示、模数和数模转换模块,对这些模块进行电路和软件的设计。本文运用了protel画图软件和C语言编程的软件对这些模块进行设计。
通过对这款单片机的学习,我对各模块都进行了相应的设计,Atmega16自身带有一个10位的逐次逼近型ADC,可以实现模数转换;学习了数码管动态显示和静态显示的方法;用到了1602液晶显示芯片,LCD1602就是一款极常用的字符型液晶。可以显示2行16个字符,每个字符采用5×7或5×10点阵;还对数模转换芯片5620进行了研究,它是单电源供电的串联型8位D/A转换器(DAC),其输出为电压型,它有四路各自独立的电压输出D/A转换器,具备各自独立的基准源,其输出还可编程为2倍或1倍。
通过实验证明,本开发系统性能稳定,能很好的实现各模块功能,还可以用作初学者的学习板,具有很大的实际意义。
关键字:ATmega16;显示;模数转换;数模转换;蜂鸣器
The design of ATmega16 development system
Abstract
In this paper, the study by the MCU is Atmega16, this retail lowest-SCM, supply adequate; and has a 16 KB of Flash, to meet the actual needs of the majority; It also supports JTAG emulation, particularly suitable for beginners and needs AVR Commissioning of the complex low-cost applications. This paper is designed buzzer, eight LED display, four paragraph 8 of the digital display, 1602 LCD screen, DA and AD converter modules, these modules on the circuit and software design. In this paper, the use of the protel drawing software and the C programming language software for the design of these modules.
Through the study of this MCU, I have carried out various modules corresponding design, Atmega16 itself with a 10 successive approximation of the ADC, a