User Tag List

Trang 1/2 12 cuốicuối
kết quả từ 1 tới 10 trên 19
Cây cảm ơn1Cảm ơn

Ðề tài: Mạch điều khiển chạy chữ 2 chương trình dùng 89c51

  
  1. #1
    Thành viên mới truongnhh's Avatar
    Tham gia
    Apr 2012
    Bài viết
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mạch điều khiển chạy chữ 2 chương trình dùng 89c51

    tôi đang cần làm mạch chạy chữ dung led ma trận.nhưng vấn đề là chạy 2 chương trinh khac biệt.Tôi dang muốn chạy chữ i love you và my love (2 chương trình khác nhau).hai chương trình này cùng hiển thị trên một dãy led ma trận.chạy chữ i love you trước,sau 3s thì chạy tiếp chương trình thứ 2(my love).Tôi chỉ biết làm chạy được 1 chương trình(1 dòng chữ tooi)chứ hôn là tôi không biết.
    mình dùng ma trận 8x8
    mong tất cả anh e trên diễn đàn giúp đỡ.tôi đang cần gấp.thanks

    CHỦ ĐỀ TƯƠNG TỰ:


  2. #2
    Thành viên mới truongnhh's Avatar
    Tham gia
    Apr 2012
    Bài viết
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ko co ai giup toi a.moi nguoi oi giup toi


  3. #3
    Thành viên tích cực viboyth.haui's Avatar
    Tham gia
    Feb 2012
    Nơi Cư Ngụ
    Điện tử 4K5_Haui
    Bài viết
    300


    Nhóm xã hội



    PCB Designer

    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1 con led matrix 8*8 hiển thị 1 dòng còn khó nữa là đòi chạy 2 dòng,vậy thì nhìn được cái gì,mở rộng led ra mới thấy rõ đc

    vanduc0211@gmail.com

  4. #4
    Thành viên mới truongnhh's Avatar
    Tham gia
    Apr 2012
    Bài viết
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vang.duong nhien la toi se phai mo rong led roi.toi ghep cac matix 8x8 lai ma.nhung ma lap trinh lam sao de cung mot day led matrix do co the hien thi dc 2 chuong trinh khac nhau.vi du toi viet chuong trinh dau tien la i love you,chuong tinh 2 la my love.thi phai viet nhu the nao de chuong trinh 1 chay xong tiep theo lai co chuong trinh 2 chay tren cung day led matrix do .mong ban giup do.tui rat can.thanks


  5. #5
    Thành viên mới truongnhh's Avatar
    Tham gia
    Apr 2012
    Bài viết
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    toi kien thuc con kem mong cac ban chi chi tiet dum.ai co ban cod nao ko


  6. #6
    Thành viên tích cực 01642555134's Avatar
    Tham gia
    Jul 2012
    Bài viết
    626
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)

    giúp đở

    bạn úp đoạn code cho mọi người cùng xem. viết ct 1, rùi viết ct 2, sau đó gọi chúng lên là ok, nhưng ct2 ko dc viết sau dòng end


  7. #7
    Thành viên mới truongnhh's Avatar
    Tham gia
    Apr 2012
    Bài viết
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Click here to enlarge Nguyên văn bởi 01642555134 Click here to enlarge
    bạn úp đoạn code cho mọi người cùng xem. viết ct 1, rùi viết ct 2, sau đó gọi chúng lên là ok, nhưng ct2 ko dc viết sau dòng end
    vang.toi cung biet vax.nhung toi ko biet lam nhu the nao.toi hoi kem lam.mong ban co the chi ro hon cho tui,toi dang can lam.thanks
    ma phan cung 1 chuong trinh co kac voi 2 chuong trinh ko ban


  8. #8
    Thành viên mới truongnhh's Avatar
    Tham gia
    Apr 2012
    Bài viết
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DAY LA BAN COD MOT CHUONG TRINH CUA TOI(CHUONG TRINH 1)




    $mod51
    SCL equ P2.1
    SDA equ P2.0
    RUN_DATA equ 60H
    MOC equ 61H
    BIEN_32 equ 62H
    TIME_BACK equ 63H
    TIME_MOVE EQU 64H

    org 500h


    DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH, 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH, 0FFH,0FFH,0FFH,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EH,0EEH,0F FH,0FFH,0FFH,0FFH
    DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH

    ORG 00H
    ;----------chuong trinh chinh---------------

    ;============= chuong trinh con =================
    MAIN:
    LCALL INIT_SYSTEM


    BACK1:
    MOV RUN_DATA,MOC
    MOV A,RUN_DATA
    MOV TIME_BACK,TIME_MOVE
    ;=====================
    BACK3:
    MOV A,RUN_DATA
    MOVC A,@A+DPTR
    CPL A
    MOV P1,A
    LCALL DELAY
    MOV P1,#0
    ;============
    CLR SCL
    NOP
    NOP
    SETB SCL
    ;============
    INC RUN_DATA
    MOV A,RUN_DATA
    CJNE A,#20FFH,DEM_32_LAN
    MOV RUN_DATA,#0
    DEM_32_LAN:
    INC BIEN_32
    MOV A,BIEN_32
    CJNE A,#64,BACK3
    MOV RUN_DATA,MOC
    MOV BIEN_32,#0
    ;============================
    SETB SDA
    CLR SCL
    NOP
    SETB SCL
    CLR SDA
    ;=============
    DJNZ TIME_BACK,BACK3
    INC MOC
    MOV A,MOC
    CJNE A,#930,thoat
    MOV MOC,#0
    thoat:ljmp back1
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;

    ;=================================
    INIT_SYSTEM:
    MOV DPTR,#500h
    MOV TIME_MOVE,#3;so lan quet chu di lai
    SETB SDA ; START
    CLR SCL
    SETB SCL
    CLR SDA
    MOV RUN_DATA,#1 ; DEFAUL
    MOV MOC,#0
    MOV BIEN_32,#1
    RET
    ;;;;;;;;---------------------------------------------------



    ;=================================
    DELAY:
    mov r6,#200
    de1:nop
    nop
    nop
    djnz r6,de1

    RET
    ;========================


    END



    DAY LA CHUONG TRINH 2 CUA TOI
    $mod51
    SCL equ P2.1
    SDA equ P2.0
    RUN_DATA equ 60H
    MOC equ 61H
    BIEN_32 equ 62H
    TIME_BACK equ 63H
    TIME_MOVE EQU 64H

    org 500h


    DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,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7H,0B7H,0B7H,0CFH,0FFH,80H,0F7H,0F7H,0F8H,0F FH,0E1H,0FEH,0FEH,0E1H,0FFH,0F1H,0EEH,0EEH,0EEH,0F FH,0FFH,0FFH,0FFH
    DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH

    ORG 00H
    ;----------chuong trinh chinh---------------

    ;============= chuong trinh con =================
    MAIN:
    LCALL INIT_SYSTEM


    BACK1:
    MOV RUN_DATA,MOC
    MOV A,RUN_DATA
    MOV TIME_BACK,TIME_MOVE
    ;=====================
    BACK3:
    MOV A,RUN_DATA
    MOVC A,@A+DPTR
    CPL A
    MOV P1,A
    LCALL DELAY
    MOV P1,#0
    ;============
    CLR SCL
    NOP
    NOP
    SETB SCL
    ;============
    INC RUN_DATA
    MOV A,RUN_DATA
    CJNE A,#20FFH,DEM_32_LAN
    MOV RUN_DATA,#0
    DEM_32_LAN:
    INC BIEN_32
    MOV A,BIEN_32
    CJNE A,#64,BACK3
    MOV RUN_DATA,MOC
    MOV BIEN_32,#0
    ;============================
    SETB SDA
    CLR SCL
    NOP
    SETB SCL
    CLR SDA
    ;=============
    DJNZ TIME_BACK,BACK3
    INC MOC
    MOV A,MOC
    CJNE A,#930,thoat
    MOV MOC,#0
    thoat:ljmp back1
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;

    ;=================================
    INIT_SYSTEM:
    MOV DPTR,#500h
    MOV TIME_MOVE,#3;so lan quet chu di lai
    SETB SDA ; START
    CLR SCL
    SETB SCL
    CLR SDA
    MOV RUN_DATA,#1 ; DEFAUL
    MOV MOC,#0
    MOV BIEN_32,#1
    RET
    ;;;;;;;;---------------------------------------------------



    ;=================================
    DELAY:
    mov r6,#200
    de1:nop
    nop
    nop
    djnz r6,de1

    RET
    ;========================


    END

    VAY MUN CHAY 2 CHUONG TRINH NAY THI PHAI LAM NHU THE NAO.TOI MUON CHUONG TRINH 1 CHAY TRUOC MAY GIAY SAU THI CHUONG TRINH 2 LAI CHAY
    MONG MOI NGUOI GIUP DO


  9. #9
    Thành viên mới truongnhh's Avatar
    Tham gia
    Apr 2012
    Bài viết
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tam dung chuong trinh 1,roi so sanh nhu the nao de tat chuong trinh 1 roi lai mo chuong trinh 2,rui cu lap lai nhu the


  10. #10
    Thành viên mới truongnhh's Avatar
    Tham gia
    Apr 2012
    Bài viết
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tui ko bit lam nhu the nao.co ai bit giup toi voi


Trang 1/2 12 cuốicuối

Quyền Sử Dụng Ở Diễn Ðàn

  • Bạn không được gửi luồng mới
  • Bạn không được trả lời bài viết
  • Bạn không được gửi file đính kèm
  • Bạn không được sửa bài viết của mình
  •