cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F40 Pin Alternative function PG

alejandrocaler
Associate

Hello,

 

I have a question regarding PG pins PG0 to PG10.

Can any of these pins (PG0 to PG10) be used to provide a PWM signal at around 20kHz. 

 

alejandrocaler_1-1717659185609.png

 

alejandrocaler_0-1717414639569.png

alejandrocaler_0-1717659101515.png

Thank you in advance

 

 

 

 

1 REPLY 1

Which STM32 in particular?

If there is no timer channel connected with those pins, you'd need to generate the output signal "manually", e.g. in interrupt.

This involves jitter or other timing imperfections depending on the exact implementation; whether this suits your application is upon you to judge.

JW