RT685 CTimer Question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT685 CTimer Question

Jump to solution
1,224 Views
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 Kudos
Reply
1 Solution
1,196 Views
_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!

View solution in original post

0 Kudos
Reply
1 Reply
1,197 Views
_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 Kudos
Reply