EDA數(shù)碼管動態(tài)顯示_第1頁
EDA數(shù)碼管動態(tài)顯示_第2頁
EDA數(shù)碼管動態(tài)顯示_第3頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、預(yù)習報告一、實驗?zāi)康?1 了解實驗箱中8 位七段數(shù)碼管顯示模塊的工作原理。2 熟悉VHDL 硬件描述語言及設(shè)計專用數(shù)字集成電路的自頂向下的設(shè)計思想。3 掌握利用CPLD/FPGA 設(shè)計8 位七段數(shù)碼管掃描顯示驅(qū)動電路的方法。二、實驗設(shè)備 1 計算機(配置為:P4 CPU 128M 內(nèi)存); 2 MAX+plus 開發(fā)工具軟件;3 EL 教學實驗箱; 4 萬用表; 5 DS 5022M 型雙蹤數(shù)字示波器; 三、掃描原理為了減少8 位顯示信號的接口連接線,實驗箱中的數(shù)碼顯示采用掃描顯示工作模式。即8 位數(shù)碼管的七段譯碼輸入(a,b,c,d,e,f,g) 是并聯(lián)在一起的,而每一個數(shù)碼管是通過一個 位

2、選擇sel2.0來選定的。sel 與數(shù)碼管之間是一3-8 譯碼的關(guān)系,即sel 為“000” 時,選中第一個數(shù)碼管,sel 為“111” 時,選中第八個數(shù)碼管。四、設(shè)計任務(wù)本實驗要求在給定子模塊程序的基礎(chǔ)上,畫出設(shè)計原理圖。自行編寫頂層模塊程序,完成掃描顯示驅(qū)動電路的設(shè)計,實現(xiàn)在8 個數(shù)碼管上輪流顯示字符0F 的功能。五、設(shè)計要求1要求在Max+plus平臺上用VHDL語言編寫頂層模塊程序,調(diào)試、仿真成功后,下載至ALTER EPM7128SLC84-15 芯片,再利用外接電路實現(xiàn)以上設(shè)計功能。 2掃描驅(qū)動顯示電路有2 個輸入端(clk,reset),14 個輸出端(a,b,c,d,e,f,g

3、) 和(y0,y1,y2,y3,y4,y5,y6,y7),全部為TTL 電平,管腳分配任意,如下圖所示。 3根據(jù)芯片特點,管腳分配時將時鐘信號分配給83 腳,復(fù)位信號分配給1 腳,使能信號分配給84 腳。六、實驗報告要求 1 給出設(shè)計源程序、仿真結(jié)果、說明設(shè)計思路。2 改變輸入時鐘信號的頻率,觀察實驗結(jié)果如何改變。3字符掃描顯示亮度與掃描頻率的關(guān)系,且讓人眼感覺不出閃爍現(xiàn)象的最低掃描頻率是多少?3library ieee;use ieee.std_logic_1164.all;entity disp is port(clk,reset: in std_logic; a,b,c,d,e,f,g:

4、 out std_logic; y: out std_logic_vector(2 downto 0);end disp;architecture beha of disp is component counter16 port(clk,clr: in std_logic; count: out std_logic_vector(3 downto 0); end component; component decdisp port(datain: in std_logic_vector(3 downto 0); a,b,c,d,e,f,g: out std_logic); end compone

5、nt; component yima3 port(x: in std_logic_vector(2 downto 0); y: out std_logic_vector(2 downto 0); end component; signal cont: std_logic_vector(3 downto 0); signal sel3: std_logic_vector(2 downto 0); begin d1:counter16 port map(clk=clk,clr=reset,count=cont); d2:decdisp port map(datain=cont,a=a,b=b,c=

6、c,d=d,e=e,f=f,g=g); d3:yima3 port map(x=cont(2 downto 0),y=y);end beha;library ieee;use ieee.std_logic_1164.all;entity yima3 is port( x: in std_logic_vector(2 downto 0); y: out std_logic_vector(2 downto 0);end yima3 ;architecture beha of yima3 isbegin y=x;end beha;library ieee;use ieee.std_logic_116

7、4.all;entity decdisp is port(datain: in std_logic_vector(3 downto 0); a,b,c,d,e,f,g: out std_logic);end decdisp;architecture beha of decdisp is signal dataout: std_logic_vector(6 downto 0);begin a=dataout(6); b=dataout(5); c=dataout(4); d=dataout(3); e=dataout(2); f=dataout(1); g dataout dataout dat

8、aout dataout dataout dataout dataout dataout dataout dataout dataout dataout dataout dataout dataout dataout dataout=XXXXXXX; end case; end process;end beha;library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity counter16 is port(clk,clr: in std_logic; count: out std_logic_vector(3 downto 0); sel: out std_logic_vector(2 downto 0);end counter16; architecture beha of counter16 issignal cnt: std_logic_vector(3 downto 0);begin process(clk,c

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論