Hi, 1st. Why did you put a "return" on line 60, right at the end of _loop ? 2nd. Your system is being resetted, first lets see if that's right, then we figure out why. Try the following: Right on top of main, but once you have configured all ports, put something like: Bsf portpin Delay1sec Bcf portpin And hook up an LED to that pin so you'll see that secuence everytime your system starts. AS you know, you should only see that one time when you turn on the system. Kind regards, Mauricio Jancic Janso Desarrollos - Microchip Consultants Program Member info@janso.com.ar www.janso.com.ar (54) 11 - 4542 - 3519 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist