LPC1769: UART TX DMA end of transfer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC1769: UART TX DMA end of transfer

1,657件の閲覧回数
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 返答(返信)

1,651件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello michaellanda,

How about Tx interrupt?

Regards,

Alice

0 件の賞賛
返信

1,642件の閲覧回数
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 件の賞賛
返信

1,612件の閲覧回数
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 件の賞賛
返信