好文档 - 专业文书写作范文服务资料分享网站

万年历单片机课程设计报告

天下 分享 时间: 加入收藏 我要投稿 点赞

课程设计报告

POP PSW POP ACC RETI DISP:

PUSH PSW PUSH ACC MOV 23H,R0 DISP99:

MOV R1,#40H MOV R0,#30H MOV R2,#9 DISP1: MOV A,@R0 ANL A,#0FH MOV @R1,A MOV A,@R0 SWAP A ANL A,#0FH INC R1 MOV @R1,A DJNZ R2,DISP2 CALL DISPLAY

15

课程设计报告

MOV R0,23H POP ACC POP PSW RET DISP2: INC R1 INC R0 JMP DISP1 DISPLAY: MOV R1,#40H MOV R5,#19 SETB AAA PLAY: SETB BBB NOP CLR BBB CLR AAA MOV A,@R1 MOV DPTR,#TAB MOVC A,@A+DPTR MOV COM,A CALL DL1MS

16

课程设计报告

MOV COM,#0FFH DJNZ R5,PLAY1 CLR BBB SETB AAA RET PLAY1: INC R1 JMP PLAY TAB:

DB 0C0H,0F9H,0A4H,

0B0H,99H,92H,82H,0F8H,80H,90H,0FFH,0A3H,8EH,0ABH DL1MS: MOV 25H,R7 MOV 24H,R6 MOV R7,#20 DS1: MOV R6,#10 DJNZ R6,$ DJNZ R7,DS1 MOV R7,25H MOV R6,24H RET

17

课程设计报告

START_YEAR EQU 01 CONVERT_YEAR DATA 5CH CONVERT_MONTH DATA 38H CONVERT_DATE DATA 37H TEMP_BYTE1 DATA 57H TEMP_BYTE2 DATA 58H TEMP_BYTE3 DATA 59H TEMP_BYTE4 DATA 5AH TEMP_BYTE5 DATA 5BH CONVERT: MOV A, YEAR MOV TIME_YEAR,A MOV A,MONTH MOV TIME_MONTH,A MOV A,DAY MOV TIME_DATA,A MOV A,TIME_YEAR MOV B,#16 DIV AB

MOV CONVERT_YEAR,B MOV B,#10 MUL AB

18

课程设计报告

ADD A,CONVERT_YEAR MOV CONVERT_YEAR,A MOV A,TIME_MONTH JNB ACC.4,CON_02 CLR ACC.4 ADD A,#10

CON_02:MOV CONVERT_MONTH,A MOV A,TIME_DATA MOV B,#16 DIV AB

MOV CONVERT_DATE,B MOV B,#10 MUL AB

ADD A,CONVERT_DATE MOV CONVERT_DATE,A MOV DPTR,#MONTH_DATA MOV A,CONVERT_YEAR CON_06:CLR C SUBB A,#START_YEAR MOV B,#3 MUL AB ADD A,DPL

19

万年历单片机课程设计报告

课程设计报告POPPSWPOPACCRETIDISP:PUSHPSWPUSHACCMOV23H,R0DISP99:MOVR1,#40HMOVR0,#30HMOVR2,#9DISP1:MOVA,@R0ANLA,#0
推荐度:
点击下载文档文档为doc格式
01m8a2k47f83hrt8bf1m52amw9lhr30087p
领取福利

微信扫码领取福利

微信扫码分享