JNZ Y73 MOV 56H,#30H MOV 57H,#06H SETB F0 LJMP S_pLAY Y73:
MOV 57H,#06H SETB F0 LJMP S_PLAY Y72:
MOV 56H,#29H ; MOV A,R6 JB ACC.0,Y74 MOV 56H,#30H Y74:
MOV 57H,#06H CLR F0 LJMP S_PLAY Y71:
MOV A,R2 ;R2 MOV R0,A LCALL D_BCD MOV 56H,A MOV 57H,#07H CLR F0
前一个月不是闰月 中为日的值
LJMP S_PLAY RY7:
CJNE R2,#00H,RY71
MOV 56H,#29H ;R2中为0,则为前一个月 MOV A,R5 ;的最后一天 JB ACC.6,RY72 MOV 56H,#30H RY72:
MOV 57H,#07H CLR F0 LJMP S_PLAY RY71:
MOV A,R2 ;R2中为日的值 MOV R0,A LCALL D_BCD MOV 56H,A MOV 57H,#07H SETB F0 LJMP S_PLAY Y8:
CJNE R2,#00H,Y81
LCALL CHECKRE ;查前一个月是否为闰月 CJNE A,#07H,Y82
MOV 56H,#29H ;前一个月是闰月 MOV A,R4 ;R2中为0,则为前一个月
ANL A,#0FH ;的最后一天 JNZ Y83 MOV 56H,#30H MOV 57H,#07H SETB F0 LJMP S_PLAY Y83:
MOV 57H,#07H SETB F0 LJMP S_PLAY Y82:
MOV 56H,#29H ;前一个月不是闰月 MOV A,R5 JB ACC.6,Y84 MOV 56H,#30H Y84:
MOV 57H,#07H CLR F0 LJMP S_PLAY Y81:
MOV A,R2 ;R2中为日的值 DL1MS: MOV R6,#14H DL1:
MOV R7,#19H DL2:
DJNZ R7,DL2 DJNZ R6,DL1 RET
;数据表~~~~~~~~~~~~~~~~~~~`~~ TAB:
DB 35,15H,51H,00H,23,11H,52H,41H,42,12H,65H,00H DB 31,11H,32H,00H,21,42H,52H,21H,39,52H,25H,00H DB 28,25H,04H,71H,48,66H,42H,00H,37,33H,22H,00H DB 25,15H,24H,51H,44,05H,52H,00H,33,22H,65H,00H DB 22,21H,25H,41H,40,24H,52H,00H,30,52H,42H,91H DB 49,55H,05H,00H,38,26H,44H,00H,27,53H,50H,60H DB 46,53H,24H,00H,35,25H,54H,00H,24,41H,52H,41H DB 42,45H,25H,00H,31,24H,52H,00H,21,51H,12H,21H DB 40,55H,11H,00H,28,26H,21H,61H,47,26H,61H,00H DB 36,13H,31H,00H,25,05H,31H,51H,43,12H,54H,00H DB 33,51H,25H,00H,22,42H,25H,31H,41,32H,22H,00H DB 30,55H,02H,71H,49,55H,22H,00H,38,26H,62H,00H DB 27,13H,64H,60H,45,13H,32H,00H,34,12H,55H,00H DB 23,10H,53H,51H,42,22H,45H,00H,31,52H,22H,00H DB 21,52H,44H,21H,40,55H,44H,00H,29,26H,50H,71H DB 47,26H,64H,00H,36,25H,32H,00H,25,23H,32H,50H DB 44,44H,55H,00H,32,24H,45H,00H,22,55H,11H,30H END
附录三:系统使用说明书
如电路原理总图可知,本电路具有年、月、日、周日、时、分、秒、温度和农历功能,
总共由21个LED数码管显示,如下图-a所示。
图-a
日期和时间的修改由3个按键构成。如图-b所示。键1为向右移;键2为加1;键3为减1。
图-b