Hello Bob,

Clink on this link:
http://www.picbasic.co.uk/forum/showthread.php?t=579


before you do anything, you must break down your project in very simple steps... Your program shows nothing on using TRISIO switchings, making the chip pins I/O's Let alone turning off comparators and A/D's.

Dwayne