Code VXL hiển thị chữ lên Led Ma trận
Code vi xử lý hiện chữ VT lên LED ma trậnĐã test ok...^^!
PROCESSOR 16F877A
__CONFIG _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _XT_OSC & _WRT_OFF & _LVP_OFF & _CPD_OFF
#INCLUDE <16f877a.inc>
DEM1 EQU 20H
DEM2 EQU 21H
ORG 0000H
BCF STATUS,5
BCF STATUS,6
CLRF PORTB
CLRF PORTC
CLRF PORTD
BSF STATUS,5
CLRF TRISB
CLRF TRISC
CLRF TRISD
BCF STATUS,5
MAIN
MOVLW B'11110000'
MOVWF PORTC
MOVLW B'11111110'
MOVWF PORTB
CALL DELAY
MOVLW B'11100000'
MOVWF PORTC
MOVLW B'11111101'
MOVWF PORTB
CALL DELAY
MOVLW B'10001111'
MOVWF PORTC
MOVLW B'11111011'
MOVWF PORTB
CALL DELAY
MOVLW B'00111111'
MOVWF PORTC
MOVLW B'11110111'
MOVWF PORTB
CALL DELAY
MOVLW B'00111111'
MOVWF PORTC
MOVLW B'11101111'
MOVWF PORTB
CALL DELAY
MOVLW B'10001111'
MOVWF PORTC
MOVLW B'11011111'
MOVWF PORTB
CALL DELAY
MOVLW B'11100000'
MOVWF PORTC
MOVLW B'10111111'
MOVWF PORTB
CALL DELAY
MOVLW B'11110000'
MOVWF PORTC
MOVLW B'01111111'
MOVWF PORTB
CALL DELAY
MOVLW B'01111111'
MOVWF PORTD
MOVLW B'11111100'
MOVWF PORTC
CALL DELAY
MOVLW B'10111111'
MOVWF PORTD
MOVLW B'11111100'
MOVWF PORTC
CALL DELAY
MOVLW B'11011111'
MOVWF PORTD
MOVLW B'11111100'
MOVWF PORTC
CALL DELAY
MOVLW B'11101111'
MOVWF PORTD
MOVLW B'00000000'
MOVWF PORTC
CALL DELAY
MOVLW B'11110111'
MOVWF PORTD
MOVLW B'00000000'
MOVWF PORTC
CALL DELAY
MOVLW B'11111011'
MOVWF PORTD
MOVLW B'11111100'
MOVWF PORTC
CALL DELAY
MOVLW B'11111101'
MOVWF PORTD
MOVLW B'11111100'
MOVWF PORTC
CALL DELAY
MOVLW B'11111110'
MOVWF PORTD
MOVLW B'11111100'
MOVWF PORTC
CALL DELAY
GOTO MAIN
DELAY
BSF STATUS,5
MOVLW B'0000'
MOVWF OPTION_REG
BCF STATUS,5
MOVLW D'25'
MOVWF DEM1
BATDAU
MOVLW D'230'
MOVWF TMR0
BSF STATUS,5
BCF OPTION_REG,5
BCF STATUS,5
LOOP
BTFSS INTCON,2
GOTO LOOP
BCF INTCON,2
DECFSZ DEM1,1
GOTO BATDAU
RETURN
END
( write by Tiến Dũng)
Asking questions are actually pleasant thing if you are not understanding anything fully, except this post offers pleasant understanding yet.
Trả lờiXóaHere is my website dobra agencja reklamowa lubin
Howdy! Someone in my Myspace group shared this
Trả lờiXóasite with us so I came to take a look. I'm definitely loving the information. I'm
book-marking and will be tweeting this to my followers! Excellent blog and terrific
design and style.
http://www.saic-dubai.com/thread/guide-rudimentary-standard-found-how-buy-cheap-twitter-followers
http://www.xn--carrerapopularniojesus-zec.es/node/47433
http://kerdst.kerbabel.net/?q=node/174106
http://wala-matteo.net/index.php?q=node/38871
http://lambeaulounge.com/node/162904
http://wala-matteo.net/index.php?q=node/38871
http://www.earnmywings.com/node/38022
http://victimsofslaveryandtorture.com/examined-important-elements-intended-how-buy-cheap-twitter-followers
http://drupalcamp.fi/content/viicarolwuhsvorls-evaluation-commerce-kickstart-webstore-box
http://www.dog-planet.ru/node/162468
Feel free to surf to my weblog :: morrison