mọi ng xem em viết cái chuơng trình này nó sai o đâu. em mo phong mà nó chay k tho y muốn gi cả
em dùng at89c51 và dùng ic chốt 74574 em dùng 5 chân của ic thôi. p1 em dung đẻ chốt p2 data
ma.rar
cho em hỏi cái cổng not mình thay bàng ic gi và dem dong thế nào em dung 25con led 5mm cho 1 chân
em dùng at89c51 và dùng ic chốt 74574 em dùng 5 chân của ic thôi. p1 em dung đẻ chốt p2 data
ma.rar
cho em hỏi cái cổng not mình thay bàng ic gi và dem dong thế nào em dung 25con led 5mm cho 1 chân
Code:
;***** P2 LOP***** P3 COT 74574 ***P1 chot ORG 0000H MAIN: MOV DPTR,#HU1 MOV R6,#250 LAP5: MOV R5,#2 LAP4: CLR A MOV R4,#100 ;tao vong lap lu anh LAP3: MOV R1,#0 ; tang bang len 25 ma MOV 30H,#01H MOV R3,#5 ;5 hang cua lop LAP2: MOV 31H,#01H MOV R2,#5 ;5 lop LAP1: MOV P2,30H MOV A,R1 MOVC A,@A+DPTR MOV P3,A MOV P1,31H LCALL DELAY100 ;tao tre 0.25s INC R1 MOV A,31H RL A MOV 31H,A DJNZ R2,LAP1 MOV A,30H RL A MOV 30H,A DJNZ R3,LAP2 DJNZ R4,LAP3 MOV R0,#25 LAP0: INC DPTR ;tang dptr len 25 gia tri DJNZ R0,LAP0 DJNZ R5,LAP4 ; x DJNZ R6,LAP5 ; y x.y=so gia tri JMP MAIN DELAY100: MOV R7,#50 DJNZ R7,$ RET HU1: ;DEM TM DB 00H,00H,10H,10H,00H,00H,10H,00H,00H,00H DB 00H,00H,10H,10H,00H,00H,10H,00H,00H,00H DB 00H,00H,10H,10H,00H,00H,00H,20H,20H,00H DB 00H,20H,00H,00H,00H,00H,00H,20H,20H,00H DB 00H,20H,00H,00H,00H,00H,00H,20H,20H,00H DB 00H,40H,40H,00H,00H,00H,40H,00H,00H,00H DB 00H,40H,40H,00H,00H,00H,40H,00H,00H,00H DB 00H,40H,40H,00H,00H,00H,10H,10H,10H,10H DB 00H,10H,00H,00H,00H,00H,00H,10H,00H,00H DB 00H,00H,00H,10H,00H,00H,10H,10H,10H,10H DB 00H,20H,20H,20H,20H,00H,20H,00H,00H,00H DB 00H,00H,20H,00H,00H,00H,00H,00H,20H,00H BD 00H,20H,20H,20H,20H,00H,00H,10H,00H,00H DB 00H,00H,10H,10H,00H,00H,00H,10H,00H,00H DB 00H,00H,10H,00H,00H,00H,00H,10H,00H,00H DB 00H,00H,20H,00H,00H,00H,00H,20H,20H,00H DB 00H,00H,20H,00H,00H,00H,00H,20H,00H,00H DB 00H,00H,20H,00H,00H,00H,00H,40H,00H,00H DB 00H,00H,40H,40H,00H,00H,00H,40H,00H,00H DB 00H,00H,40H,00H,00H,00H,00H,40H,00H,00H ;BOM DB 00H,00H,20H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,20H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,20H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,20H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,20H,00H,00H DB 00H,70H,70H,70H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,20H,00H,00H DB 00H,70H,70H,70H,00H,F8H,F8H,F8H,F8H,F8H DB 00H,00H,00H,00H,00H,00H,00H,20H,00H,00H DB 00H,70H,70H,70H,00H,F8H,F8H,F8H,F8H,F8H DB F8H,F8H,F8H,F8H,F8H,F8H,F8H,F8H,F8H,F8H DB F8H,F8H,F8H,F8H,F8H,F8H,F8H,F8H,F8H,F8H DB F8H,F8H,F8H,F8H,F8H,F8H,F8H,F8H,F8H,F8H ;SOAY 1 DB F8H,00H,00H,00H,00H,00H,F8H,00H,00H,00H DB 00H,00H,F8H,00H,00H,00H,00H,00H,F8H,00H DB 00H,00H,00H,00H,F8H,00H,00H,F8H,00H,00H DB 00H,00H,F8H,00H,00H,00H,00H,F8H,00H,00H DB 00H,00H,F8H,00H,00H,00H,00H,F8H,00H,00H DB 00H,00H,00H,00H,F8H,00H,00H,00H,F8H,00H DB 00H,00H,F8H,00H,00H,00H,F8H,00H,00H,00H DB F8H,00H,00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,F8H,F8H,F8H,F8H,F8H DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H END
Comment