Uart temp

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by mohsin on Wed Nov 17 03:52:45 MST 2010
Hi All,

             I am using LPC1114 in my project. I am using uisng UART for driving RS485 and I am controlling the Transmit enable in software.

1) I want to know how could we make use of the TEMP (Transmitter Empty)  flag. All my transmission/reception is interrupt based. As there is no interrupt for TEMP, I need to know when the Transmitter is empty (both U0THR and U0TSR are empty) so that I can disable the Transmit enable.

2) Is there a way to control so that interrupts are based only on TEMP (not on THRE).

3) Is there a way to check if there is space in the Transmit Buffer so that more characters can be written ?