Nothing Special   »   [go: up one dir, main page]

Make A Program of Blinking and Running Lights Using Pic 16f84a Microcontroller

You are on page 1of 1

MAKE A PROGRAM OF BLINKING AND RUNNING LIGHTS USING PIC 16F84A MICROCONTROLLER Code>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

BSF STATUS; RPO MOVLW B00001 MOVWF TRISA MOVLW B00000000 MOVWF TRISB BDF STATUS, RPO ;main LOOP BTFSC PORTA,0 GOTO BLINK GOTO RUN MOVLW B00000000 MOVWF PORTB CALL Delay MOVLW B11111111 MOVWF POTB CALL Delay GOTO LOOP RUN MOVLW B00000001 MOVWF PORTB CALL Delay MOVLW B00000010 MOVWF PORTB CALL Delay

MOVLW B00000100 MOVWF PORTB CALL Delay MOVLW B00001000 MOVWF PORTB CALL Delay MOVLW B00010000 MOVWF PORTB CALL Delay MOVLW B00100000 MOVWF PORTB CALL Delay MOVLW B01000000 MOVWF PORTB CALL Delay MOVLW B10000000 MOVWF PORTB CALL Delay GOTO LOOP

BLINK

CENG04. MICROPROCESSOR.

You might also like