亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? dpjjx21.htm

?? 本單片機(jī)教程是平凡老師花了大量時(shí)間
?? HTM
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">ORG&#9;000BH  ;定時(shí)器0的中斷向量地址</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">AJMP&#9;TIME0&#9;;跳轉(zhuǎn)到真正的定時(shí)器程序處</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">ORG&#9;30H</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">START:</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;P1,#0FFH  ;關(guān)所 燈</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;30H,#00H  ;軟件計(jì)數(shù)器預(yù)清0</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;TMOD,#00000001B ;定時(shí)/計(jì)數(shù)器0工作于方式1</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;TH0,#3CH&#9;</font>&#9;</P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;TL0,#0B0H  ;即數(shù)15536</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">SETB&#9;EA&#9;;開(kāi)總中斷允許</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">SETB&#9;ET0&#9;;開(kāi)定時(shí)/計(jì)數(shù)器0允許</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">SETB&#9;TR0&#9;    ;定時(shí)/計(jì)數(shù)器0開(kāi)始運(yùn)行</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">LOOP:&#9;AJMP&#9;LOOP&#9;;真正工作時(shí),這里可寫(xiě)任意程序</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">TIME0:&#9;&#9;&#9;;定時(shí)器0的中斷處理程序</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">PUSH&#9;ACC</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">PUSH&#9;PSW&#9;;將PSW和ACC推入堆棧保護(hù)</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">INC&#9;30H</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;A,30H</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">CJNE&#9;A,#20,T_RET&#9;;30H單元中的值到了20了嗎?</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">T_L1:&#9;CPL&#9;P1.0&#9;&#9;;到了,取反P10</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;30H,#0               ;清軟件計(jì)數(shù)器</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">T_RET:</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;TH0,#15H</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;TL0,#9FH&#9;;重置定時(shí)常數(shù)</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">POP&#9;PSW</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">POP&#9;ACC</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">RETI</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">END</font></P>
</FONT></TD>
</TR>
</TABLE>

