阅读:1778回复:8
[贴图]我的咚咚 |
|
1楼#
发布于:2003-05-15 21:41
|
|
|
2楼#
发布于:2003-05-15 21:59
|
|
3楼#
发布于:2003-05-15 23:12
|
|
|
5楼#
发布于:2003-05-16 05:49
sch文件和部分程序
矩阵
密码锁 点阵定时程序: ORG 00H AJMP MAIN ORG 0BH AJMP BRK ORG 30H MAIN: MOV DPTR,#TAB0 MOV TMOD,#02H MOV TH0,#0 MOV TL0,#0 MOV R0,#0 MOV R1,#01 MOV R2,#0 MOV R3,#0 MOV R4,#0 MOV R5,#0 MOV IE,#82H SETB TR0 AJMP LOOP ORG 50H LOOP: MOV A,R0 MOVC A,@A+DPTR MOV P1,A MOV A,R1 MOV SBUF,A JNB TI,$ CLR TI ACALL DEL10MS INC R0 CJNE R0,#8,NEXT MOV R0,#0 MOV R1,#01H AJMP LOOP NEXT: MOV A,R1 RL A MOV R1,A AJMP LOOP BRK: INC R3 CJNE R3,#256,RE INC R4 CJNE R4,#20,RE INC R5 CJNE R5,#01H,LOOP1 MOV DPTR,#TAB1 AJMP KK LOOP1: CJNE R5,#02H,LOOP2 MOV DPTR,#TAB2 AJMP KK LOOP2: CJNE R5,#03H,LOOP3 MOV DPTR,#TAB3 AJMP KK LOOP3: MOV DPTR,#TAB0 MOV R5,#0 KK: MOV R0,#0 MOV R1,#01 MOV R3,#0 MOV R4,#0 MOV 08H,#50H MOV 09H,#0 MOV SP,#09H RE: RETI DEL10MS: MOV R7,#1 D1: MOV R6,#250 DJNZ R6,$ DJNZ R7,D1 RET TAB0: DB 80H,0BEH,0AAH,0AAH,0FFH,2AH,2AH,3EH ; 电 TAB1: DB 08H,09H,0BH,0FDH,49H,09H,08H,00H ; 子 TAB2: DB 98H,0BFH,51H,0B7H,98H,40H,0FAH,09H ; 设 TAB3: DB 08H,08H,0FFH,08H,08H,40H,0FAH,09H ; 计 END 点阵循环程序: ORG 00H AJMP MAIN ORG 0BH AJMP BRK ORG 30H MAIN: MOV DPTR,#TAB MOV 11H,DPH MOV 10H,DPL MOV TMOD,#02H MOV TL0,#0 MOV TH0,#0 MOV R0,#0 MOV R1,#80H MOV R3,#0 MOV R4,#0 MOV R5,#0 MOV IE,#82H SETB TR0 ORG 60H DIS: MOV DPH,11H MOV DPL,10H MOV A,R1 MOV SBUF,A JNB TI,$ CLR TI MOV A,R0 MOVC A,@A+DPTR MOV P1,A ACALL DEL2MS MOV P1,#0 NOP NOP INC R0 CJNE R0,#8,NEXT MOV R0,#0 MOV R1,#80H AJMP DIS NEXT: MOV A,R1 RR A MOV R1,A AJMP DIS DEL2MS: MOV R6,#20 DJNZ R6,$ RET BRK: INC R3 CJNE R3,#70H,RE MOV R3,#0 INC R4 CJNE R4,#3,RE MOV R4,#0 INC R5 MOV A,10H ADD A,R5 MOV 10H,A CJNE A,#0FAH,AGAIN MOV 08H,#0 MOV 09H,#0 MOV SP,#09H RETI AGAIN: MOV R0,#0 MOV R1,#01H MOV R3,#0 MOV R4,#0 MOV R5,#0 MOV DPH,11H MOV DPL,10H MOV 08H,#60H MOV 09H,#0 MOV SP,#09H RE: RETI ORG 0C7H TAB:DB 00H,00H,00H,00H,00H,00H,00H,00H DB 3EH,2AH,2AH,0FFH,0AAH,0AAH,0BEH,80H,00H,00H,00H,00H ; 电 DB 08H,09H,49H,0FDH,0BH,09H,08H,00H,00H,00H,00H,00H ; 子 DB 09H,0FAH,40H,98H,0B7H,51H,0BFH,98H,00H,00H,00H,00H ; 设 DB 09H,0FAH,40H,08H,08H,0FFH,08H,08H,00H,00H,00H,00H,00H,00H,00H END ; 计 |
|
|
6楼#
发布于:2003-06-14 17:23
|
|
|