保存桌面快捷方式 - - 设为首页 - 手机版
凹丫丫旗下网站:四字成语大全 - 故事大全 - 范文大全
您现在的位置: 范文大全 >> 理工论文 >> 电子通信论文 >> 正文

一种新型的电子点菜系统


(27 downto 24)<=butt_code;

j:=1;

——进入下一个状态循环(语句省略)

end if;

if(butt_code="1011" and j=7) the ——当按下确认键时

j:=0;

staterecode:="01"; ——进入第二次输入确认密码

check<=reset;

end if;

if(staterecode="01")then——确认是第二次输入密码的

状态

if(k=O and savedata(27 downto 24)=butt_code)then

k<=1;

——进入下一状态循环(语句省略)

else

k<=0;

end if;

if (butt_code="1011" and k=7)then

——如果二次密码输入相同,重置语句(语句省略)

dressout<="01100100";

dataout<=savedata;

elsif(butt_code="1011" and k/=7)then

k<=0; ——如果密码不相同,重新输入

ledout<="101";

end if;

end if;

end if;

if(key_valid=`l`andreset=`O`and butt_code/="1001") then

——菜的信息

if(namestate="000"

and butt_code/="1011") then

——接收(语句省略)菜的名字,即0~64,如果输入

的数超过两个,则以最后两位为准

if(namestate="011") then

if(pricestate="000" and butt_code/="1011") then

savedata(27 downto 24)<=butt_code;

pricestate:="001";

ledout<="101";

——循环接收(语句省略)菜的信息,包括口味和价钱,如

果输入的数超过7位,

elsif(pricestate="111" and butt_code="1011") t

《一种新型的电子点菜系统(第4页)》
本文链接地址:http://www.oyaya.net/fanwen/view/177195.html

★温馨提示:你可以返回到 电子通信论文 也可以利用本站页顶的站内搜索功能查找你想要的文章。