您好,欢迎访问三七文档
当前位置:首页 > 临时分类 > 单片机60S倒计时汇编语言
单片机60S倒计时汇编语言ORG0000HAJMPMAINORG000BHAJMPINTT0ORG0030HMAIN:MOVR7,#60MOVR6,#00HMOVDPTR,#TABLEMOVTMOD,#01HMOVTL0,#0B0HMOVTH0,#3CH;设置定时器工作方式、初值SETBEASETBET0SETBTR0NEXT:MOVA,R7MOVB,#0AHDIVABSETBP1.3MOVCA,@A+DPTRMOVP0,ACLRP1.4;开启shi位显示ACALLDELAYMOVA,BSETBP1.4MOVCA,@A+DPTRMOVP0,ACLRP1.3;开启ge位显示ACALLDELAYCJNER6,#14H,NEXTMOVR6,#00HDECR7CJNER7,#0FFH,NEXTSJMPMAININTT0:MOVTL0,#0B0H;中断服务程序MOVTH0,#3CHINCR6RETIDELAY:MOVR5,#02H;延时子程序LOOP:MOVR4,#02HDJNZR4,$DJNZR5,LOOPRETTABLE:DB0C0H,0F9H,0A4H,0B0H,99H,92H,82H,0F8H,80H,90HEND
本文标题:单片机60S倒计时汇编语言
链接地址:https://www.777doc.com/doc-8512945 .html