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
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
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
Hi,
No, there isn't.
Regards,
Jing