云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 基于Proteus和Keil的单片机仿真实验系统设计

基于Proteus和Keil的单片机仿真实验系统设计

  • 62 次阅读
  • 3 次下载
  • 2025/5/6 6:53:13

河 北 建 筑 工 程 学 院

本科毕业设计(论文)

题 目 基于Proteus和Keil的单片机仿真实验系统设计

学 科 专 业 机械电子工程

级 机电102班 姓 名 冯立岗 指 导 教 师 张东辉

摘要

本设计是基于51系列的单片机进行的单片机实验仿真系统设计,可以进行

键盘输入显示、计数器、流水灯、LCD显示字符、抢答器等八个实验的仿真。 单片机实验仿真系统的设计过程在硬件与软件方面进行同步设计。硬件部分主要由AT89C51单片机,4×4键盘阵列,七段数码管显示,8×8LED显示模块,16×16LED点阵显示模块,流水灯模块,LCD液晶模块,以及抢答器按键电路等组成,系统通过LED及LCD显示数据,所以具有人性化的操作和直观的显示效果。软件方面主要包括时钟程序、键盘程序,显示程序等。由于本设计实验项目有多个,考虑到汇编语言并不适于比较繁琐的程序的编写,故本系统以单片机的C语言进行软件设计,为了便于扩展和更改,软件的设计采用模块化结构,使程序设计的逻辑关系更加简洁明了,以便更简单地实现实验的选取及显示功能。所有程序在Keil软件编写完成后调试编译最后生成hex格式的文件导入到Proteus软件中进行调试,确定没有问题后,在Proteus软件中嵌入单片机内进行仿真。

关键词:AT89C51;流水灯;抢答器;键盘

ABSTRACT

It is a design of single chip experimental simulation system based on the 51

series single chip. It can perform eight experimental simulations including the keyboard input display, counter, water lights, LCD display character, responder. This design’s process is designed to synchronize the hardware and software aspects. The hardware part is mainly composed of AT89C51 microcontroller,4*4 keyboard array, seven segment LED display, 8*8 LED display module, 16*16 dot matrix display module, water light module, LCD liquid crystal module and responder key circuit and other components. The system displays the data via LED and LCD, so it has humanized operation and intuitive display effect. The software includes a clock procedure, the keyboard procedure and the display procedure. Since there are many experimental projects in this design, assembly language does not take into account the relatively cumbersome procedures for the preparation, and the system is designed of the microcontroller C language. In order to facilitate the expansion and change, the software is designed with modular structure, so that the logic programming is more concise and easier to realize the experimental selection and display. All the programs are debugged and compiled after the completion of the written of the keil software. And the final completed files of hex form are debugged in the Proteus software. When there is no problem, embedded the microcontroller into the Proteus software to simulate.

Key words: AT89C51;water lights;responder;keyboard

目录

第1章 前言·········································································1

1.1 单片机现状及发展概述······················································1

1.2 单片机的性能特点···························································2

1.3 AT89系列单片机简介·························································2 1.4 单片机实验仿真系统·························································3

第2章 Proteus和Keil软件··················································4

2.1 Proteus与Keil的历史及联合仿真········································4 2.2 Proteus与Keil的联合仿真的优势·········································5 2.3 Proteus与Keil的使用·····················································6 2.3.1 Keil C软件的使用·····················································6 2.3.2 Proteus仿真软件的使用··············································9

第3章 系统总体设计及方案的确定·········································10

3.1 单片机实验仿真系统实验项目的设计·····································10 3.2 系统总体设计································································11 3.3 系统总线的设计·····························································11 3.3 系统设计用到的元件························································12

第4章 硬件及电路原理图的设计···········································12 4.1 单片机最小系统设计·······················································12 4.2 流水灯的设计·······························································14 4.3 4×4矩阵键盘扫描与显示··················································14 4.3.1键盘处理································································14

4.3.2 LED显示································································16

4.4 INT0中断三位计数器演示实验·············································18 4.5 LCD液晶屏的字符显示实验·················································19

4.5.1 液晶显示简介··························································20 4.5.2 1602字符型LCD简介·················································21

4.5.3 1602LCD的指令说明及时序···········································21

4.5.4 1602LCD的指令说明及时序···········································23 4.5.5 1602LCD的RAM地址映射及标准字库表·····························25 4.5.6 1602LCD的一般初始化(复位)过程································26

4.6 点阵显示字符实验··························································27

4.6.1 LED简介································································28 4.6.2 LED点阵································································29

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

河 北 建 筑 工 程 学 院 本科毕业设计(论文) 题 目 基于Proteus和Keil的单片机仿真实验系统设计 学 科 专 业 机械电子工程 班 级 机电102班 姓 名 冯立岗 指 导 教 师 张东辉 摘要 本设计是基于51系列的单片机进行的单片机实验仿真系统设计,可以进行键盘输入显示、计数器、流水灯、LCD显示字符、抢答器等八个实验的仿真。 单片机实验仿真

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com