<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2" FACE="宋體" LANG="ZH-CN">先自己分析一下,看看是怎么實(shí)現(xiàn)的?這里采用了軟件計(jì)數(shù)器的概念,思路是這樣的,先用定時(shí)</font><font size="2"><FONT FACE="System" LANG="ZH-CN">/</FONT><FONT FACE="宋體" LANG="ZH-CN">計(jì)數(shù)器</FONT><FONT FACE="System" LANG="ZH-CN">0</FONT><FONT FACE="宋體" LANG="ZH-CN">做一個(gè)</FONT><FONT FACE="System" LANG="ZH-CN">50</FONT><FONT FACE="宋體" LANG="ZH-CN">毫秒的定時(shí)器,定時(shí)是間到了以后并不是立即取反</FONT><FONT FACE="System" LANG="ZH-CN">P10</FONT><FONT FACE="宋體" LANG="ZH-CN">,而是將軟件計(jì)數(shù)器中的值加</FONT><FONT FACE="System" LANG="ZH-CN">1</FONT><FONT FACE="宋體" LANG="ZH-CN">,如果軟件計(jì)數(shù)器計(jì)到了</FONT><FONT FACE="System" LANG="ZH-CN">20</FONT><FONT FACE="宋體" LANG="ZH-CN">,就取反</FONT><FONT FACE="System" LANG="ZH-CN">P10</FONT><FONT FACE="宋體" LANG="ZH-CN">,并清掉軟件計(jì)數(shù)器中的值,否則直接返回,這樣,就變成了</FONT><FONT FACE="System" LANG="ZH-CN">20</FONT><FONT FACE="宋體" LANG="ZH-CN">次定時(shí)中斷才取反一次</FONT><FONT FACE="System" LANG="ZH-CN">P10</FONT><FONT FACE="宋體" LANG="ZH-CN">,因此定時(shí)時(shí)間就延長(zhǎng)了成了</FONT><FONT FACE="System" LANG="ZH-CN">20*50</FONT><FONT FACE="宋體" LANG="ZH-CN">即</FONT><FONT FACE="System" LANG="ZH-CN">1000</FONT></font><font size="2" FACE="宋體" LANG="ZH-CN">毫秒了。</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font size="2" FACE="宋體" LANG="ZH-CN">這個(gè)思路在工程中是非常有用的,有的時(shí)候我們需要若干個(gè)定時(shí)器,可</font><font size="2"><FONT FACE="System" LANG="ZH-CN">51</FONT><FONT FACE="宋體" LANG="ZH-CN">中總共才有</FONT><FONT FACE="System" LANG="ZH-CN">2</FONT><FONT FACE="宋體" LANG="ZH-CN">個(gè),怎么辦呢?其實(shí),只要這幾個(gè)定時(shí)的時(shí)間有一定的公約數(shù),我們就可以用軟件定時(shí)器加以實(shí)現(xiàn),如我要實(shí)現(xiàn)</FONT><FONT FACE="System" LANG="ZH-CN">P10</FONT><FONT FACE="宋體" LANG="ZH-CN">口所接燈按</FONT><FONT FACE="System" LANG="ZH-CN">1S</FONT><FONT FACE="宋體" LANG="ZH-CN">每次,而</FONT><FONT FACE="System" LANG="ZH-CN">P11</FONT><FONT FACE="宋體" LANG="ZH-CN">口所接燈按</FONT><FONT FACE="System" LANG="ZH-CN">2S</FONT><FONT FACE="宋體" LANG="ZH-CN">每次閃爍,怎么實(shí)現(xiàn)呢?對(duì)了我們用兩個(gè)計(jì)數(shù)器,一個(gè)在它計(jì)到</FONT><FONT FACE="System" LANG="ZH-CN">20</FONT><FONT FACE="宋體" LANG="ZH-CN">時(shí),取反</FONT><FONT FACE="System" LANG="ZH-CN">P10</FONT><FONT FACE="宋體" LANG="ZH-CN">,并清零,就如上面所示,另一個(gè)計(jì)到</FONT><FONT FACE="System" LANG="ZH-CN">40</FONT><FONT FACE="宋體" LANG="ZH-CN">取反</FONT><FONT FACE="System" LANG="ZH-CN">P11</FONT><FONT FACE="宋體" LANG="ZH-CN">,然后清</FONT><FONT FACE="System" LANG="ZH-CN">0</FONT></font><font size="2" FACE="宋體" LANG="ZH-CN">,不就行了嗎?這部份的程序如下</font></P>
<TABLE CELLSPACING=0 BORDER=1 CELLPADDING=7 WIDTH=645>
  <TR><TD VALIGN="TOP">
<FONT FACE="宋體" LANG="ZH-CN">
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">ORG&#9;0000H</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">AJMP&#9;START</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">ORG&#9;000BH  ;定時(shí)器0的中斷向量地址</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">AJMP&#9;TIME0&#9;;跳轉(zhuǎn)到真正的定時(shí)器程序處</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">ORG&#9;30H</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">START:</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;P1,#0FFH  ;關(guān)所 燈</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;30H,#00H  ;軟件計(jì)數(shù)器預(yù)清0</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;TMOD,#00000001B ;定時(shí)/計(jì)數(shù)器0工作于方式1</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;TH0,#3CH&#9;</font>&#9;</P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;TL0,#0B0H  ;即數(shù)15536</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">SETB&#9;EA&#9;;開(kāi)總中斷允許</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">SETB&#9;ET0&#9;;開(kāi)定時(shí)/計(jì)數(shù)器0允許</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">SETB&#9;TR0&#9;    ;定時(shí)/計(jì)數(shù)器0開(kāi)始運(yùn)行</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">LOOP:&#9;AJMP&#9;LOOP&#9;;真正工作時(shí),這里可寫(xiě)任意程序</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">TIME0:&#9;&#9;&#9;;定時(shí)器0的中斷處理程序</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">PUSH&#9;ACC</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">PUSH&#9;PSW&#9;;將PSW和ACC推入堆棧保護(hù)</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">INC&#9;30H</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">INC&#9;31H&#9;;兩個(gè)計(jì)數(shù)器都加1</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;A,30H</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">CJNE&#9;A,#20,T_NEXT&#9;;30H單元中的值到了20了嗎?</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">T_L1:&#9;CPL&#9;P1.0&#9;&#9;;到了,取反P10</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;30H,#0               ;清軟件計(jì)數(shù)器</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">T_NEXT:</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;A,31H</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">CJNE&#9;A,#40,T_RET&#9;;31h單元中的值到40了嗎?</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">T_L2:</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">CPL&#9;P1.1</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;31H,#0&#9;&#9;;到了,取反P11,清計(jì)數(shù)器,返回</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">T_RET:</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">MOV&#9;TH0,#15H</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">MOV&#9;TL0,#9FH&#9;;重置定時(shí)常數(shù)</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">POP&#9;PSW</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">POP&#9;ACC</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0">&#9;
<font size="2">RETI</font></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">END</font></FONT></TD>
</TR>
</TABLE>

