欢迎来到天天文库
浏览记录
ID:53962929
大小:477.50 KB
页数:6页
时间:2020-04-11
《单片机定时器计数器应用实验.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、ORG0000HMAIN:MOVTMOD,#02HMOVTH0,#9CHMOVTL0,#9CHSETBTR0LOOP0:JBCTF0,LOOP1AJMPLOOP0LOOP1:CPLP1.0AJMPLOOP0ENDORG0000HSTART:LJMPMAINORG000BHLJMPLOOP1ORG0100HMAIN:MOVTMOD,#02HMOVTH0,#88HMOVTL0,#88HSETBEASETBET0LOOP:SETBTR0HERE:SJMPHERELOOP1:CPLP1.0RETIORG0000HMOVTMOD,#20HMOVIE,#00HMOVTH1
2、,#38HMOVTL1,#38HLOOP4:MOVTH0,#0F6HMOVTL0,#13HSETBTR0CLRTR1CPLP1.0LOOP0:JBCTF0,LOOP1AJMPLOOP0LOOP1:SETBTR1CLRTR0CPLP1.0LOOP5:JBCTF1,LOOP4AJMPLOOP5ENDORG0000HMOVIE,#00HMOVTMOD,#02HMOVTH0,#38HMOVTL0,#38HLOOP1:MOVTH1,#0F0HMOVTL1,#0CHSETBTR0SETBTR1LOOP3:JBCTF0,LOOP0AJMPLOOP3LOOP0:CLRTR0C
3、PLP1.0LOOP4:JBCTF1,LOOP5AJMPLOOP4LOOP5:CLRTR1CPLP1.0LJMPLOOP1ENDORG0000HMOVSP,#2FHMOVIE,#00HMOVTMOD,#20HMOVTH1,#9CHMOVTL1,#9CHSETBTR1LOOP:JNBTF1,LOOPLOOP1:INCACLRTF1CJNEA,#02,LOOP2CPLP1.0LOOP2:CJNEA,#05,LOOPCPLP1.0CLRALJMPLOOPEND
此文档下载收益归作者所有