|
70资产
实现对32组数据的顺次输出及编号(编号依次为01-32,与数据一一对应)的在两个LED显示。
要求:
(1)每组数据输出间隔为2s,32组数据全部输出后,再从第一组输出,如此循环,且编号能在LED显示。
(2)外部输入信号U1如果为0,继续输出;如果为1,编号在LED闪烁显示10s后,继续输出下一组。
已知条件:
(1)32组数据依次为:"00000","00001","00010","00011","00100","00101","00110","00111","01000", "01001","01010","01011","01100","01101","01110","01111","10000","10001","10010","10011","10100","10101","10110","10111","11000","11001","11010","11011","11100","11101","11110","11111。
(2)2s和10s的延时我已用计数器实现。时钟为1MHZ,以延时2s为例,每计数2000000次后,输出Delay_2s为1。延 时10s计数器计数10000000后,输出输出Delay_10s为1。
附:
(1)LED端口大侠们可自行定义;
(3)不知道能不能用到WAIT UNTIL语句?? |
|