I believe the default Config settings is for GP3 to be used as MCLR (which means GP3 must be tied high). Could this be the cause of your problem?
Although I have never used this PIC, this should blink GP0 at 1 Hz
ADCON0 = 0 ; all pins digital
TRISIO = 0 ; all pins output (except GP3)
Main:
GPIO.0 = 1 ; GP0 = high
pause 500 ; Pause 500 mS
GPIO.0 = 0 ; GP0 = Low
pause 500
goto Main
End
Good Luck,
Paul Borgmeier
Salt lake City, Utah
USA
Bookmarks