[RT1060] Another solution LPUART DMA Rx timeout

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

[RT1060] Another solution LPUART DMA Rx timeout

845件の閲覧回数
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 返信

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