资源描述:
《用DS1302与1602LCD设计的可调式电子日历与时钟.docx》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、单片机原理与应用课程十二用DS1302与1602LCD设计的可调式电子日历与时钟实验小结本文主要针对不含字库的LCD12864进行了时钟和日期的显示,具体的介绍了LCD12864显示程序的设计。同时我们在程序设计时也要善于把程序分解,分解成一个一个的小程序,这对于C程序的应用大有好处。当然通过这个项目的学习,我们也学习到了如何应用字模软件得到我们所要显示的汉字和数字的字模。程序设计Q0000:LJMPQ046E;000002046ELJMPQ03DD;00030203DDQ0006:DB00H,00H;..Q0008:NOP;000800
2、NOP;000900NOP;000A00LJMPQ029A;000B02029AQ000E:CJNER3,#01H,Q001D;000EBB010CMOVA,DPL;0011E582ADDA,R1;001329MOVDPL,A;0014F582MOVA,DPH;0016E583ADDCA,R2;00183AMOVDPH,A;0019F583MOVXA,@DPTR;001BE0RET;001C22Q001D:JNCQ0025;001D5006MOVA,R1;001FE9ADDA,DPL;00202582MOVR0,A;0022F8MOVA,
3、@R0;0023E6RET;002422Q0025:CJNER3,#0FEH,Q002E;0025BBFE06MOVA,R1;0028E9ADDA,DPL;00292582MOVR0,A;002BF8MOVXA,@R0;002CE2RET;002D22Q002E:MOVA,DPL;002EE582ADDA,R1;003029MOVDPL,A;0031F582MOVA,DPH;0033E583ADDCA,R2;00353AMOVDPH,A;0036F583CLRA;0038E4MOVCA,@A+DPTR;003993Q003A:RET;00
4、3A22Q003B:CJNER3,#01H,Q0044;003BBB0106MOVDPL,R1;003E8982MOVDPH,R2;00408A83MOVX@DPTR,A;0042F0RET;004322Q0044:JNCQ0048;00445002MOV@R1,A;0046F7RET;004722Q0048:CJNER3,#0FEH,Q004C;0048BBFE01MOVX@R1,A;004BF3Q004C:RET;004C22Q004D:MOVR0,A;004DF8CJNER3,#01H,Q005E;004EBB010DMOVA,DP
5、L;0051E582ADDA,R1;005329MOVDPL,A;0054F582MOVA,DPH;0056E583ADDCA,R2;00583AMOVDPH,A;0059F583MOVA,R0;005BE8MOVX@DPTR,A;005CF0RET;005D22Q005E:JNCQ0066;005E5006MOVA,R1;0060E9ADDA,DPL;00612582XCHA,R0;0063C8MOV@R0,A;0064F6RET;006522Q0066:CJNER3,#0FEH,Q006E;0066BBFE05MOVA,R1;0069
6、E9ADDA,DPL;006A2582XCHA,R0;006CC8MOVX@R0,A;006DF2Q006E:RET;006E22Q006F:CJNER4,#00H,Q007D;006FBC000BCJNER6,#00H,Q009E;0072BE0029MOVA,R7;0075EFMOVB,R5;00768DF0DIVAB;007884MOVR7,A;0079FFMOVR5,B;007AADF0RET;007C22Q007D:CLRA;007DE4XCHA,R4;007ECCMOVR0,A;007FF8MOVB,#08H;008075F0
7、08Q0083:MOVA,R7;0083EFADDA,R7;00842FMOVR7,A;0085FFMOVA,R6;0086EERLCA;008733MOVR6,A;0088FEMOVA,R4;0089ECRLCA;008A33MOVR4,A;008BFCMOVA,R6;008CEESUBBA,R5;008D9DMOVA,R4;008EECSUBBA,R0;008F98JCQ0097;00904005MOVR4,A;0092FCMOVA,R6;0093EESUBBA,R5;00949DMOVR6,A;0095FEINCR7;00960FQ
8、0097:DJNZB,Q0083;0097D5F0E9CLRA;009AE4XCHA,R6;009BCEMOVR5,A;009CFDRET;009D22Q009E:MOVA,R5;009EED