thanks for your reply i have an 8mHz crystal attached to RA6 and RA7 with a .22pF cap both sides. i think ive found the code within mplab ide where it auto generates the code but im now struggling to find out how to set the i/o ports to outputs and just get the pic working in general.... STRESSFUL!!!!