基于单片机的简易收款机的设计(3)

发布时间 : 星期二 文章基于单片机的简易收款机的设计(3)更新完毕开始阅读

XXXXX大学本科毕业设计

基于单片机的简易收款机的设计

学生姓名 所 在 系 专业名称 班 级 学 号 指导教师

I

基于单片机的简易收款机的设计

学生: 指导教师:

内容摘要:随着全球信息化的发展,人们的生活水平也不断在提高,人们所需要

的商品也越来越多,各大规模的超市也随之涌现,超市里的商品品种和数量数不胜数,以致于不可能完全依靠人来管理。本设计正是基于此,解决超市人工收款任务不方便的问题.本设计是基于Atmel公司AT89C51的简易超市收款机控制的设计。通过4X4矩阵键盘,液晶显示器(字符型1602),串行铁电存贮器(24C64),串行通讯口和单片机(AT89C51)的配合,以程控的方式完成收款的目的,系统采用Atmel公司1989年生产的AT89C51单片机为核心控制器,完成简易超市收款机的基本功能。通过矩阵键盘输入商品号,系统经过一系列的分析处理,输出商品号,数量,单价和总价等基本信息.

关键词: 矩阵键盘 字符型液晶显示 铁电存贮 I2C

II

Simple cash register based on single-design

Abstract: With the development of global information, people's living

standards have also continued to improve, people need more and more merchandise, the large-scale supermarkets also the emergence of the supermarket variety and quantity of merchandise just to name a few that do not may completely rely on to manage people. The design is based on this, the settlement of receivables design artificial supermarket. through the 4X4 matrix keyboard, liquid crystal display (character 1602), serial ferroelectric memory (24C64), using Atmel Corporation 1989 production AT89C51 single-chip microcomputer as the core controller, complete the summary of the basic functions of supermarket cash registers, through the matrix keyboard input No. merchandise, the system through a series of analytical processing, the output of goods number, quantity, unit price, total price of such basic information.

Key words:Matrix keyboard character LCD ferroelectric memory I2C

III

目 录

一、引言 ........................................................... 1 (一)本设计的背景 ................................................. 1 (二)本设计的目的和意义 ........................................... 1 二、总体方案设计 ................................................... 2 (一)方案设计 ..................................................... 2 (二)方案论证与选择 ............................................... 2 三、系统硬件电路设计 ............................................... 4 (一)单片机及其外围电路设计 ....................................... 4 (二)键盘电路的设计 ............................................... 5 (三)、显示电路的设计 ............................................. 6 (四)存储器电路的设计 ............................................ 10 (五)串行通信接口电路的设计 ...................................... 12 四、系统软件程序设计 .............................................. 14 (一)单片机内部数据处理程序 ...................................... 14 (二)键盘处理程序 ................................................ 15 (三)LCD液晶显示程序 ............................................ 16 (四)串口通信程序 ................................................ 17 (五)存储器程序 .................................................. 18 五、设计总结 ...................................................... 19 六、致谢 .......................................................... 19 附录 .............................................................. 20 附录一 硬件原理图 ................................................. 20 附录二 硬件PCB图 ................................................. 21 附录三 原程序代码 ................................................. 22 参考文献 .......................................................... 30

IV

联系合同范文客服:xxxxx#qq.com(#替换为@)