LPC1769: UART TX DMA end of transfer

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC1769: UART TX DMA end of transfer

162 Views
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 Kudos
3 Replies

156 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello michaellanda,

How about Tx interrupt?

Regards,

Alice

0 Kudos

147 Views
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 Kudos

117 Views
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 Kudos