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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

782 次查看
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
标签 (1)
0 项奖励
回复
1 回复

760 次查看
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 项奖励
回复