Kinetis UART: using DMA and ISR possible?

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

Kinetis UART: using DMA and ISR possible?

跳至解决方案
1,023 次查看
davenadler
Senior Contributor I

Kinetisis K64F. I'd like to send characters out the UART using DMA, and receive using an ISR. I configured a DMA channel to send to the UART (triggered from the URT TRE signal). I set TDMAS, which says "Configures the transmit data register empty flag, S1[TDRE], to generate interrupt or DMA requests if C2[TIE] is set". So I set TIE as well, but now I never get the DMA transfer, but the RX_TX ISR is called repeatedly...

Is it possible to send with DMA while receiving with an ISR? If so what bits need be set?

Thanks in advance for any help,
Best Regards, Dave

标记 (1)
0 项奖励
回复
1 解答
842 次查看
davenadler
Senior Contributor I

Yes, it works just fine if you set TDMAS as I intended and not TCDMAS as I typed the first time, aaarrggg...

在原帖中查看解决方案

0 项奖励
回复
1 回复
843 次查看
davenadler
Senior Contributor I

Yes, it works just fine if you set TDMAS as I intended and not TCDMAS as I typed the first time, aaarrggg...

0 项奖励
回复