>;================================================ >; Send byte to PC >;================================================ > > bank0 > movlw databyte ;put data into >transmit buffer > movwf txreg > >;wait here to test for byte gone > > bank1 > btfss txsta,trmt ;byte transmission >complete > goto $-1 > bank0 This reminds me of a question I've been meaning to ask. Some UART code I've seen checks TRMT=1, other code checks TXIF=1, and some code checks both flags. Is there a reason why just checking TXIF=1 to verify that TXREG is empty is not sufficient? Under what circumstances would you need to know that that the TSR itself is empty before sending another character? __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.