Nick Hale wrote: > yeah, sorry, RA6 is an output, but i was using it as in internal flag > too. just tried with a normal flag which isn't an output pin and it > seems to work. Using a port register bit as a internal flag can be dangerous if you don't fully understand and consider the read-modify-write issue. > This leads me to a further question... Why can't I just check UARTs > own 'transfer complete' flag (PIR,5)? I don't know. That depends on what you are trying to do, which is not clear. ******************************************************************** 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