I dont know much about Xbar peripheral and I hope someone can answer my question. I am using this pin GPIO_AD_B1_00 for outputing a PWM with variable duty cycle each period, using Qtimer3_Timer0, and DMA. Please see below.
IOMUXC_GPIO_AD_B1_00_QTIMER3_TIMER0, /* GPIO_AD_B1_00 is configured as QTIMER3_TIMER0 */
Now, I need two PWMs generated using DMA, and Qtimer. I have managed to get one PWM working, but I have only the pin mentioned above available to be used for PWM with Qtimer. Is there any way I can use Qtimer with any other GPIO to generate the desired PWM through XBAR? I am just thinking of a way of demuxing the output of Qtimer3_Timer0 to two GPIOs.
Hi Andre marcus,
Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
According to your statement, I think the QTIMER is enough to implement your application: generate two PWM, as the QTIMER module contains four identical counter/timer groups. Each 16-bit counter/timer group contains a prescaler, a counter, a load register, a hold register, a capture register, two compare registers, two status and control registers, and one control register.
In further, the SDK library contains the QTIMER demo project, please refer to it for details.
I have only one pin dedicated to be used with Qtimer; and I’m using it to generate a Pwm; I don’t know how to use a gpio that is not dedicated to be used with Qtimer to generate my second pwm; How is that possible? Not sure if you know what I want to do?
Hi Andre marcus,
Thanks for your reply and clarification.
1) How is that possible?
-- Yes, it's possible, as the XBAR module is able to assign QTIMERn_TMn_OUTPUT to the I/O pins which work as the output of the XBAR (as the below figure shows).