UART4 DMA on K66

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

UART4 DMA on K66

3,199 次查看
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,147 次查看
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,142 次查看
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,109 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi,

No, there isn't.

 

Regards,

Jing