Electronic – Why microcontroller takes many clock cycles to start up with PLL clock source


I was looking over the ATTiny85 datasheet and noticed on page 26 that with a PLL clock source, the fastest startup time is 14CK + 1K (1024) CK + 4 ms. Am I misinterpreting what they mean by 1K CK, or is it that the PLL needs time to set up? Compared to other clock sources it seems to take many more cycles.


Best Answer

Deeper interpretation: The PLL is actually producing clock cycles during that whole time. The problem is that until it achieves "lock", the clock cycles may at times be too short to allow the CPU to operate correctly, as the VCO control voltage swings both above and below the target value before settling down.

So what this specification is really telling you is that this is how long it takes before the clock frequency being produced by the PLL is guaranteed to be within the range required by the rest of the chip.

This specification is based not on how fast the VCO itself is running, but rather on the bandwidth of the PLL's internal feedback. There's a tradeoff between fast start-up (wide bandwidth) and low jitter (narrow bandwidth). Some chips actually give you the ability to select different bandwidths for different applications.