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.
已解决! 转到解答。
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!
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!