Author Topic: STM32 Jitter PLL  (Read 2866 times)

0 Members and 1 Guest are viewing this topic.

Offline CurbyTopic starter

  • Contributor
  • Posts: 31
  • Country: de
STM32 Jitter PLL
« on: February 07, 2018, 06:12:08 pm »
Hi there,

I'm using a STM32F413VGT6, 8MHz crystal and creating a 72/96MHz clock with it (PLL). It works, but I have a significant jitter on it. Using the MCO_2 to take a look at it with the oscilloscope I can see the attached picture.

What can I do to reduce the jitter? Creating a 400kHz frequency with a timer gives me 400kHz +- 5kHz - not useful! Where does it come from?

Thanks!
 

Offline fourtytwo42

  • Super Contributor
  • ***
  • Posts: 1201
  • Country: gb
  • Interested in all things green/ECO NOT political
Re: STM32 Jitter PLL
« Reply #1 on: February 07, 2018, 06:21:29 pm »
If the clock is wandering around like that the most likely cause is the PLL is not locked and is hunting. Carefully check the spec and ensure the PLL is operating within it's lock range and also most devices have a PLL lock flag somewhere you can check.
 

Offline Twoflower

  • Frequent Contributor
  • **
  • Posts: 742
  • Country: de
Re: STM32 Jitter PLL
« Reply #2 on: February 07, 2018, 06:22:13 pm »
That's probably not Jitter but an aliasing effect of your scope. With digital scopes you might look out for some effects like that.
 
The following users thanked this post: fourtytwo42

Offline CurbyTopic starter

  • Contributor
  • Posts: 31
  • Country: de
Re: STM32 Jitter PLL
« Reply #3 on: February 07, 2018, 06:28:50 pm »
Ok, here another screenshot. Creating a 420kHz frequency with a hardware-timer (output compare) jitters like this. It drifts from about 418-422kHz.
I don't think this is good enough and practically i need a better signal.

I'm using 8MHz-> /4 -> *72 -> / 2 = 72MHz PLL.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11725
  • Country: us
    • Personal site
Re: STM32 Jitter PLL
« Reply #4 on: February 07, 2018, 06:51:50 pm »
Again, this looks like a scope artifact. Find another way to check the frequency.

Expand time base so you have one period on the screen and set infinite persistence mode and see if you can see significant variations in the period.

Scope frequency counter is an indication tool, not an actual measurement tool.
« Last Edit: February 07, 2018, 06:54:09 pm by ataradov »
Alex
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: STM32 Jitter PLL
« Reply #5 on: February 07, 2018, 07:05:44 pm »
And please don't forget that STM32 chips support spread spectrum (frequency modulation) for EMI suppression ;)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf