freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

fpga控制的ps2接口電路設(shè)計(jì)-資料下載頁(yè)

2024-12-06 01:38本頁(yè)面

【導(dǎo)讀】摘要:PS2作為鍵盤(pán)接口至今仍在廣泛使用。本文論述了用FPGA控制PS2的設(shè)計(jì)思想。通過(guò)分析,本次設(shè)計(jì)需要分四部分實(shí)現(xiàn):2.掃描碼和ASCII碼顯示在LED液晶上。PS2鍵盤(pán)接口是6芯的插頭,各插頭定義如下:。只有1(數(shù)據(jù))和5(時(shí)鐘)。首先我們來(lái)定義幾個(gè)端口。這8位輸出我們用DATASCAN來(lái)表示。另外再對(duì)整個(gè)系統(tǒng)設(shè)置一個(gè)復(fù)位信。的12個(gè)下降沿到來(lái)時(shí),TMPDATA就接收到了鍵盤(pán)發(fā)出的全部12位數(shù)據(jù)。中斷,作為掃描碼轉(zhuǎn)換為ASCII碼的使能信號(hào)。鍵按下,按住或者釋放,鍵盤(pán)將會(huì)發(fā)送掃描碼的信息包。斷碼和通碼有一定的聯(lián)系,多數(shù)第二套斷碼有兩字節(jié)長(zhǎng)。鍵盤(pán)每個(gè)按鍵被分配了唯一的通碼和斷碼。有三套標(biāo)準(zhǔn)的掃描碼集,所有現(xiàn)代的鍵盤(pán)默認(rèn)使用第二套掃描碼。即Shift和Capslock這兩個(gè)鍵有。的特殊組合鍵的狀態(tài),以便后來(lái)的ASCII碼轉(zhuǎn)換。當(dāng)這些工作完成以后,再判斷Shifted或Capslocked的值。的值加上十六進(jìn)制的“20”。當(dāng)然,這些大小寫(xiě)轉(zhuǎn)換是針對(duì)ASCII值在“A”和?!癮”之間而言的。另外,有些鍵上面有上下兩排字符,當(dāng)Shift鍵按下時(shí)用到

  

【正文】 case data_ascii_h is when 0000 =c=x30。 when 0001 =c=x31。 when 0010 =c=x32。 when 0011 =c=x33。 when 0100 =c=x34。 when 0101 =c=x35。 when 0110 =c=x36。 when 0111 =c=x37。 when 1000 =c=x38。 when 1001 =c=x39。 when 1010 =c=x41。 16 when 1011 =c=x42。 when 1100 =c=x43。 when 1101 =c=x44。 when 1110 =c=x45。 when 1111 =c=x46。 when others=null。 end case。 case data_ascii_l is when 0000 =d=x30。 when 0001 =d=x31。 when 0010 =d=x32。 when 0011 =d=x33。 when 0100 =d=x34。 when 0101 =d=x35。 when 0110 =d=x36。 when 0111 =d=x37。 when 1000 =d=x38。 when 1001 =d=x39。 when 1010 =d=x41。 when 1011 =d=x42。 when 1100 =d=x43。 when 1101 =d=x44。 when 1110 =d=x45。 when 1111 =d=x46。 when others=null。 end case。 end process。 process(clk) begin if (clk39。event and clk=39。139。) then if tmp=499999 then tmp=0。 cp50=not cp50。 else tmp=tmp+1。 end if。 end if。 end process。 process(cp50) begin if cp5039。event and cp50=39。139。 then if t_disp=28 then t_disp=0。 17 else t_disp=t_disp+1。 end if。 end if。 if cp5039。event and cp50=39。139。 then if t_init=3 then t_init=0。 else t_init=t_init+1。 end if。 end if。 end process。 process(enabl,t_disp,t_init) begin if (enabl=39。139。) then if t_init=0 then if cp50=39。039。 then rs=39。039。rw=39。039。data=x0e。 end if。 elsif t_init=1 then if cp50=39。039。 then rs=39。039。rw=39。039。data=x06。 end if。 elsif t_init=2 then if cp50=39。039。 then rs=39。039。rw=39。039。data=x01。 end if。 elsif t_init=3 then if cp50=39。039。 then rs=39。039。rw=39。039。data=x38。 end if。 end if。 else if t_disp=0 then if cp50=39。039。 then rs=39。039。rw=39。039。data=x80。 end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x53。S end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x63。c 18 end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x61。a end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x6E。n end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x63。c end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x6F。o end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x64。d end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x65。e end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x3A。: end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=a。 end if。 elsif t_disp=2 then if cp50=39。039。 then rs=39。139。rw=39。039。data=b。 end if。 elsif t_disp=17 then if cp50=39。039。 then rs=39。039。rw=39。039。data=xc0。line2 end if。 elsif t_disp=1 then if cp50=39。039。 then 19 rs=39。139。rw=39。039。data=x41。A end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x53。S end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x43。C end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x49。I end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x49。I end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x63。c end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x6F。o end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x64。d end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x65。e end if。 elsif t_disp=1 then if cp50=39。039。 then rs=39。139。rw=39。039。data=x3A。: end if。 elsif t_disp=18 then if cp50=39。039。 then rs=39。139。rw=39。039。data=c。 end if。 elsif t_disp=19 then if cp50=39。039。 then 20 rs=39。139。rw=39。039。data=d。 end if。 end if。 end if。 end process。 en=cp50。 end。
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1