1、 毕业设计(论文)任务书毕业设计(论文)任务书 毕业设计(论文)题目: 自动售货机的控制电路设计 毕业设计(论文)内容: 1.当顾客投入硬币,总钱加和模块开始计算总额。 2.当按下确认键后,开始计算应找零的数额或退还原款,同时信号 灯亮,开始找零或退还原款。 3.锁定模块锁住所有按键,显示模块实时显示硬币数额。 毕业设计(论文)专题部分: 以 VerilogHDL 为核心设计自动 售货机的控制电路,实现电路功能。 起止时间:2012 年 3 月-2012 年 6 月 指导教师: 签字 年 月 日 教研主任: 签字 年 月 日 学院院长: 签字 年 月 日 摘要摘要 随着经济发展,21 世纪进入
2、信息化时代,生活得更好、更健康、 更经济已成为人们追求的目标。 小型自动售货机就是在这样的时代背 景下产生的,由于它的操作方便便捷,能很好的符合人们的需求,很 快形成了自己的市场,并日益扩大。 本文设计的自动售货机控制电路划分为八个子模块: 找零计算模 块、 确认取消控制模块、 找零控制模块、 总钱数加和模块、 锁定模块、 显示模块、时钟分频模块和消抖模块。系统提供的时钟经分频后送给 控制器使用,外部信号接入控制系统前需要先进行按键消抖操作。当 顾客投入硬币后,总钱数加和模块计算收到的硬币数额。 当顾客按下 确认键后,找零计算模块计算找零或退还的钱数。 同时确认取消控制 模块的确认信号灯亮,
3、找零控制模块开始找零或退还原款,锁定模块 将锁住所有的按键,令所有按键均无效。当接收到复位信号后,所有 标识信号和控制信号清零,系统处于等待指令状态。 本文设计的自动售货机控制电路采用 VerilogHDL 硬件描述语 言编程,在 ModelSim 及 Project Navigator 软件平台上进行编译和 仿真, 最后生成的目标文件下载到 CPLD 芯片实现电路功能。 经验证, 电路良好,满足设计要求。 关键字:关键字:自动售货机;VerilogHDL;ModelSim;CPLD 沈阳化工大学学士学位论文 Abstract Abstract With the development of
4、economy, the 21st century into the information times, life better more healthy more economic is the goal for people small vending machine is in such times background, because of its convenient operation is convenient, can be a very good with peoples needs, quickly formed its own market, and is expan
5、ding. In this paper the design vending machine control circuit is divided into eight modules: change calculation module confirming cancellation control module change control module total amount plus and module lock module display module clock frequency modules and shake away points of the system pro
6、vided by the module clock frequency points to use after controller, external signal access control system needs to go to the keys away before shake when customers could put in a coin after operation, the total amount plus and module of the calculation amount received COINS when customers press confirm key, the change and calculation module change or return the money to the calculation and confirming cancellation control module