文件名称:hardware_codeaasoftware_code
-
所属分类:
- 标签属性:
- 上传时间:2013-05-24
-
文件大小:6.74kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
自动贩卖机器有一个投币孔,每次只能投入一枚硬币,但可以连续投入多枚硬币。机器能识别的硬币金额为1元,5角和1角。
顾客可选择的饮料价格有1元,1元4角,2元三种,每次只能售出1瓶饮料,购买饮料时先选择饮料价格再投币,当投入的硬币总金额达到或超过饮料价格后,机器发出指示信号并拒收继续投入的硬币,此时如果未选择取消,机器将发出饮料和找零硬币。
顾客投入硬币之后,如果按取消键,机器也将退出所投入的全部金额。
找零或退币时,按由大到小原则处理,即总金额超过1元时,先退出1元硬币,超过5角时,先退5角,不足5角,才退出1角。
这里构建了SOPC系统,挂载上本设计中的硬件代码,满足alavon总线,并通过软硬件一起工作完成自动贩卖机的工作
-Vending machines have a coin slot, you can only put in a coin, but you can put more coins continuously. The machine can identify the amount of $ 1 coins, 5 cents and 10 cents. Customers can choose the beverage prices are 1 yuan, 1 yuan four corners, two yuan three kinds, you can only sell a bottle of drink, buy drinks and then when you first select beverage prices coin, the coin when the total amount invested to meet or exceed beverage prices, the machine refused to give directions signals and continue to invest in coins, then if you do not choose to cancel, the machine will send drinks and give change coins. Customers coin, if press the Cancel button, the machine will also withdraw the full amount invested. Keep the change, or coin, press descending principles, namely the total amount of more than $ 1, the first exit 1 yuan coins, more than 50 cents, the first back 50 cents, less than 50 cents, before exiting a corner. Here constructed SOPC system, mounted on the design of the hardwar
顾客可选择的饮料价格有1元,1元4角,2元三种,每次只能售出1瓶饮料,购买饮料时先选择饮料价格再投币,当投入的硬币总金额达到或超过饮料价格后,机器发出指示信号并拒收继续投入的硬币,此时如果未选择取消,机器将发出饮料和找零硬币。
顾客投入硬币之后,如果按取消键,机器也将退出所投入的全部金额。
找零或退币时,按由大到小原则处理,即总金额超过1元时,先退出1元硬币,超过5角时,先退5角,不足5角,才退出1角。
这里构建了SOPC系统,挂载上本设计中的硬件代码,满足alavon总线,并通过软硬件一起工作完成自动贩卖机的工作
-Vending machines have a coin slot, you can only put in a coin, but you can put more coins continuously. The machine can identify the amount of $ 1 coins, 5 cents and 10 cents. Customers can choose the beverage prices are 1 yuan, 1 yuan four corners, two yuan three kinds, you can only sell a bottle of drink, buy drinks and then when you first select beverage prices coin, the coin when the total amount invested to meet or exceed beverage prices, the machine refused to give directions signals and continue to invest in coins, then if you do not choose to cancel, the machine will send drinks and give change coins. Customers coin, if press the Cancel button, the machine will also withdraw the full amount invested. Keep the change, or coin, press descending principles, namely the total amount of more than $ 1, the first exit 1 yuan coins, more than 50 cents, the first back 50 cents, less than 50 cents, before exiting a corner. Here constructed SOPC system, mounted on the design of the hardwar
(系统自动生成,下载前可以参看下载内容)
下载文件列表
inc/main.c
inc/shseller_s.h
inc
my_ip/display.v
my_ip/h_sell.v
my_ip/h_sell.v.bak
my_ip/h_sell_top.v
my_ip/h_sell_top.v.bak
my_ip/h_sell_top_hw.tcl
my_ip/h_sell_top_hw.tcl~
my_ip
inc/shseller_s.h
inc
my_ip/display.v
my_ip/h_sell.v
my_ip/h_sell.v.bak
my_ip/h_sell_top.v
my_ip/h_sell_top.v.bak
my_ip/h_sell_top_hw.tcl
my_ip/h_sell_top_hw.tcl~
my_ip
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.