Skip to main content
Senior
Oct 31, 2025 1:41 PM UTC
Solved

STM32G0: PWM Generation

I am using NUCLEO-G071RB. I am trying to generate an PWM pulse. I am using TIMER 3 Channel 2. 

- Clock Frequency = 64 MHz

jowakar122_0-1761917837043.png

With this setting I should get a HIGH pulse of 90 micro second, instead I get 80 or 40 micro seconds. When the Pre-scaler is increased to 640-1,  I received HIGH pulse of 980 and 920 micro second which was also not accurate.

jowakar122Best answer
Senior
Nov 1, 2025 5:45 AM UTC

The issue is solved. My logic analyzer was capturing pulses at a low rate after increasing the rate I got the pulses.

 

3 replies

Gyessine
ST Technical Moderator
Oct 31, 2025 3:50 PM UTC

hello @jowakar122 
can you share your .ioc file please
BR
Gyessine

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Senior
Nov 1, 2025 3:51 AM UTC

@Gyessine 

jowakar122AuthorBest answer
Senior
Nov 1, 2025 5:45 AM UTC

The issue is solved. My logic analyzer was capturing pulses at a low rate after increasing the rate I got the pulses.