It should not make a difference, but it might... Bits 0 - 3 in the OSCCON are status bits. Try setting OSCCON = %01100000
You have the LED pin TRISed correctly in the setup but you did not make it LOW in the setup.
TRIS sets direction, the state should also be set.
Bookmarks