<FONT FACE="宋體" LANG="ZH-CN">
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><a href="down/Exec061.asm">
<font size="2">程序一下載</font></a><font size="2"> <a href="down/Exec061.hex">代碼下載</a> <a href="down/exec062.asm">程序二下載</a> 
  <a href="down/Exec062.hex">代碼下載</a> <a href="down/exec063.asm">程序三下載</a> <a href="down/Exec063.hex">代碼下載</a> 
  <a href="down/exec064.ASM">程序四下載</a></font><a href="down/Exec064.hex"><font size="2"> 代碼下載</font></a></P>
<P style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font size="2">您能用定時(shí)器的方法實(shí)現(xiàn)前面講的流水燈嗎?試試看。</font></P></FONT></BODY>
</HTML>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产福利不卡视频| 粉嫩aⅴ一区二区三区四区| www亚洲一区| 色噜噜狠狠成人中文综合| 麻豆成人免费电影| 亚洲影院久久精品| 中文字幕av一区二区三区高| 日韩情涩欧美日韩视频| 一本色道a无线码一区v| 高清国产一区二区三区| 免费成人在线网站| 亚洲成人免费在线| 亚洲情趣在线观看| 国产嫩草影院久久久久| 精品sm捆绑视频| 91精品国产免费| 91丨porny丨中文| 国产69精品一区二区亚洲孕妇| 免费成人深夜小野草| 午夜久久久久久久久久一区二区| 亚洲女同ⅹxx女同tv| 国产精品丝袜一区| 久久精品视频免费| 精品国产网站在线观看| 欧美一区二区日韩| 日韩一区二区免费在线电影| 欧美精品18+| 91精品欧美久久久久久动漫| 欧美揉bbbbb揉bbbbb| 欧美亚洲动漫制服丝袜| 91福利小视频| 欧美三级日韩三级| 欧美日韩久久久| 欧美军同video69gay| 欧美日本在线观看| 欧美日韩一区二区电影| 欧美日本一道本| 欧美精品 国产精品| 欧美精品精品一区| 日韩午夜在线观看| 久久先锋影音av| 久久久国产午夜精品| 国产网红主播福利一区二区| 国产日韩av一区| 欧美国产视频在线| 中文字幕一区二区三区不卡| 亚洲色图制服诱惑| 亚洲综合一区二区| 日韩中文欧美在线| 奇米影视7777精品一区二区| 美国av一区二区| 国产伦精品一区二区三区视频青涩| 国产曰批免费观看久久久| 国产成人午夜精品5599| 成人免费三级在线| 91福利区一区二区三区| 91精品午夜视频| 久久一夜天堂av一区二区三区| 国产日本欧美一区二区| 亚洲欧美另类小说视频| 天堂影院一区二区| 国产一区二区精品在线观看| www.色精品| 欧美日韩精品二区第二页| 欧美一级片在线观看| 国产亚洲一二三区| 一区二区三区中文在线| 日韩不卡一区二区| 国产成人精品一区二区三区四区| 99精品欧美一区二区蜜桃免费 | 国产日韩欧美一区二区三区综合| 国产精品你懂的在线欣赏| 亚洲国产日韩a在线播放性色| 青青草精品视频| 懂色av中文一区二区三区| 91视频免费看| 精品剧情v国产在线观看在线| 国产欧美日韩综合| 亚洲国产一区二区在线播放| 久久99精品久久久久久久久久久久| 成人在线综合网站| 欧美日韩成人一区二区| 国产精品美日韩| 天堂成人国产精品一区| 成人国产精品免费观看视频| 欧美三级电影网| 欧美国产日韩一二三区| 天堂成人国产精品一区| 成人在线视频一区| 51精品久久久久久久蜜臀| 国产精品久久久久四虎| 美女视频免费一区| 欧美性受xxxx黑人xyx| 久久精品免视看| 日韩精品1区2区3区| 成人av影院在线| 精品少妇一区二区三区日产乱码| 亚洲色欲色欲www在线观看| 久久精品噜噜噜成人av农村| 在线观看一区不卡| 中文字幕av免费专区久久| 日本一不卡视频| 欧美性猛交xxxx乱大交退制版| 久久久精品国产99久久精品芒果| 五月天网站亚洲| 色婷婷精品久久二区二区蜜臀av| 久久日韩粉嫩一区二区三区 | 国产精品香蕉一区二区三区| 欧美精品一二三| 亚洲老司机在线| av影院午夜一区| 久久婷婷国产综合精品青草| 日韩不卡在线观看日韩不卡视频| 色8久久精品久久久久久蜜| 国产精品天美传媒沈樵| 国产精品99久久久久久似苏梦涵| 日韩一区二区免费在线电影| 视频一区二区欧美| 在线视频你懂得一区| 亚洲人123区| 成人av影视在线观看| 国产亚洲一本大道中文在线| 玖玖九九国产精品| 欧美高清视频www夜色资源网| 亚洲免费在线电影| 不卡的av网站| 中文乱码免费一区二区| 国产乱人伦偷精品视频不卡| 日韩免费视频线观看| 日产国产欧美视频一区精品 | 久久午夜免费电影| 精品写真视频在线观看| 日韩女优av电影| 九九国产精品视频| 欧美一区二区三区人| 日韩高清在线电影| 91精品国产免费| 久久电影网电视剧免费观看| 欧美一级久久久| 久久99精品久久久久久| 26uuu亚洲综合色欧美| 国内精品久久久久影院一蜜桃| 日韩美女视频一区二区在线观看| 另类小说欧美激情| 亚洲精品一区二区精华| 国产曰批免费观看久久久| 国产视频一区二区在线| av一区二区久久| 亚洲与欧洲av电影| 91精品欧美一区二区三区综合在| 免费三级欧美电影| 久久久久久久久久美女| 成人国产精品视频| 亚洲一区在线播放| 日韩一级片在线播放| 国产中文字幕精品| 中文av字幕一区| 欧美最猛性xxxxx直播| 日韩av不卡在线观看| 337p日本欧洲亚洲大胆色噜噜| 成人免费看片app下载| 亚洲免费观看视频| 欧美一区二区视频在线观看| 国产精品主播直播| 一区二区三区在线影院| 欧美疯狂性受xxxxx喷水图片| 九色综合国产一区二区三区| 国产欧美综合色| 色婷婷综合久色| 看国产成人h片视频| 亚洲欧美视频在线观看视频| 91精品国产综合久久久蜜臀图片| 国产精品一区二区久久精品爱涩| 中文字幕乱码久久午夜不卡 | 欧美日韩不卡视频| 国产成人精品一区二区三区网站观看| 中文字幕亚洲在| 日韩一区二区三区精品视频 | 在线观看日韩av先锋影音电影院| 日本伊人色综合网| 国产精品久久三区| 制服.丝袜.亚洲.中文.综合| 国产成人精品亚洲777人妖| 亚洲一区av在线| 国产午夜一区二区三区| 欧美日韩亚洲综合在线 | 国产精品中文有码| 亚洲精品免费在线观看| 精品国产乱码久久久久久蜜臀 | av成人免费在线| 偷偷要91色婷婷| 中文字幕在线观看一区二区| 日韩一级片网站| 欧美亚洲国产一区二区三区va | 丁香网亚洲国际| 偷窥国产亚洲免费视频| 国产精品久久三区| 精品日产卡一卡二卡麻豆| 欧美私模裸体表演在线观看| 风间由美中文字幕在线看视频国产欧美|