> > Have you tried running and monitoring it in MPLAB ? (with > > and without the delay500 enabled) > > No. I have never had any success running in MPLAB! It takes > far too long!!! That may be false economy. I had something similar to this a while ago and struggled long and hard to find the problem before I gave in and ran it through MPLAB. Yes, it did take a while, but the cause of the problem was found very quickly. One simple conditional break-point and it was all over, I kicked myself at something that had been staring me in the face all day and moved on. It sounds like a cheap platitude, but it is never a good idea to check your own work. Short of posting the entire code for us to look at, MPLAB is a good sniffer dog -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads