I did a schematic in PCB express and this is exactly how its connected. I just want some LED to light up.
This one works perfect then I use GCB and PICPgm to program the chip. I use PICPgm to program it now too.
Updated the code to use some LEDS on PORTC too, but no luck...
DEFINE OSC 4
OSCCON = %01100000
PORTB = 0
PORTC = 1
TRISB = %00000000
TRISC = %00000000
ADCON0 = %00000000
ANSEL = %00000000 ' Make AN0-AN7 digital
ANSELH= %00000000 ' Make AN8-AN13 digital
WHILE 1
TOGGLE PortB.0
toggle portc.0
toggle portc.1
pause 300 ' just to see something ...
WEND
END
Bookmarks