dannyelloko20
Newbie level 5
![Newbie level 5](/styles/images/ranks/blevel2.gif)
HI everyone, Im trying to make my LED's blink but i dont know what the problem is with my code. This is what I have:
Can you please help me find the problem?
Thanks!
Code:
#include <GENERAL.H> (my library)
; ================ EQUATES =========================================
COUNTER1 EQU 0x20
COUNTER2 EQU 0x21
COUNTER3 EQU 0x22
; =======================================================================
__CONFIG 0X3FF2
ORG 0X0000
GOTO START
ORG 0X0004
RETFIE
START CLRW
BSF STATUS, RP0 ;
CLRF TRISB
BCF STATUS, RP0
LOOP1 MOVLW 0xFF
MOVWF PORTB
CALL DELAY
CLRF PORTB
CALL DELAY
GOTO LOOP1
DELAY CLRF COUNTER1
CLRF COUNTER2
MOVLW D'26'
MOVWF COUNTER3
LOOP2 DECFSZ COUNTER1,1
GOTO LOOP2
DECFSZ COUNTER2,1
GOTO LOOP2
DECFSZ COUNTER3,1
GOTO LOOP2
RETURN
END
Can you please help me find the problem?
Thanks!