[RT1060] Another solution LPUART DMA Rx timeout

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

[RT1060] Another solution LPUART DMA Rx timeout

847 次查看
Wielebny
Contributor I

I implement LPUART tx and rx support after DMA. I don't know the length of the received data.
I know I can use the idle length but it's not precise enough.
Thought I could use an unused DMA channel triggered by kDmaRequestMuxLPUART1Rx which will write the value 0 to the counter. If nothing is received, the counter will count up to the set value and the timer will interrupt, which will mean the end of the transmission. Could it theoretically work?

标签 (1)
0 项奖励
回复
1 回复

825 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello
I hope you are well.
To count the received bytes which counter are you using? Could you provide more detailed information about the solution you want to implement?
The ring buffer example from the SDK might be helpful since it counts the received bytes.

If you have more questions do not hesitate to ask me.
Best regards,
Omar

0 项奖励
回复