Kênh Tên Miền chuyên cung cấp tên miền đẹp, giá rẻ! Hãy liên hệ kỹ thuật: 0914205579 - Kinh doanh: 0912191357 để được tư vấn, hướng dẫn miễn phí, Cảm ơn quý khách đã ủng hộ trong thời gian qua!
Friday, September 6, 2013

Biển Quảng Cáo vẫy trang trí ( Tạp hóa, cửa hàng, khách sạn,....) là sự kết hợp của Khung Bảng Led, Mạch Điều Khiển, và Phần mềm nạp IC điều khiển toàn bộ hệ thống Biển Led Quảng Cáo.

I. Phần Cứng Mạch KÍCH LED QUẢNG CÁO:

1. Mạch Kích Led Quảng Cáo 16 Cổng:

( File mạch) BUY : New.moon9xone@gmail.com


3. Mạch Kích Led Quảng cáo 24 Cổng:

( File mạch) BUY : New.moon9xone@gmail.com

3. Mạch Kích Led Quảng Cáo 32 Cổng:

( File mạch) BUY : New.moon9xone@gmail.com


II. Phần mềm  CHƯƠNG TRÌNH NẠP IC CHỦ:

 Chương trình code asm lập trình trên phần mềm Pinnale52
VD: ở đây chip lập trình biển led quảng cáo Nhà Nghỉ 

Vẽ mạch mô phỏng bằng led trên phần mềm Protues 7.8

Viết code trên phần mềm Pinnale 52:
ORG 0000H
MAIN:
MOV P0,#00H
MOV P1,#00H
MOV P2,#00H
MOV P3,#00H
CALL NHA_NGHI; NHAP NHA NHA NGHI
CALL HIEU_UNG5; NHAP NHAY THU THUY
CALL HIEU_UNG4; NHAP NHAY "THU" ROI " THUY"
CALL HIEU_UNG2;SANG DUOI QUA LAI
CALL HIEU_UNG3; SANG DAN QUA LAI
CALL HIEU_UNGG6; TAT DUOI QUA LAI
CALL HIEU_UNGG7;SANG DON QUA TRAI
CALL HIEU_UNG5
CALL HIEU_UNG8; SANG DON VAO GIUA
CALL HIEU_UNG9
JMP MAIN

NHA_NGHI:; NHAP NHAY CHU NHA NGHI
MOV P2,#0FFH; CHO SANG CHU THU THUY
MOV P0,#00H
CALL MUI_TEN
MOV P0,#0FFH
CALL MUI_TEN
MOV P0,#00H
CALL MUI_TEN
MOV P0,#0FFH
CALL MUI_TEN
RET

HIEU_UNG2:; SANG DUOI QUA TRAI VA QUA PHAI - THU THUY
MOV P0,#0FFH
MOV P2,#00000001B
CALL MUI_TEN3
MOV P2,#00000010B
CALL MUI_TEN3
MOV P2,#00000100B
CALL MUI_TEN3
MOV P2,#00001000B
CALL MUI_TEN3
MOV P2,#00010000B
CALL MUI_TEN3
MOV P2,#00100000B
CALL MUI_TEN3
MOV P2,#01000000B
CALL MUI_TEN3
MOV P2,#10000000B
CALL MUI_TEN3
;NGUOC LAI QUA PHAI
MOV P2,#10000000B
;CALL MUI_TEN3
MOV P2,#01000000B
CALL MUI_TEN3
MOV P2,#00100000B
CALL MUI_TEN3
MOV P2,#00010000B
CALL MUI_TEN3
MOV P2,#00001000B
CALL MUI_TEN3
MOV P2,#00000100B
CALL MUI_TEN3
MOV P2,#00000010B
CALL MUI_TEN3
MOV P2,#00000001B
CALL MUI_TEN3
RET


HIEU_UNG3:; SANG DAN QUA LAI - THU THUY
MOV P2,#00H
MOV P2,#10000000B
CALL MUI_TEN
MOV P2,#11000000B
CALL MUI_TEN
MOV P2,#11100000B
CALL MUI_TEN
MOV P2,#11110000B
CALL MUI_TEN
MOV P2,#11111000B
CALL MUI_TEN
MOV P2,#11111100B
CALL MUI_TEN
MOV P2,#11111110B
CALL MUI_TEN
MOV P2,#11111111B
CALL MUI_TEN

;NGUOC LAI QUA PHAI

MOV P2,#00000001B
CALL MUI_TEN
MOV P2,#00000011B
CALL MUI_TEN
MOV P2,#00000111B
CALL MUI_TEN
MOV P2,#00001111B
CALL MUI_TEN
MOV P2,#00011111B
CALL MUI_TEN
MOV P2,#00111111B
CALL MUI_TEN
MOV P2,#01111111B
CALL MUI_TEN
MOV P2,#11111111B
CALL MUI_TEN
RET


HIEU_UNG4:; HIEU UNG NHAP NHAY "THU" ROI "THUY"
MOV P2,#00H
MOV R0,#3
LAP2:
MOV P2,#01110000B
CALL MUI_TEN
MOV P2,#00001111B
CALL MUI_TEN
DJNZ R0,LAP2
RET


HIEU_UNG5:; NHAP NHAY THU THUY

MOV P2,#00H
MOV R0,#3
LAP3:
MOV P2,#00H
CALL MUI_TEN
MOV P2,#0FFH
CALL MUI_TEN
DJNZ R0,LAP3
RET

HIEU_UNGG6:; TAT DUOI CHU THU THUY

CALL NHA_NGHI

MOV P2,#0FFH
MOV P2,#11111110B
CALL MUI_TEN3
MOV P2,#11111101B
CALL MUI_TEN3
MOV P2,#11111011B
CALL MUI_TEN3
MOV P2,#11110111B
CALL MUI_TEN3
MOV P2,#11101111B
CALL MUI_TEN3
MOV P2,#11011111B
CALL MUI_TEN3
MOV P2,#10111111B
CALL MUI_TEN3
MOV P2,#01111111B
CALL MUI_TEN3

; NGUOC LAI QUA TRAI

MOV P2,#01111111B
CALL MUI_TEN3
MOV P2,#10111111B
CALL MUI_TEN3
MOV P2,#11011111B
CALL MUI_TEN3
MOV P2,#11101111B
CALL MUI_TEN3
MOV P2,#11110111B
CALL MUI_TEN3
MOV P2,#11111011B
CALL MUI_TEN3
MOV P2,#11111101B
CALL MUI_TEN3
MOV P2,#11111110B
CALL MUI_TEN3
RET


HIEU_UNGG7:; SANG DON QUA TRAI

CALL NHA_NGHI

MOV P2,#10000001B
CALL MUI_TEN3
MOV P2,#10000010B
CALL MUI_TEN3
MOV P2,#10000100B
CALL MUI_TEN3
MOV P2,#10001000B
CALL MUI_TEN3
MOV P2,#10010000B
CALL MUI_TEN3
MOV P2,#10100000B
CALL MUI_TEN3
MOV P2,#11000000B
CALL MUI_TEN3


MOV P2,#11000001B
CALL MUI_TEN3
MOV P2,#11000010B
CALL MUI_TEN3
MOV P2,#11000100B
CALL MUI_TEN3
MOV P2,#11001000B
CALL MUI_TEN3
MOV P2,#11010000B
CALL MUI_TEN3
MOV P2,#11100000B
CALL MUI_TEN3

MOV P2,#11100001B
CALL MUI_TEN3
MOV P2,#11100010B
CALL MUI_TEN3
MOV P2,#11100100B
CALL MUI_TEN3
MOV P2,#11101000B
CALL MUI_TEN3
MOV P2,#11110000B
CALL MUI_TEN3


MOV P2,#11110001B
CALL MUI_TEN3
MOV P2,#11110010B
CALL MUI_TEN3
MOV P2,#11110100B
CALL MUI_TEN3
MOV P2,#11111000B
CALL MUI_TEN3

MOV P2,#11111001B
CALL MUI_TEN3
MOV P2,#11111010B
CALL MUI_TEN3
MOV P2,#11111100B
CALL MUI_TEN3

MOV P2,#11111101B
CALL MUI_TEN3
MOV P2,#11111110B
CALL MUI_TEN3

MOV P2,#11111111B
CALL MUI_TEN3
RET


HIEU_UNG8:; SANG DON TU 2 BEN VAO GIUA

