流水灯、数码管、按键、液晶显示器LCD驱动程序和RS232串口 - 图

2019-01-27 16:18

引言

单片机(微控制器)是一种集成电路芯片,是采用超大规模集成电路技术与数据处理能力的中央处理器CPU,只读存储器ROM,各种各样的I / O口和中断系统、定时器/计数器功能(可能包括显示驱动电路、脉宽调制电路,模拟多路复用器和A / D转换器电路)集成到一块硅组成的小型和完美的微机系统,广泛应用于工业控制领域。自1980年代以来,8位单片机,发展到现在的300高速单片机。以其极高的性价比,是人们的注意和关心,应用很广,发展很快。单片机体积小、重量轻、抗干扰能力强、环境要求不高,成本低,可靠性高,灵活性好,开发较为容易。由于这些优势,

在我国单片机已广泛应用于工业自动化控制、自动检测、智能仪器仪表、电力电子、机电一体化设备和其他方面,最典型的是单片机51单片机。在本次课程设计中以STC89C52芯片为核心,辅以必要的电路,设计了流水灯、数码管、按键、液晶显示器LCD驱动程序和RS232串口程序。同时系统硬件设计简单、稳定性高、价格低廉等优点。

关键词:液晶显示器,STC89C52,RS232

1

MCU (Microcontrollers) is A kind of integrated circuit chips, is to use very large scale integrated circuit technology with data processing ability of the central processor CPU, ROM, A variety of I/O mouth and interrupt system, timer/counter function (may include display driver circuit, pulse width modulation circuit, analog multiplexer and A/D converter circuit) is integrated into A piece of silicon consisting of A small and perfect microcomputer system, widely used in industrial control field. Since the 1980 s, by the time of the four, 8-bit microcontroller, development to the present 300 m high speed single chip microcomputer.

SCM since the 1970 s, with its extremely high cost performance, is very wide, developing very quickly. SCM small size, light weight, strong anti-jamming capability, environmental requirements is not high, low cost,highreliability, good flexibility, development is relatively easy. Because of these advantages, in our country, SCM has been widely used in industrial automation control, automatic detection, intelligent instruments and other aspects, and is most typical in the microcontroller 51 single-chip microcomputer ,The curriculum design through study andapplication of it, STC89C52 chip as the core, supplemented by necessary circuit, designed a light water program, digital tube, key procedures, LCD driver and RS232 serial interface program. At the same time the system has simple hardware design, high stability, price is low wait for an advantage .

Key words: liquid crystal display,STC89C52,RS232

- 2 -

第一章总体设计方案

1.1 课程设计任务

(1)按照硬件电路画出原理图及PCB图;

(2)在硬件电路上完成流水灯、数码管、按键、液晶显示器以及RS232串口通信驱动程序。

(3)组内分配表如表1-1

表1-1 组内分配表

组长 杨彦平 液晶显示 1.2 设计流程

宋晶 串口通信 毛芸芸 流水灯 组员 王希岳 数码管 满冠军 PCB图 张家琳 按键 段小刚 原理图 (1)使用Altium Designer软件绘制原理图和PCB图 ;

(2)使用keil5进行流水灯,数码管,按键,液晶显示器以及RS232串口通信程序的编写;

(3)使用PZISP自动下载软件将程序下载到STC89C52单片机上。

- 3 -

- 4 -

第二章硬件设计与分析

2.1硬件分析

2.1.1 STC89C52

STC89C52是一种带8K字节闪烁可编程可檫除只读存储器(FPEROM-Flash Programable and Erasable Read Only Memory )的低电压,高性能COMOS8的微处理器,俗称单片机。该器件采用ATMEL搞密度非易失存储器制造技术制造,与工业标准的MCS-51指令集和输出管脚相兼容STC89C52具体介绍如下:

①主电源引脚(2根)

VCC(Pin40):电源输入,接+5V电源 GND(Pin20):接地线 ②外接晶振引脚(2根)

XTAL1(Pin19):片内振荡电路的输入端 XTAL2(Pin20):片内振荡电路的输出端 ③控制引脚(4根)

RST/VPP(Pin9):复位引脚,引脚上出现2个机器周期的高电平将使单片机复位。

ALE/PROG(Pin30):地址锁存允许信号 PSEN(Pin29):外部存储器读选通信号

EA/VPP(Pin31):程序存储器的内外部选通,接低电平从外部程序存储器读指令,如果接高电平则从内部程序存储器读指令。

④可编程输入/输出引脚(32根)

- 5 -


流水灯、数码管、按键、液晶显示器LCD驱动程序和RS232串口 - 图.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:机械员试题2

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: