> #include Maybe you also need your specific pic header file, something like p16f684.h. This file will change depending on your compiler suite. > > __CONFIG(INTIO & WDTDIS & PWRTEN & MCLRDIS & UNPROTECT \ > > =A0& UNPROTECT & BORDIS); You have unprotect twice, but no oscillator selection. Double check these settings. I don't recognize some of the features here, but I haven't used a 16F684 (or your compiler) either. > =A0 TRISA4 =3D 0; > > =A0 TRISA5 =3D 0; You should instead set everything to ouput as TRISA=3D0; TRISC=3D0;. You may have floating inputs (if you haven't tied the pins to a rail with a resistor) which can cause unexpected behavior. -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist