实验5 数码管显示设计2015.ppt

实验5 数码管显示设计2015

表2-5-1 数码管显示编码 8位数码动态扫描显示电路 四.实验方案 观察模式5电路,发现8位数码管的段选线是连在一起的,同时有8个位选线,因此我们只能采用动态扫描的显示形式。 【例2-5-1】 library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity scan is port( clk:in std_logic; --动态扫描频率 seg:out std_logic_vector(6 downto 0); --段信号控制输出 dig:out std_logic_vector(7 downto 0)); --位控制信号输出 end; architecture one of scan is signal ain: integer range 0 to 15; signal abc: std_logic_vector(2 downto 0); begin p0:process(clk) begin if clk’event and clk=’1’ then abc=abc+1; --a

文档评论(0)

1亿VIP精品文档

相关文档