
Originally Posted by
mikendee
Hi and welcome,
The code appears to be okay to me ( another newbie).
You don't need these lines as you already set TRISB = 0
Output PORTB.4 ' set RB0 as output
Output PORTB.5 ' set RB1 as output
I just wondered if you have a resister on RA0 to limit the current into the pin.
If you don't you may damage the PIC.
Hope this may help.
Mike
Bookmarks