Rikard Bosnjakovic wrote: well, this is wrong: > void send(char letter) { > while (!TRMT) { > TXREG = letter; > } > } correct one would be void send(char letter) { while (!TRMT); TXREG = letter; } As for waiting before or after, I'd say that it is correct to wait *before*, but the only thing that can happen is that you lose the 1st char you send... the remaining should go through correctly... -- Ciao, Dario -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist