Configure PWM signal on Generic GPIO (i.MX8 mini)

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

Configure PWM signal on Generic GPIO (i.MX8 mini)

415 Views
EmbeddedDev
Contributor I

I am working on i.MX8 mini processor which is having 4 PWMs. Now, I wanted to have more PWM signals. In this case, Can I use any generic GPIO / other PIN and configure it as software PWM using kernel PWM gpio driver (bit-banging) ?

If yes, then please provide some guideline for the same.  

Tags (3)
0 Kudos
1 Reply

399 Views
Chavira
NXP TechSupport
NXP TechSupport

Thank you for contacting NXP support!

I think it is possible, but you can't obtain the same result as hardware.

You have to configure a gpio as output and configure manually the GPT (general purpose timer) and read the registers or configure the interrupts of the time.

You can obtain a PWM signal with that but I am not sure if is the best way to do it.

0 Kudos