Does KEA128 support DMA, I need a UART DMA sample

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

Does KEA128 support DMA, I need a UART DMA sample

跳至解决方案
4,560 次查看
vaughn
Contributor II

There's no DMA description on KEA128 RM, is this mean no DMA support on KEA128?

If it support DMA, do anybody give an UART DMA transmit/receive sample? I want to implement a receive with an idle interrupt, transmit with any length.

标记 (1)
0 项奖励
回复
1 解答
4,299 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi xiaofeng,

Do you meaning do not use interrrupt . Yes, you can also use polling mode ,

check the TX/RX flag status . There is also the polling demo under Typical Usage:

pastedImage_1.png

Hope it helps


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
7 回复数
4,299 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

Yes, it doesn't support DMA .

Hope it helps


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
4,300 次查看
vaughn
Contributor II

Thanks, Yang.

I want to minimize the RX/TX interrupt number, some thing just like DMA do:

1), when TX data finished, an interrupt to notify me that, it finished, then i could update user defined TX finished status, and

2), when RX line is idle, an interrupt to notify me that, there's no more data.

I do not know is this robust?

The following file is KEA128's UART driver and Events.c, i want to optimize it if possible.

0 项奖励
回复
4,300 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi xiaofeng,

Do you meaning do not use interrrupt . Yes, you can also use polling mode ,

check the TX/RX flag status . There is also the polling demo under Typical Usage:

pastedImage_1.png

Hope it helps


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
4,300 次查看
vaughn
Contributor II

Hi Yang, I think it's not practical which PE does is that OnBlockReceived event require we have to know that the number to be receive. And the polling method may lost frame if receiving loop slow.

What I need is that:

1, if block sending finished, there's interrupt to notify me, then I can set transmit finish flag(or call it transmit idle).

2, when receiving, I want to avoid RX interrupt on each receive byte in interrupt mode which is low efficient, OR receiving byte maybe lost in polling mode.

Thanks!

0 项奖励
回复
4,300 次查看
vaughn
Contributor II

And the other reason I need RX idle interrupt is that, there's a senari is that, the receiving data length unknown.

0 项奖励
回复
4,300 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi ,

Sorry , I'm afraid  I don't know what's your problem now .

I recommend you first write your code , then debug , check whether  it can work well

as your requirement . Then you can show the detail question when there is problem .

BR

Alice

0 项奖励
回复
4,300 次查看
vaughn
Contributor II

Thank you Yang.

0 项奖励
回复