MOV P0,#0FFH; BAT SANG NHA NGHI
MOV P2,#01000001B
CALL MUI_TEN3
MOV P2,#00100010B
CALL MUI_TEN3
MOV P2,#00010100B
CALL MUI_TEN3
MOV P2,#00001000B
CALL MUI_TEN3
MOV P2,#01001001B
CALL MUI_TEN3
MOV P2,#00101010B
CALL MUI_TEN3
MOV P2,#00011100B
CALL MUI_TEN3
MOV P2,#01011101B
CALL MUI_TEN3
MOV P2,#00111110B
CALL MUI_TEN3
MOV P2,#01111111B
CALL MUI_TEN3
RET


HIEU_UNG9:; SANG DON GIUA RA 2 BEN
MOV P0,#0FFH
MOV P2,#00001000b
CALL MUI_TEN3
MOV P2,#00010100B
CALL MUI_TEN3
MOV P2,#00100010B
CALL MUI_TEN3
MOV P2,#01000001B
CALL MUI_TEN3
MOV P2,#01001001B
CALL MUI_TEN3
MOV P2,#01010101B
CALL MUI_TEN3
MOV P2,#01100011B
CALL MUI_TEN3
MOV P2,#01101011B
CALL MUI_TEN3
MOV P2,#01110111B
CALL MUI_TEN3
MOV P2,#01111111B
CALL MUI_TEN3
RET


MUI_TEN:; SLOW - SANG P3.3

MOV P1,#00000001B
MOV P3,#00001010B
CALL DELAY_SMALL
MOV P1,#00000011B
MOV P3,#00001101B
CALL DELAY_SMALL
MOV P1,#00000111B
MOV P3,#00001010B
CALL DELAY_SMALL
MOV P1,#00001111B
MOV P3,#00001101B
CALL DELAY_SMALL
MOV P1,#00011111B
MOV P3,#00001010B
CALL DELAY_SMALL
MOV P1,#00111111B
MOV P3,#00001101B
CALL DELAY_SMALL
MOV P1,#01111111B
MOV P3,#00001010B
CALL DELAY_SMALL
MOV P1,#11111111B
MOV P3,#00001101B
CALL DELAY_SMALL
RET


MUI_TEN2:; SLOW - NHAP NHAY P3.3

MOV P1,#00000001B
MOV P3,#00001010B
CALL DELAY_SMALL
MOV P1,#00000011B
MOV P3,#00000101B
CALL DELAY_SMALL
MOV P1,#00000111B
MOV P3,#00001010B
CALL DELAY_SMALL
MOV P1,#00001111B
MOV P3,#00000101B
CALL DELAY_SMALL
MOV P1,#00011111B
MOV P3,#00001010B
CALL DELAY_SMALL
MOV P1,#00111111B
MOV P3,#00000101B
CALL DELAY_SMALL
MOV P1,#01111111B
MOV P3,#00001010B
CALL DELAY_SMALL
MOV P1,#11111111B
MOV P3,#00000101B
CALL DELAY_SMALL
RET


MUI_TEN3:; FAST - NHAP NHAY P3.3

MOV P1,#00000001B
MOV P3,#00001010B
CALL DELAY_FAST
MOV P1,#00000011B
MOV P3,#00000101B
CALL DELAY_FAST
MOV P1,#00000111B
MOV P3,#00001010B
CALL DELAY_FAST
MOV P1,#00001111B
MOV P3,#00000101B
CALL DELAY_FAST
MOV P1,#00011111B
MOV P3,#00001010B
CALL DELAY_FAST
MOV P1,#00111111B
MOV P3,#00000101B
CALL DELAY_FAST
MOV P1,#01111111B
MOV P3,#00001010B
CALL DELAY_FAST
MOV P1,#11111111B
MOV P3,#00000101B
CALL DELAY_FAST
RET


DELAY:
MOV R4,#200
LOOP1:
MOV R5,#200
LOOP2:
NOP
DJNZ R5,LOOP2
DJNZ R4,LOOP1
RET


DELAY_SMALL:
MOV R4,#150
LOOP4:
MOV R5,#150
LOOP5:
NOP
DJNZ R5,LOOP5
DJNZ R4,LOOP4
RET

DELAY_FAST:
MOV R4,#50
LOOP:
MOV R5,#150
LOOP11:
NOP
DJNZ R5,LOOP11
DJNZ R4,LOOP
RET

END



NHẬN LẬP TRÌNH BIỂN LED QUẢNG CÁO THEO YÊU CẦU
Liên Hệ Admin: new.moon9xone@gmail.com




Echipkool - Chia sẻ kiến thức kết nối đam mê điện tử

0 comments:

Post a Comment

domain, domain name, premium domain name for sales

Popular Posts