PWM jitter on a home made card
Hello everyone,
Some time ago I asked on this website information about jitter on a PWM : Solved: PWM jitter - STMicroelectronics Community
The problem was that when generating a PWM, it wasn't very stable. At the time changing the source clock to the external clock of the nucleoboard worked and stabilized everything.
Since then, I created my own board using an STM32G474QE (128 pins) with an 8MHz (+/-50ppm) external oscillator.
I tried to generate the PWM and I am encountering the same exact problem again, the jitter is back. This time, I directly setup the clock as the external one.
I checked it up and it feels to me that the problem could be coming from the stability of my oscillator (I have frequency variation on it's output ranging from 7,999,950 to 8,000,050Hz).
Now my question is, could this really be the problem and could a lower ppm oscillator work ?
I tried looking up information on my own especially using AN2867 but I only get information about crystal oscillator.
Thank you very much for any answer provided
