The most common problem I have with my students is no pullup resistor on the /MCLR terminal at pin 1. Just a thought. Peter H. Anderson, http://www.phanderson.com PICs, PIC Programmer, "PIC C Routines" Sign up for Free-for-Life E-mail at http://www.Africana.com