Skip to main content
Graduate II
October 31, 2025
Solved

STM32G0: PWM Generation

  • October 31, 2025
  • 2 replies
  • 229 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.

    This topic has been closed for replies.
    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

    Graduate II
    November 1, 2025
    jowakar122AuthorAnswer
    Graduate II
    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.