?? max7219芯片驅動程序----pic18fxx2與c51平臺_蛋蛋_新浪博客.htm
字號:
Max7219_Initial();<BR>void Max7219_Display(unsigned char *p);<BR>void
Max7219_Display_Others(unsigned char t,unsigned char p,unsigned char
dp);<BR>void Max7219_Display_Others_Char(unsigned char *p);<BR></FONT><BR><FONT
color=#0000ff>main函數</FONT></FONT></P>
<P><FONT face=宋體 color=#000000><FONT face=宋體>#include "pic18fxx2.h"<BR>#include
"max7219.h"</FONT></FONT></P>
<P><FONT face=宋體>void main(void)<BR>{<BR> <WBR> unsigned char
co[8]={'h',0xe,'l','l',0,'-',' ','
'},*pp;<BR> <WBR>TRISB=0x0;<BR> <WBR>pp=co;<BR> <WBR>
Max7219_Initial();<BR> <WBR>
while(1)<BR> <WBR>{<BR> <WBR><BR> <WBR>
Max7219_Display_Others_Char(co);<BR> <WBR><BR> <WBR>}<BR> <WBR><BR>}<BR></FONT></P>
<DIV><FONT color=#000000>顯示結果:(proteus軟件模擬)</FONT></DIV>
<DIV><A
href="http://photo.blog.sina.com.cn/showpic.html#blogid=3f84c12d01000b4q&url=http://static6.photo.sina.com.cn/orignal/3f84c12df983ee699e805"
target=_blank><IMG style="WIDTH: 500px; HEIGHT: 333px"
src="MAX7219芯片驅動程序----pic18fxx2與C51平臺_蛋蛋_新浪博客.files/3f84c12df983ee699e805.jpg"
border=0></A></DIV>
<DIV><FONT color=#000000> <WBR> <WBR> <WBR></FONT></DIV></DIV><!-- -->
<DIV class="articleInfo floatLeft">已投稿到: <!--(<a href="http://my2008.sina.com.cn/blog/rule.html" target="_blank">規則</a>)<span class="space12"></span>(<a href="#" onclick="return false;"><span onclick="showMyRecord();">積分</span></a>)<span class="space12"></span>//--><SPAN
class=sort><A href="http://blog.sina.com.cn/lm/114/152/day.html"
target=_blank>排行榜</A></SPAN> </DIV>
<DIV class="articleUtil floatRight"><A>閱讀</A><SPAN class=sub
id=r_3f84c12d01000b4q></SPAN><SPAN class=space>|</SPAN><A
href="http://blog.sina.com.cn/s/blog_3f84c12d01000b4q.html#comment">評論</A><SPAN
class=sub id=c_3f84c12d01000b4q></SPAN><SPAN class=space>|</SPAN><A
id=f_3f84c12d01000b4q
onclick="$articleManage('3f84c12d01000b4q',5);return false;"
href="http://blog.sina.com.cn/s/blog_3f84c12d01000b4q.html#">收藏</A><SPAN
class=sub id=fn_3f84c12d01000b4q></SPAN><SPAN class=space>|</SPAN><A
href="http://blog.sina.com.cn/main_v5/ria/print.html?blog_id=blog_3f84c12d01000b4q"
target=_blank>打印</A><SPAN class=space>|</SPAN><A id=q_3f84c12d01000b4q
onclick="$jubao('3f84c12d01000b4q')" href="javascript:;">舉報</A> </DIV>
<DIV class=CP_j_linedot></DIV>
<DIV class=articleContext>前一篇:<SPAN class=space6></SPAN><A
href="http://blog.sina.com.cn/s/blog_3f84c12d01000b2z.html~type=v5_one&label=rela_prevarticle">LCD驅動問題</A><BR>后一篇:<SPAN
class=space6></SPAN><A
href="http://blog.sina.com.cn/s/blog_3f84c12d01000b70.html~type=v5_one&label=rela_nextarticle">無聊</A></DIV>
<DIV class="sinaPlan SinaAd_hide" id=advertise_bottom></DIV><!-- 內容開始 -->
<DIV class=CP_cmtpost id=CP_cmtpost_cms>
<DIV class=CP_cmtt_d><SPAN
class=floatLeft><STRONG>評論</STRONG> <A
href="http://blog.sina.com.cn/lm/8/2009/0325/105340.html"
target=_blank>重要提示:警惕虛假中獎信息,點擊查看詳情</A><EM><SPAN class=my2008
id=COMMENT_FIRST_HOT></SPAN></EM><A name=comment></A></SPAN><SPAN
class="manage floatRight"><A class=CP_a_fuc
href="http://blog.sina.com.cn/s/blog_3f84c12d01000b4q.html#post">[<CITE>發評論</CITE>]</A></SPAN>
</DIV>
<UL class=CP_lis id=article_comment_list><!-- 循環始 -->
<LI class=CP_litem>評論加載中,請稍候... <!-- 循環終 --></LI></UL>
<DIV class=CP_page id=commentPaging style="DISPLAY: none">
<UL class=CP_pages></UL></DIV><A name=post></A>
<DIV class="CP_cmtt_d marginTop_d1"><SPAN
class=floatLeft><STRONG>發評論</STRONG> <A
href="http://sina.allyes.com/main/adfclick?db=sina&bid=147826,186364,191337&cid=0,0,0&sid=179041&advid=3406&camid=25434&show=ignore&url=http://blog.sina.com.cn/lm/z/mystaff/index.html"
target=_blank>博客有獎征文曬生活第一季</A></SPAN> <SPAN
class="manage floatRight"></SPAN></DIV>
<DIV class=CP_cmt_main>
<DIV class=CP_cmt_line1>
<UL class="CP_cmt_info floatLeft" id=comment_wel style="DISPLAY: none">
<LI class=CP_cmt_nm_d id=comment_wel2 style="DISPLAY: none">用戶昵稱:</LI></UL>
<UL class="CP_cmt_int_d floatRight">
<LI class=CP_cmt_int_img><A class="" onclick="return false;"
href="http://blog.sina.com.cn/s/blog_3f84c12d01000b4q.html#"><IMG
class="CP_i CP_i_ins_smi" title="" alt=""
src="MAX7219芯片驅動程序----pic18fxx2與C51平臺_蛋蛋_新浪博客.files/CP_i.gif"
align=absMiddle><CITE id=article_comment_insertSmile>插入表情</CITE></A>
</LI></UL></DIV>
<P class=CP_cmtxt_d><TEXTAREA class=commentArea id=commentArea></TEXTAREA></P>
<UL class=CP_cmtpf>
<LI class=CP_cmtnm>登錄名:<INPUT id=login_name>
<LI class=CP_cmtpw>密碼:<INPUT id=login_pass type=password>
<LI><A href="http://login.sina.com.cn/getpass.html" target=_blank>找回密碼</A>
<LI><A href="http://login.sina.com.cn/hd/reg.php?entry=shequ"
target=_blank>注冊</A>
<LI class=CP_cmtnm id=comment_anon
style="DISPLAY: none">昵 稱:<INPUT id=comment_anonyous>
<LI class=CP_cmt_any><LABEL><INPUT id=anonymity type=checkbox>匿名評論</LABEL>
</LI></UL>
<P class=CP_cmtvc><EM>驗證碼:</EM><INPUT class=checkwd id=login_check
maxLength=4><IMG id=comment_check_img alt=看不清楚數字嗎?點擊這里再試試。
src="MAX7219芯片驅動程序----pic18fxx2與C51平臺_蛋蛋_新浪博客.files/checkwd_image.png"
align=absMiddle border=0><SPAN id=audioCheckCont><A id=comment_get_vcode
onclick="return false;"
href="http://blog.sina.com.cn/s/blog_3f84c12d01000b4q.html#">收聽驗證碼</A></SPAN></P>
<P class=CP_cmtsub><A class="CP_a_btn CP_a_btn14 CP_a_btnsub"
onclick="return false;"
href="http://blog.sina.com.cn/s/blog_3f84c12d01000b4q.html#"><CITE
id=comment_post_btn>發評論</CITE><INPUT type=submit></A></P>
<P class="CP_cmtresv CP_txtc">以上網友發言只代表其個人觀點,不代表新浪網的觀點或立場。</P></DIV></DIV><!-- 內容結束 --></DIV></DIV>
<DIV class=componentBottom></DIV></DIV></DIV></DIV>
<DIV class="gap floatLeft"></DIV>
<DIV class="column_1 floatLeft">
<DIV class=components210 id=column_1>
<DIV id=adps000001></DIV>
<DIV class=component id=module_903 load_style="1">
<DIV class=componentBar><SPAN class=title>相關博文</SPAN> </DIV>
<DIV class=componentContent><!-- 內容開始 -->
<DIV class=nodata2>讀取中...</DIV><!-- 內容結束 --></DIV>
<DIV class=componentBottom></DIV></DIV>
<DIV class=component id=module_904 load_style="1">
<DIV class=componentBar><SPAN class=title>推薦博文</SPAN> </DIV>
<DIV class=componentContent><!-- 內容開始 -->
<DIV class=nodata2>讀取中...</DIV><!-- 內容結束 --></DIV>
<DIV class=componentBottom></DIV></DIV>
<DIV class=component id=module_47 style="DISPLAY: none" load_style="1">
<DIV class=componentBar><SPAN class="title floatLeft">誰看過這篇博文</SPAN> </DIV>
<DIV class=componentContent><!-- 內容開始 -->
<DIV class=nodata2>讀取中...</DIV><!-- 內容結束 --></DIV>
<DIV class=componentBottom></DIV></DIV></DIV></DIV>
<DIV class=clear></DIV></DIV>
<SCRIPT src="MAX7219芯片驅動程序----pic18fxx2與C51平臺_蛋蛋_新浪博客.files/sina_blog_foot.js"
type=text/javascript charset=utf-8></SCRIPT>
</DIV><SPAN style="DISPLAY: none" expara=""
url="http://blog.sina.com.cn/s/blog_3f84c12d01000b4q.html"
key="3f84c12d01000b4q" pid="1" name="pvcounter"></SPAN>
<SCRIPT id=PVCOUNTER_FORIE type=text/javascript></SCRIPT>
<IFRAME id=webIM_Conn_Iframe
style="FILTER: alpha(opacity=0); LEFT: 1px; WIDTH: 1px; POSITION: absolute; TOP: 1px; HEIGHT: 1px; moz-opacity: 0"
src="about:blank"></IFRAME>
<DIV id=webIM_Conn_Connect></DIV>
<SCRIPT>var __sayon_webim_msg_pop__ = false;</SCRIPT>
<SCRIPT
src="MAX7219芯片驅動程序----pic18fxx2與C51平臺_蛋蛋_新浪博客.files/webim.compressed.js"></SCRIPT>
<SCRIPT type=text/javascript>loadResource();</SCRIPT>
<SCRIPT type=text/javascript>renderPage();</SCRIPT>
<SCRIPT type=text/javascript>
<!--
SinaSysTray.pro_init();
//-->
</SCRIPT>
<SCRIPT type=text/javascript>
// 登陸后輸出登陸者的UID
if($UID != null){
webIM($UID);
}
</SCRIPT>
<SCRIPT type=text/javascript>
if($UID != null && $UID != scope.$uid){
dwScript({url:"http://footprint.cws.api.sina.com.cn/add.php?pid=1&uid=" + scope.$uid + (typeof scope.$articleid != "undefined" ? "&subid=" + scope.$articleid : "") + "&varname=addNewVisitor"}); }
</SCRIPT>
<SCRIPT src="MAX7219芯片驅動程序----pic18fxx2與C51平臺_蛋蛋_新浪博客.files/pvcounter.js"
type=text/javascript></SCRIPT>
<SCRIPT src="MAX7219芯片驅動程序----pic18fxx2與C51平臺_蛋蛋_新浪博客.files/680.js"
type=text/javascript></SCRIPT>
<!-- SUDA_CODE_START -->
<SCRIPT src="MAX7219芯片驅動程序----pic18fxx2與C51平臺_蛋蛋_新浪博客.files/suda_s_v851c.js"
type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
//<!--
try{
var config_pic = config?(config.common?((config.common.head || config.common.head)?((config.common.head.usepic || config.common.bg.usepic)?((config.common.head.usepic=='1')||(config.common.bg.usepic=='1')?1:0):0):0):0):0;
_S_pSt(_S_PID_,config.common.t,config.common.r+","+config_pic);
}catch(e){}
//-->
</SCRIPT>
<!-- SUDA_CODE_END --><!-- START WRating v1.0 -->
<SCRIPT src="MAX7219芯片驅動程序----pic18fxx2與C51平臺_蛋蛋_新浪博客.files/a1.js"
type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
try{
var vjAcc="860010-0328010000";
var wrUrl="http://sina.wrating.com/";
vjTrack("");
}catch(e){};
</SCRIPT>
<NOSCRIPT><IMG style="DISPLAY: none" height=1
src="MAX7219芯片驅動程序----pic18fxx2與C51平臺_蛋蛋_新浪博客.files/a.gif" width=1></NOSCRIPT> <!-- END WRating v1.0 --><!-- SSO_CODE_START -->
<SCRIPT language=JavaScript>
<!--
if($UID != null){
document.write("<scr" + "ipt charset='utf-8' src='http://image2.sina.com.cn/unipro/js/ssologin.js'></scr" + "ipt>");
}
//-->
</SCRIPT>
<!-- SSO_CODE_END --></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -