完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
if rising_edge (clk) then
s1:=s1+1; s0:=s0+1; end if; sec1<=s1; sec0<=s0; -------------------------- when 211 => RS<='1';--指令 when 212 => RW<='0';--写 when 213 => EN<='0'; when 214 => case sec1 is when "0000" => Data<=X"31"; when "0001" => Data<=X"31"; when "0010" => Data<=X"32"; when "0011" => Data<=X"33";-- when "0100" => Data<=X"34"; when "0101" => Data<=X"35"; when "0110" => Data<=X"36"; when "0111" => Data<=X"37"; when "1000" => Data<=X"38"; when "1001" => Data<=X"39"; when others => null; end case; when 216 => EN<='1'; when 218 => EN<='0'; when 219 => RW<='1'; when 220 => RS<='0'; when 221 => RS<='1';--指令 when 222 => RW<='0';--写 when 223 => EN<='0'; when 224 => case sec0 is when "0000" => Data<=X"30"; when "0001" => Data<=X"31"; when "0010" => Data<=X"32"; when "0011" => Data<=X"33";-- when "0100" => Data<=X"34"; when "0101" => Data<=X"35"; when "0110" => Data<=X"36"; when "0111" => Data<=X"37"; when "1000" => Data<=X"38"; when "1001" => Data<=X"39"; when others => null; end case; when 226 => EN<='1'; when 228 => EN<='0'; when 229 => RW<='1'; when 230 => RS<='0'; ------------------------------------------------ --------------------------------------------- when 500 => Cnt:=210;pLED<='1'; 应有现象00 01 02 03.。。。。。。。。 可真实现象为00 00 00 00 00
|
|
相关推荐
1个回答
|
|
怎么办??怎么办??
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1533 浏览 1 评论
1313 浏览 0 评论
矩阵4x4个按键,如何把识别结果按编号01-16(十进制)显示在两个七段数码管上?
1523 浏览 0 评论
925 浏览 0 评论
2317 浏览 0 评论
1464 浏览 35 评论
5675 浏览 113 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 01:29 , Processed in 0.701789 second(s), Total 76, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号