?? 并行口直接驅動led顯示.htm
字號:
<P><IMG src="http://blog.21ic.org/images/emot/face8.gif"> <A href="http://www.21ic.com/">21IC </A><IMG src="http://blog.21ic.org/images/emot/face12.gif"> <A href="http://kucun.21ic.com" target=_blank>買片尋價</A></P></DIV></TD></TR></TBODY></TABLE><br> <A title=海濤的筆記 href="blog.asp?name=gooker" target=_blank><IMG style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000" src="uploadfile-/2005611171514135.gif" border=0></A>
<P><A title=技術裸體寫真 href="http://lasy.21ic.org/" target=_blank><IMG style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000" src="uploadfile-/2005660314820.gif" border=0></A></P>
<P><A title=新潮電子 href="blog.asp?name=ywzj21"><IMG style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; WIDTH: 93px; BORDER-TOP-COLOR: #000000; HEIGHT: 31px; BORDER-RIGHT-COLOR: #000000" height=31 src="http://www.cniti.com/biz/img/bizlogo.gif" width=88 border=0></A></P>
<P>[::<A href="blog.asp?name=monisfic" target=_blank>DLG學習手記</A>::]<BR>[::<A href="http://laoshu0902.blogchina.com/index.html" target=_blank>南方的老樹工作室</A>::]<BR>[::<A href="blog.asp?name=lyrical" target=_blank>人在江湖漂</A>::]<BR>[::<A href="blog.asp?name=cxjr" target=_blank>匠人的百寶箱</A>::]<BR>[::<A href="http://spaces.msn.com/members/susansun0804/" target=_blank>Susan的小屋</A>::]<BR>[::<A href="blog.asp?name=songfei002" target=_blank>小飛的筆記</A>::]<BR>[::<A href="http://www.dz863.com/" target=_blank>電子先鋒</A>::]<BR>[::<A href="http://www.mculib.com/" target=_blank><FONT color=#ff0033>三毛電子世界</FONT></A>::]<BR>[::<A href="blog.asp?name=suncilang" target=_blank><FONT color=#ff0000>我的DSP筆記</FONT></A>::]</P>
<P>[::<A href="more.asp?name=gooker&id=660" target=_blank>征集友情連接</A>::]</P></TD></TR></TBODY></TABLE></DIV>
<P align=right><BR> </P></TD>
<TD style="BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid" vAlign=top align=middle width=712 ;BORDER-BOTTOM: black 1px solid><BR><FONT face=宋體 size=2>
<TABLE style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all" cellSpacing=1 cellPadding=3 width="98%" bgColor=#cccccc border=0>
<TBODY>
<TR bgColor=#f8f8f8>
<TD bgColor=#e6e6e6>
<P class=style3 align=left><FONT face=宋體><a href='blog.asp?name=gooker'>首頁(383)</a> <a href=blog.asp?subjectid=106&name=gooker>極酷軟件(26)</a> <a href=blog.asp?subjectid=160&name=gooker>Proteus專欄(7)</a> <a href=blog.asp?subjectid=128&name=gooker>職業生涯(53)</a> <a href=blog.asp?subjectid=107&name=gooker>休閑娛樂(115)</a> <a href=blog.asp?subjectid=104&name=gooker>大史記(7)</a> <a href=blog.asp?subjectid=105&name=gooker>IT氣象站(23)</a> <a href=blog.asp?subjectid=108&name=gooker>技術文章(148)</a> </FONT></P></TD></TR>
<TR bgColor=#ffffff>
<TD bgColor=#ffffff height=0>
<P align=left><SPAN class=style2><FONT face=宋體 size=2 target="_blank"><FONT color=#ff0000>[美文]</FONT> <FONT color=#ff9900>[</FONT><A href="more.asp?name=gooker&id=3839"><FONT color=#ff9900>感受讀書的美妙誘惑</FONT></A><FONT color=#000000><FONT color=#ff9900>]</FONT> </FONT><FONT color=#ff6600>[</FONT><A href="more.asp?name=gooker&id=3842"><FONT color=#ff6600>超越完美</FONT></A><FONT color=#000000><FONT color=#ff6600>]</FONT> </FONT><FONT color=#ff3300>[</FONT><A href="more.asp?name=gooker&id=3776"><FONT color=#ff3300>給我一支煙</FONT></A><FONT color=#000000><FONT color=#ff3300>]</FONT> </FONT><FONT color=#ff6600>[</FONT><A href="more.asp?name=gooker&id=3600"><FONT color=#ff6600>有一種愛經不起等待</FONT></A><FONT color=#000000><FONT color=#ff6600>]</FONT> </FONT><FONT color=#ff9900>[</FONT><A href="more.asp?name=gooker&id=3778"><FONT color=#ff9900>夠堅持,成功終歸是你的</FONT></A><FONT color=#ff9900>]</FONT></FONT></SPAN><SPAN class=style2><FONT face=宋體 size=2><FONT color=#ff0033><FONT color=#000000><BR><FONT color=#ff0000>[推薦]</FONT> <FONT color=#ff0000><A href="more.asp?name=gooker&id=3240"><FONT color=#0099ff>[DX51傳奇]</FONT></A> <FONT color=#0033ff>[</FONT><A href="more.asp?name=gooker&id=1251"><FONT color=#0033ff>單片機應用編程技巧</FONT></A><FONT color=#0033ff>]</FONT> </FONT><FONT color=#3300ff>[</FONT><A href="more.asp?name=gooker&id=1119"><FONT color=#3300ff>程序的書寫規則</FONT></A><FONT color=#3300ff>]</FONT> <FONT color=#0033ff>[</FONT><A href="more.asp?name=gooker&id=1252"><FONT color=#0033ff>一位技術管理人20年的工作經歷和感悟</FONT></A></FONT></FONT><FONT color=#0033ff>]</FONT><BR><FONT color=#ff0000>[教程]</FONT> [<A href="more.asp?name=gooker&id=3168"><FONT color=#0033ff>蝦米是怎樣煉成的</FONT></A>] [<A href="more.asp?name=gooker&id=1526"><FONT color=#0000ff>如何快速掌握一款新的MCU</FONT></A>] [<A href="more.asp?name=gooker&id=1457"><FONT color=#0000ff>開發工程師人生之路</FONT></A>] [<A href="more.asp?name=gooker&id=4067"><FONT color=#0066ff>年輕工程師如何鍛煉成高手的</FONT></A>]</SPAN></P></FONT></TD></TR>
<TR>
<TD id=""> 一個人的成就的大小,最關鍵的是你能否,時刻讓你的心保持平靜。如果你擁有一顆時時刻刻都能使你平靜的心靈,那么在人生的漫漫旅途中你就不會再有迷茫,你會聽到你內心的聲音,會了解自己最需要的是什么!當一個人真正了解自己的人生需要的是什么時,一切都不會成為你成功的障礙,因為你真正的需要它,就象我們需要氧氣一樣!平靜你的心吧,它會讓你找到人生的方向,它會改變你的生活。</TD></TR></TBODY></TABLE><BR>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-1121460651525858";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "003366";
google_color_url = "003366";
google_color_text = "000000";
//--></SCRIPT>
<SCRIPT src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript>
</SCRIPT>
<BR>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-1121460651525858";
google_alternate_ad_url = "http://blog.21ic.org/uploadfile-/2005630185616187.gif";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></SCRIPT>
<SCRIPT src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript>
</SCRIPT>
<META content=海濤的筆記,海濤的博客,blog,C程序,筆記,PIC單片機,中國電子網,休閑,學習,娛樂 name=key><BR>
<STYLE type=text/css>
<!--
.style4 {font-size: 12px}
body,td,th {
font-size: 12px;
}
.style6 {font-size: 12px; color: #999999; }
.style8 {
font-size: 12px;
color: #223355;
font-weight: bold;
}
-->
</STYLE>
<DIV align=right> </DIV>
<TABLE style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all" cellSpacing=1 cellPadding=3 width="98%" bgColor=#cccccc border=0>
<TBODY>
<TR bgColor=#f8f8f8>
<TD vAlign=center bgColor=#e6e6e6><SPAN class=style8><IMG height=16 src="uploadfile-/200562118842686.gif" width=13 align=absMiddle> <a href=blog.asp?name=gooker&subjectid=108>[技術文章]<a href=more.asp?name=gooker&id=5032>I/O并行口直接驅動LED顯示</a></SPAN></TD></TR>
<TR bgColor=#ffffff>
<TD height=0>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD><SPAN class=style4>
<TABLE borderColor=#ffffff cellSpacing=0 width="90%" align=center border=1>
<TBODY>
<TR>
<TD>
<DIV align=center>
<P class=style24>AT89S51單片機試驗及實踐教程之I/O并行口直接驅動LED顯示<BR><BR></P></DIV></TD></TR>
<TR>
<TD>
<P class=style25><STRONG>1. 實驗任務 </STRONG></P>
<P class=style25>如圖 所示, 利用 AT89S51 單片機的 P0 端口的 P0.0 - P0.7 連接到一個共陰數碼管的 a - h 的筆段上,數碼管的公共端接地。在數碼管上循環顯示 0 - 9 數字,時間間隔 0.2 秒。 </P>
<P class=style25><STRONG>2. 電路原理圖 </STRONG></P>
<P class=style25><a href=http://www.tengdamc.com/download/shiyanjc/images/071.jpg target=_blank><IMG height=439 src="http://www.tengdamc.com/download/shiyanjc/images/071.jpg" width=535 border='0' title='點擊在新窗口查看原始圖片' onload='java_script_:if(this.width>300)this.width=300'></a></P>
<P class=style25 align=center>圖 </P>
<P class=style25><STRONG>3. 系統板上硬件連線 </STRONG></P>
<P class=style25>把“單片機系統”區域中的 P0.0/AD0 - P0.7/AD7 端口用 8 芯排線連接到“四路靜態數碼顯示模塊”區域中的任一個數碼管的 a - h 端口上;要求: P0.0/AD0 與 a 相連, P0.1/AD1 與 b 相連, P0.2/AD2 與 c 相連, …… , P0.7/AD7 與 h 相連。 </P>
<P class=style25><STRONG>4. 程序設計內容 </STRONG></P>
<P class=style25>• LED 數碼顯示原理 </P>
<P class=style25>七段 LED 顯示器內部由七個條形發光二極管和一個小圓點發光二極管組成,根據各管的極管的接線形式,可分成共陰極型和共陽極型。 </P>
<P class=style25>LED 數碼管的 g~a 七個發光二極管因加正電壓而發亮,因加零電壓而不以發亮,不同亮暗的組合就能形成不同的字形,這種組合稱之為字形碼,下面給出共陰極的字形碼見表 2 </P>
<TABLE borderColor=#e7e7e7 cellSpacing=0 cellPadding=3 border=1>
<TBODY>
<TR>
<TD class=style25 vAlign=top width=95>
<P>“ 0 ” </P></TD>
<TD class=style25 vAlign=top width=95>
<P>3FH </P></TD>
<TD class=style25 vAlign=top width=95></TD>
<TD class=style25 vAlign=top width=95>
<P>“ 8 ” </P></TD>
<TD class=style25 vAlign=top width=95>
<P>7FH </P></TD>
<TD class=style25 vAlign=top width=95></TD></TR>
<TR>
<TD class=style25 vAlign=top width=95>
<P>“ 1 ” </P></TD>
<TD class=style25 vAlign=top width=95>
<P>06H </P></TD>
<TD class=style25 vAlign=top width=95></TD>
<TD class=style25 vAlign=top width=95>
<P>“ 9 ” </P></TD>
<TD class=style25 vAlign=top width=95>
<P>6FH </P></TD>
<TD class=style25 vAlign=top width=95></TD></TR>
<TR>
<TD class=style25 vAlign=top width=95>
<P>“ 2 ” </P></TD>
<TD class=style25 vAlign=top width=95>
<P>5BH </P></TD>
<TD class=style25 vAlign=top width=95></TD>
<TD class=style25 vAlign=top width=95>
<P>“ A ” </P></TD>
<TD class=style25 vAlign=top width=95>
<P>77H </P></TD>
<TD class=style25 vAlign=top width=95></TD></TR>
<TR>
<TD class=style25 vAlign=top width=95>
<P>“ 3 ” </P></TD>
<TD class=style25 vAlign=top width=95>
<P>4FH </P></TD>
<TD class=style25 vAlign=top width=95></TD>
<TD class=style25 vAlign=top width=95>
<P>“ b ” </P></TD>
<TD class=style25 vAlign=top width=95>
<P>7CH </P></TD>
<TD class=style25 vAlign=top width=95></TD></TR>
<TR>
<TD class=style25 vAlign=top width=95>
<P>“ 4 ” </P></TD>
<TD class=style25 vAlign=top width=95>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -