> > >> Thanks for all of your help! I see now that my mistake was >> interpreting "empty" as meaning "cleared." >> >> Is there any reason to wait to write until TRMT is set as opposed to >> TXIF? > > You would normally wait for TXIF. You would only use TRMT if you needed t= o > know that all the data had gone out the wire, perhaps before turning > around > a line driver or something. I usually watch TXIF, but have watched TRMT for transmitting DMX-512 where I need to know that last byte went out before sending a break (this on PICs where the UART does not know how to do a break, so I do it with external hardware). It would be nice if there were an interrupt on TRMT, but I got around it by using a timer interrupt. Harold --=20 FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .