基于单片机的电梯控制系统毕业论文(完整)概要

模拟电梯控制系统设计

CJNE A,#1,SSX7_1 CLR P3.4

SSX7_1: CJNE A,#2,SSX7_2 SETB P3.4

SSX7_2: CJNE A,#16,SSX7_3 CLR P3.4

SSX7_3: CJNE A,#17,ZHUAN4 MOV 3CH,#0 SETB P3.4 LJMP ZHUAN5 ZHUAN4: LJMP HDJ ZHUAN5: SETB P2.6 SS7_1: INC 3DH MOV A,3DH

CJNE A,#9,ZHUAN4 MOV 3DH,#0 INC CENG SS8: MOV P0,#7FH JB P2.7,SS8_1 INC 3EH MOV A,3EH

CJNE A,#1,SSX8_1 CLR P3.4

SSX8_1: CJNE A,#2,SSX8_2 SETB P3.4

SSX8_2: CJNE A,#16,SSX8_3 CLR P3.4

SSX8_3: CJNE A,#17,ZHUAN4 MOV 3EH,#0 SETB P3.4 SETB P2.7 SS8_1: SETB F0 XIAJIANG: MOV P3,#75H ; MOV A,CENG

CJNE A,#07H,XJ6 JB 00H,XJ6_2 MOV P0,#07H INC 3FH MOV A,3FH

CJNE A,#9,ZHUAN4 MOV 3FH,#0

第- 33 –页 共33 页

运城学院计算机科学与技术系毕业论文

XJ6_2: JB P2.6,XJ6_1 SETB 00H INC 40H MOV A,40H

CJNE A,#1,XJX6_1 CLR P3.4

XJX6_1: CJNE A,#2,XJX6_2 SETB P3.4

XJX6_2: CJNE A,#16,XJX6_3 CLR P3.4

XJX6_3: CJNE A,#17,ZHUAN4 SETB P3.4 MOV 40H,#0 CLR 00H

SETB P2.6 XJ6_1: DEC CENG XJ6: MOV A,CENG CJNE A,#06H,XJ5 JB 01H,XJ5_2 MOV P0,#7DH INC 41H MOV A,41H

CJNE A,#9,ZHUAN6 MOV 41H,#0

XJ5_2: JB P2.5,XJ5_1 SETB 01H INC 42H MOV A,42H

CJNE A,#1,XJX5_1 CLR P3.4

XJX5_1: CJNE A,#2,XJX5_2 SETB P3.4

XJX5_2: CJNE A,#16,XJX5_3 CLR P3.4

XJX5_3: CJNE A,#17,ZHUAN6 SETB P3.4 MOV 42H,#0 CLR 01H

SETB P2.5 XJ5_1: DEC CENG XJ5: MOV A,CENG

第- 34 –页 共33页

模拟电梯控制系统设计

CJNE A,#05H,XJ4 JB 02H,XJ4_2 MOV P0,#6DH INC 43H MOV A,43H

CJNE A,#9,ZHUAN6 MOV 43H,#0

XJ4_2: JB P2.4,XJ4_1 SETB 02H INC 44H MOV A,44H

CJNE A,#1,XJX4_1 CLR P3.4

XJX4_1: CJNE A,#2,XJX4_2 SETB P3.4

XJX4_2: CJNE A,#16,XJX4_3 LJMP ZHUAN7 ZHUAN6: LJMP HDJ ZHUAN7: CLR P3.4

XJX4_3: CJNE A,#17,ZHUAN6 SETB P3.4 MOV 44H,#0 CLR 02H

SETB P2.4 XJ4_1: DEC CENG XJ4: MOV A,CENG CJNE A,#04H,XJ3 JB 03H,XJ3_2 MOV P0,#66H INC 45H MOV A,45H

CJNE A,#9,ZHUAN6 MOV 45H,#0

XJ3_2: JB P2.3,XJ3_1 SETB 03H INC 46H MOV A,46H

CJNE A,#1,XJX3_1 CLR P3.4

XJX3_1: CJNE A,#2,XJX3_2 SETB P3.4

第- 35 –页 共33 页

运城学院计算机科学与技术系毕业论文

XJX3_2: CJNE A,#16,XJX3_3 CLR P3.4

XJX3_3: CJNE A,#17,ZHUAN6 SETB P3.4 MOV 46H,#0 CLR 03H

SETB P2.3 XJ3_1: DEC CENG XJ3: MOV A,CENG CJNE A,#03H,XJ2 JB 04H,XJ2_2 MOV P0,#4FH INC 47H MOV A,47H

CJNE A,#9,HDJ MOV 47H,#0

XJ2_2: JB P2.2,XJ2_1 SETB 04H INC 48H MOV A,48H

CJNE A,#1,XJX2_1 CLR P3.4

XJX2_1: CJNE A,#2,XJX2_2 SETB P3.4

XJX2_2: CJNE A,#16,XJX2_3 CLR P3.4

XJX2_3: CJNE A,#17,HDJ SETB P3.4 MOV 48H,#0 CLR 04H

SETB P2.2 XJ2_1: DEC CENG XJ2: MOV A,CENG CJNE A,#02H,XJ1 JB 05H,XJ1_2 MOV P0,#5BH INC 49H MOV A,49H

CJNE A,#9,HDJ MOV 49H,#0

XJ1_2: JB P2.1,XJ1_1

第- 36 –页 共33页

模拟电梯控制系统设计

SETB 05H INC 4AH MOV A,4AH

CJNE A,#1,XJX1_1 CLR P3.4

XJX1_1: CJNE A,#2,XJX1_2 SETB P3.4

XJX1_2: CJNE A,#16,XJX1_3 CLR P3.4

XJX1_3: CJNE A,#17,HDJ SETB P3.4 MOV 4AH,#0 CLR 05H

SETB P2.1 XJ1_1: DEC CENG XJ1: MOV P0,#06H INC 4BH MOV A,4BH

CJNE A,#9,HDJ MOV 4BH,#0 DEC CENG CLR F0 HDJ: RETI

;;;;;;;;;;;;;;;10MS的延时子程序;;;;;;;;;;;;;;;;;;;; YS10MS: MOV R6,#20 YS10MS_1: MOV R7,#248 NOP

DJNZ R7,$

DJNZ R6,YS10MS_1 RET

;;;;;;;;;;;;;;;;;;;;;;;;结束;;;;;;;;;;;;;;;;;;;;;;;; END

第- 37 –页 共33 页

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4