›› 2014, Vol. 27 ›› Issue (11): 59-.

• 论文 • 上一篇    下一篇

基于FSM的自动售货机的设计与实现

刘中,吴佳龙,李坤   

  1. (西安电子科技大学 电子工程学院,陕西 西安 710071))
  • 出版日期:2014-11-15 发布日期:2014-11-19
  • 作者简介:刘中(1988—),男,硕士研究生。研究方向:电子设计自动化,嵌入式技术。E-mail:905394698@qq.com

Design and Implementation of a Vending Machine Based on FSM

LIU Zhong,WU Jialong,LI Kun   

  1. (School of Electronic Engineering,Xidian University,Xi'an 710071,China)
  • Online:2014-11-15 Published:2014-11-19

摘要:

设计了一种基于FSM的自动售货机实现方案。设计使用VHDL语言编写各控制模块,充分利用有限状态机描述自动售货机各个执行过程,包括系统初始化、管理员设置、商品选择、确认取消、投币处理、金额统计、货品更新及余额找零等一系列动作。同时,系统还添加了按键编码模块、扫描显示模块及语音提示模块,使得用户操作更加人性化。

关键词: 自动售货机, 有限状态机, FSM, VHDL

Abstract:

This paper presents a method for the implementations of a vending machine based on FSM (Finite State Machine).By using the finite state machine and VHDL,this paper describes the process of vending machines,a series of moves such as system initialization,administrator settings,merchandise selection,confirmation of the cancellation,coin processing,financial statistics,goods updating and changing.Meanwhile,the system also includes a button coding module,scanning display module and voice prompts module,allowing users to operate in a more humane way.

Key words: vending machines;finite state machine;FSM;VHDL

中图分类号: 

  • TP271