Skip to main content
Senior
October 31, 2025
Solved

STM32G0: PWM Generation

  • October 31, 2025
  • 2 replies
  • 230 views

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.

Best answer by jowakar122

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

 

2 replies

Technical Moderator
October 31, 2025

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Senior
November 1, 2025

@Gyessine 

jowakar122AuthorBest answer
Senior
November 1, 2025

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