文档介绍:课程设计(论文)说明书
题目: 方波发生器的设计
院(系):
专业: 电子信息工程
学生姓名:
学号:
指导教师:
职称:
20 年月日
摘要
本次课程设计以AT89S51单片机为核心器件,外围采用按键作为控制以及LCD1602作为显示器所设计的方波发生器。该方波发生器能实现0-1kHz频率范围、占空比可调的方波输出。其核心技术为单片机并行端口的应用、单片机定时器中断应用和数字分离的ASCII码液晶显示技术。采用8个独立的按键组成控制模块,操作方便,按键控制模式可以通过程序进行设定;显示模块则由液晶屏1602构成,能显示出实时输出方波的频率及占空比,直观明了。设计过程中遇到的问题是输出方波的频率、占空比与液晶显示数据存在误差,通过不断调试程序,合理编写中断服务程序来修正误差提高精确度,达到设计要求。该方波发生器具有线路简单、结构紧凑、价格低廉、性能优越等优点。
关键词:方波发生器;AT89S51单片机;键盘;LCD1602
Abstract
The course design AT89S51 microcontroller as the core device, the external use of buttons as a control and LCD1602 displays are designed as a square wave generator. The square wave generator to achieve 0-1kHz frequency range, adjustable duty cycle square wave output. The core technology for the application of single chip parallel port, SCM applications and digital timer interrupt ASCII code separate liquid crystal display technology. 8-ponent control module buttons, easy to operate key control mode can be set through the program; display module constituted by the LCD1602, can show real-time output frequency and duty cycle square wave, intuitive and clear. Problems encountered in the design process is the output square wave frequency, duty cycle and LCD display data errors exist, through missioning process, a reasonable write interrupt service routine to correct the error to improve accuracy, to meet the design requirements. The square wave generator has a simple circuit, compact, low cost, superior performance advantages.
Keywords: Square wave generator; AT89S51 microcontroller; keyboard; liquid crystal 1602
目录
引言………………………………………………………………………4
1 概述…………………………………………………………………… 4
设计内容……………………………………………………………… 4
设计的基本要求…………………………………………………………4
2 方波了生器设计方案…………………………………………………4
方案介绍……………………………………………………………… 4
方波发生器的原理与功能……………………………………………… 5
3 系统的硬件设计………………………………………………………5
单片机最小系统…………………………………………………………5
最小键盘接口电路……………………………………………………… 6
液晶显示电路……………………………………………………………6
4 系统的软件设计……………………………………………………… 7