RT685 CTimer Question

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

RT685 CTimer Question

跳至解决方案
992 次查看
jwprice100
Contributor II

I'm using a RT685 and have a question about the CTIMER peripherals. Each match unit has its own external output that can be set, cleared or toggled. One CTimer's match unit can't seem to change the state of a different match unit.

For context, my design requires coordination of DMA and an output pin. I need to trigger DMA once a given time period, then assert a pin, then clear that pin. The CTIMER is almost an ideal way to do this. However the CTIMER peripheral's external outputs don't seem capable of setting then clearing the pin. Toggling won't work as I need to toggle the pin each time after a DMA transfer has taken place. Is there some way to accomplish this? I have a very convoluted work around but I am hoping I just missed a more straight forward solution.

Note: I cannot take advantage of the SCTimer as that peripheral has been purposed for a different process.

0 项奖励
回复
1 解答
964 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

What comes to my mind is to configure the CTimer as PWM instead of just use the match feature to toggle the output level and also coordinate the DMA requests by a match of the TC register value to either MR0/1 register.

Hope it helps you.

Have a nice day!

在原帖中查看解决方案

0 项奖励
回复
1 回复
965 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

What comes to my mind is to configure the CTimer as PWM instead of just use the match feature to toggle the output level and also coordinate the DMA requests by a match of the TC register value to either MR0/1 register.

Hope it helps you.

Have a nice day!

0 项奖励
回复