> > check if the TXREG register is empty. The problem is, it's not > > being cleared, although the datasheet says it should be >=20 > Nathan, half of my support tickets have been about flags that don't > work properly. I suggest you just do what works for you, no matter > what the datasheet says. Check the errata too, although there's no > guarantee that'll confirm what you suspect But from my reading of Nathans post, he is expecting something that will no= t happen, he is not looking at the flags. This is because of the nomenclatu= re used in the datasheet or family reference manual. Nathan, when it says that the TXReg is cleared, it doesn't mean that the da= ta you loaded into it is turned into zero bits, which is what you are testi= ng for in your code. It means that the data has been transferred to the shi= ft register, and so you are now clear to load the next data into TXREG. As = someone else mentioned the correct way to test is to look at the TXIF bit i= n the status register. --=20 Scanned by iCritical. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .