Quintin Beukes wrote: > Like I mentioned this is not used in production. We use it only during > development to reboot the PIC. And Microchip told us to use exit(0) to > reboot the PIC through software. Are you sure EXIT is really documented to cause a reboot on that PIC with that compiler? In general the behavior of EXIT can't be counted on when there is no operating system that initiated the process to return execution to. This makes it a bad idea since it can work differently between compilers, on different PICs, and possibly even between versions of the same compiler. If you want to reboot the PIC, a RESET or GOTO 0 instruction would be more explicit and reliable. Probably you are rebooting the PIC before the UART has finished sending the last character. Spin waiting on TRMT to be set before rebooting and see if that fixes the problem. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist