Thông báo

Collapse
No announcement yet.

Ma trận Led 8x8 (loại 3 màu)

Collapse
X
 
  • Lọc
  • Giờ
  • Show
Clear All
new posts

  • Ma trận Led 8x8 (loại 3 màu)

    các pác ah, mới tham gia diễn đàn, hum nay em sắm dc cái Led ma trận để vọc nhưng ko biết chân cắng nó ra sao! (do lười, hum nay đi chơi 8/3)
    Pác nào có thư viện nguyên lý hay mạch in thì cho em với.

  • #2
    Thư viện gì , lấy thước ra đo chân rồi tự tạo chân cho nó thôi thế là nhanh nhất

    Comment


    • #3
      xin phép mọi người cho e đưa topic này lên ,nhưng mà e cũng muốn hỏi về con led ma trận 8x8 3 màu có sơ đồ chân ntn ạ??!))> và thêm ít h/ảnh nữa a

      Comment


      • #4
        $include (reg52.inc)
        KT EQU 51H
        org 0000h
        ; call chay
        call h2
        call main
        h2: ; tri`nh mo? ma`n
        mov p1, #00h
        mov p0, #0ffh
        mov p2, #0ffh
        mov p3, #0ffh
        call delay
        mov p3, #11100111b
        mov p2, #11100111b
        mov p0, #11100111b
        call delay
        mov p3, #11000011b
        mov p2, #11000011b
        mov p0, #11000011b

        call delay
        mov p3, #10000001b
        mov p2, #10000001b
        mov p0, #10000001b


        call delay
        mov p3, #0b
        mov p2,#0b
        mov p0,#0b
        call delay

        mov p3, #10000001b
        mov p2, #10000001b
        mov p0, #10000001b
        call delay
        mov p3, #11000011b
        mov p2, #11000011b
        mov p0, #11000011b
        call delay

        mov p3, #11100111b
        mov p2, #11100111b
        mov p0, #11100111b
        call delay
        mov p0, #0ffh
        mov p2, #0ffh
        mov p3, #0ffh
        call delay
        call delay
        mov p3, #11100111b
        mov p2, #11100111b
        mov p0, #11100111b
        call delay
        mov p3, #11000011b
        mov p2, #11000011b
        mov p0, #11000011b

        call delay
        mov p3, #10000001b
        mov p2, #10000001b
        mov p0, #10000001b
        call delay
        mov p3, #0b
        mov p2,#0b
        mov p0,#0b
        call delay
        ; ret
        ;================================
        mov p1,#0
        mov p2,#0
        mov p3,#0
        mov p0,#0
        call delay
        mov p3, #00000001b
        mov p2, #00000001b
        mov p0, #00000001b
        call delay
        mov p3, #00000011b
        mov p2, #00000011b
        mov p0, #00000011b
        call delay
        mov p3, #00000111b
        mov p2, #00000111b
        mov p0, #00000111b
        call delay
        mov p3, #00001111b
        mov p2, #00001111b
        mov p0, #00001111b
        call delay
        mov p3, #00011111b
        mov p2, #00011111b
        mov p0, #00011111b
        call delay
        mov p3, #00111111b
        mov p2, #00111111b
        mov p0, #00111111b
        call delay
        mov p3, #01111111b
        mov p2, #01111111b
        mov p0, #01111111b
        call delay
        mov p3, #11111111b
        mov p2, #11111111b
        mov p0, #11111111b
        call delay
        mov p3, #01111111b
        mov p2, #01111111b
        mov p0, #01111111b
        call delay
        mov p3, #00111111b
        mov p2, #00111111b
        mov p0, #00111111b
        call delay
        mov p3, #00011111b
        mov p2, #00011111b
        mov p0, #00011111b
        call delay
        mov p3, #00001111b
        mov p2, #00001111b
        mov p0, #00001111b
        call delay
        mov p3, #00000111b
        mov p2, #00000111b
        mov p0, #00000111b
        call delay
        mov p3, #00000011b
        mov p2, #00000011b
        mov p0, #00000011b
        call delay
        mov p3, #00000001b
        mov p2, #00000001b
        mov p0, #00000001b
        call delay
        mov p1,#0
        mov p2,#0
        mov p3,#0
        mov p0,#0
        call delay
        ret
        ;=================================
        ;CALL MAIN
        MAIN:
        mov DPTR,#CHUKHANH1
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1
        mov DPTR,#CHUKHANH2
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1
        mov DPTR,#CHUKHANH3
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1

        mov DPTR,#CHUKHANH4
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1

        mov DPTR,#CHUKHANH5
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1


        MOV P1,#0FFH
        CALL DELAY
        mov DPTR,#CHUKHANH5
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1
        MOV P1,#0FFH
        CALL DELAY
        mov DPTR,#CHUKHANH5
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1
        MOV P1,#0FFH
        CALL DELAY
        mov DPTR,#CHUKHANH5
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1


        mov DPTR,#CHUD
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1
        mov DPTR,#CHUDH
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1
        mov DPTR,#CHUDHB
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1
        mov DPTR,#CHUDHBK
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV R5,#50
        CALL A1
        call h2
        SJMP CHAY
        A3: INC R3
        KHANH:
        INC R2
        INC R0
        RL A
        MOV R1,A
        CJNE R2,#08,A2
        DJNZ R5,A1
        RET

        ;**********************************************
        CHAY:
        MOV r2,#0 ; DIEU KHIEN COT P2
        MOV R1,#0feH ;DIEU KHIEN HANG P1
        MOV DPTR,#BANG
        MOV R5,#8d ;LAP
        MOV DPTR,#BANG
        MOV R0,#0
        AJMP TIEP2

        TIEP1:

        inc dptr
        inc r0
        mov a,r0
        cjne a,#24,a11
        mov r0,#0
        inc kt
        mov a,kt
        cjne a,#27,a11
        mov kt,#0
        ljmp h2

        ;**************************
        A11:
        MOV R5,#6d ;LAP

        doicho:
        MOV r2,#0d ;RESET LAI COT

        TIEP2: MOV A,R2
        MOVC A,@A+DPTR
        MOV P3,A ;XUAT RA COT 2
        MOV P1,R1 ;RA LENH HANG SANG

        mov a,#8
        add a,r2
        MOVC A,@A+DPTR
        MOV P0,A

        MOV A,#16
        add a,r2
        MOVC A,@A+DPTR
        MOV P2,A
        ACALL DELAY1
        MOV P0,#0H ;CAM SANG COT
        MOV P2,#0H
        MOV P3,#0H
        ACALL DELAY2
        MOV A,r1 ;XOAY HANG
        INC r2
        RL A
        mov r1,a
        CJNE r2,#8d,TIEP2
        djnz r5,doicho
        sjmp TIEP1
        ; RET
        ;***********************************
        DELAY1: MOV R6,#10
        LAP1: MOV R7,#250
        DJNZ R7,$
        DJNZ R6,LAP1
        RET
        ;************************************
        DELAY2: MOV R7,#2
        DJNZ R7,$
        RET
        delay:
        mov r7, #5
        v6a: mov r6, #50
        v5: mov r5, #250
        djnz r5, $
        djnz r6, v5
        djnz r7, v6a
        ret
        ;************************************************* ********
        CHUTHANH1: DB 0H,2H,7EH,7EH,2H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H, 0H,0H,0H,0H,0H,0H,0H,0H
        CHUTHANH2: DB 0H,2H,7EH,7EH,2H,0H,7EH,18H,7EH,0H,0H,0H,0H,0H,0H, 0H,0H,0H,0H,0H,0H,0H,0H,0H
        CHUTHANH3: DB 0H,2H,7EH,7EH,2H,0H,7EH,18H,7EH,0H,7CH,1AH,7CH,0H, 0H,0H,0H,0H,0H,0H,0H,0H,0H,0H
        CHUTHANH4: DB 0H,2H,7EH,7EH,2H,0H,7EH,18H,7EH,0H,7CH,1AH,7CH,0H, 7EH,18H,30H,7EH,0H,0H,0H,0H,0H,0H
        CHUTHANH5: DB 0H,2H,7EH,7EH,2H,0H,7EH,18H,7EH,0H,7CH,1AH,7CH,0H, 7EH,18H,30H,7EH,0H,7EH,18H,7EH,0H,0H
        CHUD: DB 18H,7EH,5AH,44H,38H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H, 0H,0H,0H,0H,0H,0H,0H,0H,0H
        CHUDH: DB 18H,7EH,5AH,44H,38H,42H,7EH,18H,18H,7EH,42H,0H,0H, 0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H
        CHUDHH: DB 18H,7EH,5AH,44H,38H,42H,7EH,18H,18H,7EH,42H,0H,42H ,7EH,18H,18H,7EH,42H,0H,0H,00H,0H,0H,0H
        ;CHUP: DB 0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H ,0H,0H,7EH,12H,12H,0CH
        CHUDHHPB 18H,7EH,5AH,44H,38H,42H,7EH,18H,18H,7EH,42H,0H,42H ,7EH,18H,18H,7EH,42H,0H,42H,7EH,12H,12H,0CH
        BANG:
        DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH, 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH, 0FFH,0FFH,0FFH,0FFH
        DB 0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H ,0H,0H,0H,0H,0H,0H,0H
        DB 3EH,41H,41H,22H,0H,3AH,45H,45H,3AH,0H,7CH,8H,4H,7C H,0H,18H,0A4H,0A4H,78H,0H,4H,3EH,44H,0H ;cty

        DB 0H,9CH,60H,20H,1CH,0H,0H,38H,44H,44H,20H,0H,34H,4A H,4AH,34H,1H,3H,0H,0FCH,24H,24H,18H,0H
        DB 7EH,10H,8H,70H,0H,74H,2AH,2AH,74H,1H,2H,78H,10H,8H ,70H,0H,2H,2H,7EH,2H,2H,0H,7EH,10H
        DB 8H,70H,0H,74H,0H,3AH,55H,55H,0AH,0H,78H,10H,8H,70H ,0H,2H,2H,7EH,2H,2H,0H,7EH,10H,8H
        DB 70H,0H,70H,28H,28H,70H,0H,78H,10H,8H,70H,0H,7EH,10 H,8H,70H,0H,0H,0H,0H,0H,0H,0H,0H
        DB 42H,7EH,18H,66H,42H,0H,0H,7AH,1H,0H,7CH,8H,4H,78H, 0H,7FH,8H,4H,78H,0H,38H,44H,44H,20H ;KINH CHAO QUY KHACH
        DB 0H,7FH,8H,4H,78H,0H,78H,14H,15H,7AH,0H,38H,44H,44H ,38H,0H,18H,24H,24H,0F8H,0H,3CH,40H,40H
        DB 3CH,0H,1CH,0A0H,0A2H,7DH,0H,0H,7FH,18H,24H,42H,0H, 7FH,10H,8H,78H,0H,78H,14H,14H,7AH,1H,30H
        DB 48H,48H,0H,7FH,10H,8H,70H,0H,0H,5EH,0H,0H,0H,0H,0H ,0H,0H,0H,0H,0H,0H,0H,0H,0H

        DB 0H,0H,0H,0H,20H,0B0H,0FCH,0B0H,20H,0h,10H,18H,0FCH ,86H,0F3H,93H,93H,0F3H,86H,0FCH,18H,10H,0H,20H,0B0 H,0FCH,0B0H,20H,0H,0H ;ngoi nha

        DB 0H,3CH,7EH,0C3H,0C3H,42H,24H,0H,81H,0FFH,99H,18H,9 9H,0FFH,81H,0H,1H,1FH,3FH,61H,0C0H,0C0H,61H,3FH,1F H,1H,0H,1H,3H,86H,0F8H,0F8H,86H,3H,1H,0H,81H,0FFH, 0FFH,99H,99H,0C3H,0H,81H,0FFH,86H,1CH,30H,61H,0FFH ,1H ;CHUYEN
        DB 0h,0h,0H,3CH,7EH,0C3H,0C3H,42H,24H,0H,1H,1FH,3FH,6 1H,0C0H,0C0H,61H,3FH,1FH,1H,0H,81H,0FFH,86H,1CH,30 H,61H,0FFH,1H,0H,3CH,7EH,0C3H,81H,91H,0F3H,70H,10H ;CUNG
        DB 0h,0h,0H,3CH,7EH,0C3H,0C3H,42H,24H,0H,0C0H,0F0H,18 H,1EH,19H,1EH,18H,0F0H,0C0H,0H,81H,0FFH,0FFH,91H,1 1H,1FH,0EH ;CAP
        db 0h,0h,0H,1H,3FH,7FH,80H,80H,7FH,3FH,1H,0H,0C0H,0F0 H,18H,1EH,19H,1EH,18H,0F0H,0C0H ;va
        db 0h,0h,0h,0H,2H,3H,81H,0FFH,0FFH,81H,3H,2H,0H,81H,0 FFH,99H,18H,99H,0FFH,81H,0H,81H,0FFH,0FFH,81H,0H,8 1H,0FFH,0FFH,99H,99H,0C3H,0H,2H,3H,81H,0FFH,0FFH,8 1H,3H,2H ;thiet
        db 0h,0h,0H,81H,0FFH,0FFH,99H,34H,63H,0C1H,81H,0H,81H ,0FFH,0FFH,99H,99H,0C3H ;ke
        db 0h,0h, 0H,81H,0FFH,99H,18H,99H,0FFH,81H,0H,81H,0FFH,0FFH, 99H,99H,0C3H ;he
        db 0h,0h,0H,2H,3H,81H,0FFH,0FFH,81H,3H,2H,0H,81H,0FFH ,99H,18H,99H,0FFH,81H,0H,3CH,7EH,81H,81H,7EH,3CH,0 H,81H,0FFH,86H,1CH,30H,61H,0FFH,1H,0H,3CH,7EH,0C3H ,81H,91H,0F3H,70H,10H ;thong
        db 0h,0h,0H,91H,0FFH,0FFH,91H,81H,7EH,3CH,0H,81H,0FFH ,0FFH,81H,0H,81H,0FFH,0FFH,99H,99H,0C3H,0H,81H,0FF H,86H,1CH,30H,61H,0FFH,1H ;dien
        ;DB 0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H ,0H,0H,0H,0H,0H,0H,0H
        ;DB 0H,4H,42H,7FH,40H,0H,62H,51H,49H,66H,0H,0H,22H,49H ,49H,36H,0H,1CH,12H,51H,78H,50H,0H,0H
        ;DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH, 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH, 0FFH,0FFH,0FFH,0FFH


        dB 0h,0h,0h,0h,0CH,12H,21H,42H,84H,42H,21H,12H,0CH,0H ,0H,0H,0CH,12H,21H,42H,84H,42H,21H,12H,0CH,0H,0H,0 H ;trai tim
        DB 0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H,0H ,0H,0H,0H,0H,0H,0H,0H
        DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH, 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH, 0FFH,0FFH,0FFH,0FFH
        DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH, 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH, 0FFH,0FFH,0FFH,0FFH
        ;DB 2H,1H,81H,0FFH,81H,1H,2H,0H,0FFH,8H,8H,0FFH,0H,0FC H,1AH,19H,1AH,0FCH,0H,0FFH,0CH,18H,30H,60H
        ;DB 0C0H,0FFH,0H,18H,0FFH,99H,42H,3CH,0H,0FFH,18H,18H, 0FFH,0H,0FFH,18H,18H,0FFH,0H,0FFH,9H,9H,0EH,0H

        ;DB 81H,0FFH,86H,0CH,18H,30H,18H,0CH,86H,0FFH,81H,0H,8 1H,0FFH,89H,19H,0E6H,80H,1H,1H,0FFH,1H,1H,0H
        ;DB 81H,0FFH,18H,18H,0FFH,81H,0H,0FCH,0AH,9H,0AH,0FCH, 0H,81H,0FFH,6H,0CH,18H,60H,0FFH,81H,0H,81H,0FFH
        ;DB 18H,18H,0FFH,81H,0H,0H,0H,0H,18H,24H,24H,24H,18H,0 H,0H,0H,0H,12H,20H,2CH,20H,12H,0H,0H


        END


        cho minh hoi code nay khi chu chay het roi no khỏnget chay di chay lai dc va minh muon no chay nhanh hon thj` phai lam the nao vay cac ban?cam on cac ban nha!

        Comment


        • #5
          led có nhiều loại, mỗi loại lại có thể khác nhau vài chân. bạn muốn biết loại nào thì nên mua loại đó về, dùng đồng hồ vạn năng để xác định từng chân của nó.
          Nguyên văn bởi hahahi1 Xem bài viết
          xin phép mọi người cho e đưa topic này lên ,nhưng mà e cũng muốn hỏi về con led ma trận 8x8 3 màu có sơ đồ chân ntn ạ??!))> và thêm ít h/ảnh nữa a
          FPT Service bảo hành, sửa chữa dịch vụ UPS, các loại nguồn công suất.
          Mr Xô : Email :
          ĐT : 01674524129

          Comment

          Về tác giả

          Collapse

          Ho Minh Tìm hiểu thêm về Ho Minh

          Bài viết mới nhất

          Collapse

          Đang tải...
          X