?? 有人用fpga控制過液晶屏嗎(vhdl).htm
字號:
sel7.className = "search_nav_o";
document.getElementById("sel"+flagid).className = "search_nav_h";
var Keyword = SearchForm.Keyword;
if(Keyword.value == "" || Keyword.value.substring(0,3) =="請輸入"){
SearchForm.Keyword.value = initwords[flagid-1];
}
var numTotal=7;
whichEl1 = eval("con"+ flagid);
whichEl1.style.display = "block";
for(i=1;i<=numTotal;i++){
whichEl = eval("con"+ i);
if(whichEl!=whichEl1) {
whichEl.style.display = "none";
}
}
//else{
//document.getElementById("sel8").className = "search_nav_h";
//}
SearchForm.action = initurl[flagid-1];
//alert(SearchForm.action);
switch(searchActivedItem){
case 1:
if(Keyword.length<4){
alert("搜索IC庫存型號關鍵詞最少要4個字符!");
form.Keyword.focus();
return false;
}
case 2:
if(Keyword.length<3){
alert("搜索關鍵詞最少要3個字符!");
form.Keyword.focus();
return false;
}
}
return true;
}
function WriteTags(Tag) {
//var TagsValue = document.getElementById("Keyword");
document.getElementById("Keyword").value = Tag;
}
function CheckSearch(form) {
var Keyword = form.Keyword.value;
if(Keyword == "" || Keyword.substring(0,3) =="請輸入"){
alert("請填寫搜索關鍵詞!");
form.Keyword.focus();
return false;
}
}
</SCRIPT>
<FORM name=SearchForm onsubmit="return CheckSearch(this)" action=""
method=get>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=10 background=有人用FPGA控制過液晶屏嗎(vhdl).files/0629_03.gif
height=42> </TD>
<TD align=middle background=有人用FPGA控制過液晶屏嗎(vhdl).files/0629_04.gif>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD align=middle>
<DIV class=search_nav_o id=sel1 onclick=doClick(1)>IC供應</DIV>
<DIV class=search_nav_o id=sel2 onclick=doClick(2)>IC求購</DIV>
<DIV class=search_nav_o id=sel3 onclick=doClick(3)>非IC供應</DIV>
<DIV class=search_nav_o id=sel4 onclick=doClick(4)>非IC求購</DIV>
<DIV class=search_nav_o id=sel5 onclick=doClick(5)>電子資訊</DIV>
<DIV class=search_nav_o id=sel6 onclick=doClick(6)>技術資料</DIV>
<DIV class=search_nav_o id=sel7
onclick=doClick(7)>商人論壇</DIV></TD></TR></TBODY></TABLE></TD>
<TD width=10
background=有人用FPGA控制過液晶屏嗎(vhdl).files/0629_08.gif> </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD align=right width="73%" bgColor=#53ade2 height=50><INPUT
id=Keyword
style="BORDER-RIGHT: #0a7ec3 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #0a7ec3 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; BORDER-LEFT: #0a7ec3 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #0a7ec3 1px solid; HEIGHT: 26px"
onfocus="if(this.value.indexOf('請輸入')!=-1)this.value=''" size=80
value=請輸入搜索關鍵詞! name=Keyword></TD>
<TD width="27%" bgColor=#53ade2><INPUT type=image
src="有人用FPGA控制過液晶屏嗎(vhdl).files/0629_14.gif"
name=imageField></TD></TR></TBODY></TABLE>
<TABLE style="MARGIN-BOTTOM: 15px" cellSpacing=0 cellPadding=0
width="100%" border=0>
<TBODY>
<TR>
<TD
style="BORDER-RIGHT: #53ade2 1px solid; BORDER-TOP: #53ade2 1px solid; BORDER-LEFT: #53ade2 1px solid; BORDER-BOTTOM: #53ade2 1px solid; TEXT-ALIGN: center"
height=30>
<DIV id=con1 style="DISPLAY: none"><INPUT id=ICSearchType type=radio
CHECKED value=2 name=ICSearchType>模糊搜索 <INPUT id=ICSearchType
type=radio value=1 name=ICSearchType>精確搜索 </DIV>
<DIV id=con2 style="DISPLAY: none">熱門搜索:<A
href="http://www.dzsc.com/ic-hot/SP3243EEA.html"
target=_blank>SP3243EEA</A> <A
href="http://www.dzsc.com/ic-hot/DS1488N.html"
target=_blank>DS1488N</A> <A
href="http://www.dzsc.com/ic-hot/CS8900A-CQ.html"
target=_blank>CS8900A-CQ</A> <A
href="http://www.dzsc.com/ic-hot/LT1054CS8.html"
target=_blank>LT1054CS8</A> <A
href="http://www.dzsc.com/ic-hot/LT1039CN.html"
target=_blank>LT1039CN</A> <A
href="http://www.dzsc.com/ic-hot/MAX846AEEE.html"
target=_blank>MAX846AEEE</A> <A
href="http://www.dzsc.com/ic-hot/MAX883CSA.html"
target=_blank>MAX883CSA</A> </DIV>
<DIV id=con3 style="DISPLAY: none">熱門非IC搜索:<A
href="http://www.dzsc.com/product/sell_search.html?keyword=三極管">三極管</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=二極管">二極管</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=電容">電容</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=LED">LED</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=繼電器">繼電器</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=晶振">晶振</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=保險絲">保險絲</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=電阻">電阻</A>
</DIV>
<DIV id=con4 style="DISPLAY: none">熱門非IC搜索:<A
href="http://www.dzsc.com/product/sell_search.html?keyword=三極管">三極管</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=二極管">二極管</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=電容">電容</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=LED">LED</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=繼電器">繼電器</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=晶振">晶振</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=保險絲">保險絲</A>
<A
href="http://www.dzsc.com/product/sell_search.html?keyword=電阻">電阻</A>
</DIV>
<DIV id=con5 style="DISPLAY: none">
<TABLE class=margin cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD align=middle><A
href="http://www.dzsc.com.cn/stock9/list/449.html"
target=_blank>449</A> <A
href="http://www.dzsc.com.cn/stock9/list/82.html"
target=_blank>82</A> <A
href="http://www.dzsc.com.cn/stock9/list/334.html"
target=_blank>334</A> <A
href="http://www.dzsc.com.cn/stock9/list/228.html"
target=_blank>228</A> <A
href="http://www.dzsc.com.cn/stock9/list/23.html"
target=_blank>23</A> <A
href="http://www.dzsc.com.cn/stock9/list/44.html"
target=_blank>44</A> <A
href="http://www.dzsc.com.cn/stock9/list/265.html"
target=_blank>265</A> <A
href="http://www.dzsc.com.cn/stock9/list/49.html"
target=_blank>49</A> <A
href="http://www.dzsc.com.cn/stock9/list/256.html"
target=_blank>256</A> <A
href="http://www.dzsc.com.cn/stock9/list/396.html"
target=_blank>396</A> <A
href="http://www.dzsc.com.cn/stock9/list/452.html"
target=_blank>452</A> <A
href="http://www.dzsc.com.cn/stock9/list/154.html"
target=_blank>154</A> <A
href="http://www.dzsc.com.cn/stock9/list/212.html"
target=_blank>212</A> <A
href="http://www.dzsc.com.cn/stock9/list/382.html"
target=_blank>382</A> <A
href="http://www.dzsc.com.cn/stock9/list/2.html"
target=_blank>2</A> <A
href="http://www.dzsc.com.cn/stock9/list/456.html"
target=_blank>456</A> <A
href="http://www.dzsc.com.cn/stock9/list/451.html"
target=_blank>451</A> <A
href="http://www.dzsc.com.cn/stock9/list/87.html"
target=_blank>87</A> <A
href="http://www.dzsc.com.cn/stock9/list/287.html"
target=_blank>287</A> <A
href="http://www.dzsc.com.cn/stock9/list/468.html"
target=_blank>468</A> <A
href="http://www.dzsc.com.cn/stock9/list/72.html"
target=_blank>72</A> <A
href="http://www.dzsc.com.cn/stock9/list/249.html"
target=_blank>249</A> <A
href="http://www.dzsc.com.cn/stock9/list/192.html"
target=_blank>192</A> <A
href="http://www.dzsc.com.cn/stock9/list/243.html"
target=_blank>243</A> <A
href="http://www.dzsc.com.cn/stock9/list/285.html"
target=_blank>285</A> <A
href="http://www.dzsc.com.cn/stock9/list/70.html"
target=_blank>70</A> <A
href="http://www.dzsc.com.cn/stock9/list/16.html"
target=_blank>16</A> <A
href="http://www.dzsc.com.cn/stock9/list/379.html"
target=_blank>379</A> <A
href="http://www.dzsc.com.cn/stock9/list/123.html"
target=_blank>123</A> <A
href="http://www.dzsc.com.cn/stock9/list/485.html"
target=_blank>485</A> <A
href="http://www.dzsc.com.cn/stock9/list/183.html"
target=_blank>183</A> <A
href="http://www.dzsc.com.cn/stock9/list/35.html"
target=_blank>35</A> <A
href="http://www.dzsc.com.cn/stock9/list/281.html"
target=_blank>281</A> <A
href="http://www.dzsc.com.cn/stock9/list/109.html"
target=_blank>109</A> <A
href="http://www.dzsc.com.cn/stock9/list/89.html"
target=_blank>89</A> <A
href="http://www.dzsc.com.cn/stock9/list/396.html"
target=_blank>396</A> <A
href="http://www.dzsc.com.cn/stock9/list/160.html"
target=_blank>160</A> <A
href="http://www.dzsc.com.cn/stock9/list/372.html"
target=_blank>372</A> <A
href="http://www.dzsc.com.cn/stock9/list/265.html"
target=_blank>265</A> <A
href="http://www.dzsc.com.cn/stock9/list/296.html"
target=_blank>296</A> </TD></TR></TBODY></TABLE></DIV>
<DIV id=con6><INPUT id=SearchType onclick=javascript:ChildSelect(1);
type=radio value=1 name=SearchType>技術文章 <INPUT id=SearchType
onclick=javascript:ChildSelect(2); type=radio value=2
name=SearchType>PDF資料 <INPUT id=SearchType
onclick=javascript:ChildSelect(3); type=radio value=3
name=SearchType>IC價格 <INPUT id=SearchType disabled
onclick=javascript:ChildSelect(4); type=radio value=4
name=SearchType>引腳說明 <INPUT id=SearchType
onclick=javascript:ChildSelect(5); type=radio value=5
name=SearchType>電路圖 <INPUT id=SearchType
onclick=javascript:ChildSelect(6); type=radio value=6
name=SearchType>IC替換 <INPUT id=SearchType
onclick=javascript:ChildSelect(7); type=radio value=7
name=SearchType>IC廠商 <INPUT id=SearchType
onclick=javascript:ChildSelect(8); type=radio value=8
name=SearchType>電子辭典 </DIV>
<DIV id=con7><INPUT id=BBSType onclick=javascript:ChildSelect(9);
type=radio value=1 name=sType>作者 <INPUT id=BBSType
onclick=javascript:ChildSelect(10); type=radio CHECKED value=2
name=sType>主題 <INPUT id=BBSType onclick=javascript:ChildSelect(11);
type=radio value=3 name=sType>內容 </DIV></TD></TR></TBODY></TABLE></FORM>
<SCRIPT language=javascript>doClick(6);</SCRIPT>
</TD></TR></TBODY></TABLE>
<TABLE style="MARGIN-BOTTOM: 5px" cellSpacing=0 cellPadding=0 width=900
border=0>
<TBODY>
<TR>
<TD align=right><B><A href="http://www.dzsc.com/ic/hotadd.html"
target=_blank><FONT color=#ff0000>采購元器件好去處--維庫電子市場網推薦</A></FONT></B></TD>
<TR></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=900 border=0>
<TBODY>
<TR>
<TD
style="BORDER-RIGHT: #7bade0 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: #7bade0 1px solid; PADDING-LEFT: 50px; PADDING-BOTTOM: 4px; BORDER-LEFT: #7bade0 1px solid; LINE-HEIGHT: 18px; PADDING-TOP: 5px; BORDER-BOTTOM: #7bade0 1px solid; BACKGROUND-COLOR: #c3dbf3; TEXT-ALIGN: left"
height=25><A href="http://www.dzsc.com/dzbbs/bbs-1.html">技術交流</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-2.html">電路欣賞</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-3.html">工控天地</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-4.html">數字廣電</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-5.html">通信技術</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-6.html">電源技術</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-7.html">測控之家</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-10.html">EMC技術</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-12.html">ARM技術</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-21.html">EDA技術</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-22.html">PCB技術</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-16.html">嵌入式系統</A><BR><A
href="http://www.dzsc.com/dzbbs/bbs-17.html">驅動編程</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-18.html">集成電路</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-23.html">器件替換</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-8.html">模擬技術</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-9.html">新手園地</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-13.html">單 片 機</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-14.html">DSP技術</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-15.html">MCU技術</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-19.html">IC 設計</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-20.html">IC 產業</A> | <A
href="http://www.dzsc.com/dzbbs/bbs-11.html">CAN-bus/DeviceNe</A></TD></TR></TBODY></TABLE><BR>
<TABLE class=margin_10 cellSpacing=0 cellPadding=0 width=900 bgColor=#f1f5fa
border=0>
<TBODY>
<TR>
<TD class=news_til1>
<H1>有人用FPGA控制過液晶屏嗎(vhdl)</H1></TD></TR>
<TR>
<TD class=gray align=middle height=20>來源:21ic 作者:<SPAN
class=blue>cehon</SPAN> 欄目:<A
href="http://www.dzsc.com/dzbbs/bbs-21.html">EDA技術</A></TD></TR>
<TR>
<TD
class=news_con1>有人用FPGA控制過液晶屏嗎(vhdl)<BR>以前用單片機控制過,比較簡單,現在想完全用fpga,翻譯了好長時間,好像c語言簡單的幾句用vhdl就要好多,象什么初始化啊,定位啊,是方法不對還是本身就復雜啊?(液晶本身帶控制器)<BR>看我翻譯的是不是方法不對啊<BR>//以下是用c語言控制lcd初始化程序中的很小的一部分<BR>p_e=p_di=p_rw=0;//開顯示屏<BR>p_csa=p_csb=0;<BR>p_csa=1;P0=0x3f;p_e=1;p_e=0;p_csa=0;<BR>p_csb=1;P0=0x3f;p_e=1;p_e=0;p_csb=0;<BR>--以下是翻譯的vhdl程序<BR>port(clk
:in std_logic;<BR> datalcm:inout std_logic_vector(7
downto
0);--數據口<BR> rwlcm,dilcm,elcm,cs1lcm,cs2lcm:out
std_logic);<BR>end ;<BR>architecture behav of write is<BR>signal
cnt:integer range 0 to 12 :=0;<BR>signal cs :
bit:='0';<BR>begin<BR>process(clk)<BR>begin<BR>if clk'event and clk='1'
then<BR> if cnt=12 then cnt<=0;<BR> else
cnt<=cnt+1;<BR> end if;<BR> if cs='0' then
--寫128×64顯示屏的左半屏<BR> if cnt=0 then
<BR> elcm<='0';rwlcm<='0';cs1lcm<='1';cs2lcm<='0';dilcm<='0';<BR> elsif
cnt=5 then
elcm<='1';datalcm<="00111111";<BR> elsif
cnt=10 then elcm<='0';<BR> elsif cnt=11 then
rwlcm<='1';cs<='1';<BR> end
if;<BR> else --寫128×64顯示屏的右半屏<BR> if
cnt=0 then
<BR> elcm<='0';rwlcm<='0';cs1lcm<='0';cs2lcm<='1';dilcm<='0';<BR> elsif
cnt=5 then
elcm<='1';datalcm<="00111111";<BR> elsif
cnt=10 then elcm<='0';<BR> elsif cnt=11 then
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -