How to switch data to receive at the LPC812 UART off when it is sending data

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to switch data to receive at the LPC812 UART off when it is sending data

286 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Burkhard on Mon Sep 29 08:36:35 MST 2014
Dear all,

I use the LPC812 in a project where the capability of receiving data shall be switched off when the UART is sending data.
Is there an easy way to switch that off before sending data and switch it later on?

I'm looking forward to your ideas!
Burkhard
Labels (1)
0 Kudos
1 Reply

264 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpc_bloke on Tue Sep 30 00:41:10 MST 2014
Depending on your UART driver you have a few options.
1. Leave the Rx interrupt disabled while transmitting and clear the Rx status before enabling the Rx interrupt.
2. Use 2 UARTs and keep the Rx UART powered down while transmitting.
3. Design the HW such that while transmitting the Rx line is idle.

My observation with this UART is that the TXDISINT occurs early.  I have not fully characterized this as for me delaying the Tx to Rx turnaround from this interrupt by upto 100uS was well within specification.

Good luck.
0 Kudos