【正文】
字,所以數(shù)碼管顯示時仍然要分高低位分別顯示。 then if s1=5 then s1=0。139。 關鍵程序: if clk39。 ⑥ 當 p2p1p0 為“ 101”時, 時 低位置數(shù)。設計上的創(chuàng)新會酌情加分,實現(xiàn)上的偏離會酌情扣分。 ,實驗操作和實驗報告占 50%,本次作業(yè)考核占 50%。 ⑦ 當 p2p1p0 為“ 110”時, 時高 位置數(shù)。event and clk=39。 進位 else s0=s0+1。 c1=39。對于如何用兩個數(shù)碼管顯示著 24 個數(shù),用 分段的方法 解決 。 end process。 第 10 種狀態(tài),顯示時與分之間的短線。 use 。 進位信號 signal w:std_logic_vector(2 downto 0)。139。 then if s1=5 then s1=0。 then if en=39。event and c2=39。 end process。 end process。139。 sel=w。 。 0 when 1=d=0000110。 else w=w+1。 when 0001=num=1。event and c3=39。 then if en=39。 then if m0=9 then m0=0。139。 c0=39。 begin if clk39。 use 。 when 111=n=h1。 時 高位h1 時低 位h0 — 分 高位m1 分低 位m0 — 秒高位s1 秒低位s0 關鍵程序: process(clk,w) is begin if clk39。event and c3=39。 進位 else s1=s1+1。039。 then count:=count+1。event and t=39。可采用數(shù)碼管或液晶顯示,最好設計出個性化顯示界面。 48 分,頻率分段設置 +3 分,頻率微調(diào) +5 分,頻率范圍酌情加分。 ④ 當 p2p1p0 為“ 011”時, 分 低位置數(shù)?;?VHDL 語言的電子表設計 3 程序中對 clk 進行 512 分頻,所以需要一個相近的脈沖,試驗箱上的 CLK4 的頻率范圍為 625KHz~,通過跳線帽選擇可以調(diào)出 624Hz 的頻率。 then if s0=9 then s0=0。 then if en=39。這里不再贅述。h0=h20。 when 011=n=m0。 覺得自己還是思維方式太狹窄,解決問題的方法太單一,以后要擴展思維,一條路行不通就換另一種方法,也許會更簡單。 數(shù)碼管顯示值 signal s0,s1,m0,m1,h0,h1:integer range 0 to 10。039。139。 分低位 mm0:process(c1) is begin if c139。 end if。 and p=100 then m1=num。h0=h20。 end process。 when others=null。 end case。 3 when 4=d=1100110。 case w is when 000=n=s0。 when 0100=num=4。 else h=h+1。 c3=39。 進位 else m0=m0+1。039。 elsif en=39。 then count:=count+1。 置數(shù)開關 p:in std_logic_vector(2 downto 0)。 end process。 then if w=111 then w=000。 else h=h+1。 end if。139。 秒是 60 進制的, 可以用一個十進制計數(shù)器和一個六進制計數(shù)器實現(xiàn)。039。要讓結果顯示出來,則用七段式數(shù)碼管輸出顯示計數(shù)值。 注意事項: ,采用標準的作業(yè)考核類 封面, A4 打印。 ① 當 p2p1p0 為“ 000”時,不選擇任何位,此時電子表只是停止計數(shù),不置數(shù)。 end if。139。 基于 VHDL 語言的電子表設計 4 秒高位