cubanflyer
Full Member level 5
btfsc PORTA,0 ;check button pressed.
goto on
bsf PORTB,0 ;turn on led.
call delay5 ;call 5 second delay
bcf PORTB,0 ;turn off led.
Call delay5 ;Missing form your code
goto on ;repeat
end
If you using the code from the book, you have a line of code missing, this is a second delay call after the led is switched off.
goto on
bsf PORTB,0 ;turn on led.
call delay5 ;call 5 second delay
bcf PORTB,0 ;turn off led.
Call delay5 ;Missing form your code
goto on ;repeat
end
If you using the code from the book, you have a line of code missing, this is a second delay call after the led is switched off.