Here is my code, it flashes leds on PORTA.0 and PORTB.0
ADCON0 = 0
ADCON1= 127
define OSC 4
led var PORTA.0
sink var PORTB.0
loop:
toggle PORTA.6
pause 5
high led
pause 5
low led
pause 5
high sink
pause 5
low sink
goto loop
end
PORTA.6 is just low, it does not toggle or go High if I change the code.
The schematic is simple, I connected VPP, +5, Gnd, PGD and PGC.
I have 470 ohm resistors from the PIC to leds connected to GND.
Could it be the clock output function? How do I set INTRC_OSC_NOCLKOUT?
Bookmarks