基于单片机的定时闹钟设计(18)
发布时间:2021-06-07
发布时间:2021-06-07
INC 21H MOV A,21H
CJNE A,#3CH,GO11 MOV 21H,#00H MOV 32H,#00H MOV 33H,#00H LJMP L0
GO11:MOV B,#0AH DIV AB MOV 32H,B MOV 33H,A LJMP L0
GO12:MOV B,#0AH DIV AB MOV 34H,B MOV 35H,A LJMP L0 L2:JB K4,L0
LCALL XIAOZHEN3 MOV C,25H.0
JC AX
AX:CLR 25H.0 RET
SETATIME:LCALL DISPLAY2 ;调用闹钟设置,闹铃响时的显示程序 N0:LCALL DISPLAY2 JB K3,N1
LCALL XIAOZHEN6 MOV C,25H.0 JC A7
A7:CLR 25H.0 INC 24H MOV A,24H
CJNE A,#24,GO22 MOV 24H,#00H MOV 38H,#00H MOV 39H,#00H LJMP N0
上一篇:UG学习笔记
下一篇:高速铁路无碴轨道的维修与养护技术