Hello John,

JOhn>>
CMCON = 7 ' Comparators OFF
ANSEL = 0 ' A/D OFF -- Port pins all digital
TRISIO = %00001000 ' All I/O but GPIO3 = outputs

I added 2 zeros to your TRISIO, and changed the position of your GPIO.3 switch



Loop:

High GPIO.2

Pause 500

Low GPIO.2

Pause 500

goto Loop

end.


I could not check this out, because I am at work, but this should be very close to what you are looking for.

DWayne