LPC1769: UART TX DMA end of transfer

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

LPC1769: UART TX DMA end of transfer

881 次查看
ersiumag
Contributor I

I am using a LPC1769 µc with DMA on UART1 TX and RX. This works well, but in a new setup I need to detect the end of a TX transfer in order to start a new transfer, but only if the old transfer (with varying transfer lenghts) is finished.

What would be the best way to solve this? Which register would have to be checked for this?

 

 

0 项奖励
3 回复数

875 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello michaellanda,

How about Tx interrupt?

Regards,

Alice

0 项奖励

866 次查看
ersiumag
Contributor I

Hello Alice,

thank you for your reply.

Are you referring to the Transmit Holding Register Empty (THRE) interrupt? As mentioned in other topics, it might me the better option to user a timer or similar workaround?

https://community.nxp.com/t5/LPC-Microcontrollers/THRE-interrupt/td-p/520156

0 项奖励

836 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello michaellanda,

I think you can first test the Interrupt method, and there is UART-Interrupt demo

under LPCopen, download from:

https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcop... 

If doesn't satisfied your requirement, then further improvement .

Regards,

Alice

 

0 项奖励