UART4 DMA on K66

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

UART4 DMA on K66

3,256件の閲覧回数
biafra
Senior Contributor I

Hi everyone,

 

I'm using a custom board with K66.

I'm using UART4 to handle modbus protocol (half duplex) and I'd want to handle it with DMA.

UART4 has a shared request for tx and rx DMA: in this post UART4 DMA on K66 it's written that it's not possible to use UART4 DMA to handle full duplex tx and rx.

 

Is it possible to use UART4 DMA for half duplex communication?

If so, how can I configure the DMA to hanlde this situation?

 

Many thanks

Biafra

 

3 返答(返信)

3,204件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @biafra 

Yes, of course you can use UART4 DMA for half duplex communication. But software has to do lots of work to switch DMA work mode. I think it's no good than interrupt mode.

 

Regards,

Jing

3,199件の閲覧回数
biafra
Senior Contributor I

Hi @jingpan,

 

Many thanks for yor answer.

My problem is the speed: at higher bps it's a little bit hard to receive correctly all the packets (UART4 has only 1 byte FIFO), so the solution seems to use DMA.

Is there any example to configure the UART4 and DMA in such situation?

 

Many thanks

Biafra

 

3,166件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi,

No, there isn't.

 

Regards,

Jing