2024-03-29 01:02 PM
2024-04-07 07:28 PM
These boards are built with this crystal Raltron 32 kHz 12.5 pF
Layout: there is a continuous return on adjacent to the top and bottom side, but we change reference as it goes from top to bottom layer (no transitional via) there are two series elements both zero ohm, no ground cut, no guard trace, but also no significant adjacent noise sources.
My parasitic allowance was ~3 pF perhaps it is much higher. Which is surprising and the bare board does not measure higher using LCR meter DE-5000
2024-04-07 07:48 PM
Lot going on there, I wouldn't have gone with the via's like that, just straight to the crystal
2024-04-08 04:20 AM
I don't quite understand how the return is arranged, but it should not be tied to common ground but should be separate and as short as possible. Plus what @Tesla DeLorean said above. See AN2867.
OTOH, a really well designed crystal oscillator start up time *is* long (this is an implication not an equivalence, i.e. long startup does not mean the design is good). Thing is, that the oscillator starts up from picking up and amplifying noise, and well designed oscillator doesn't have too much noise to start from. 10 seconds is quite normal (and timeout should be even longer), so the application has to deal with this.
JW
2024-04-10 11:53 PM
AN2867 is great, I will also be performing the gain margin test, by adding 5x the crystal ESR and verifying it still works, also https://resources.altium.com/p/making-most-your-crystal-oscillator
It appears we have two MCUs that are outliers in that they require more stabilization time for their RTC. Swapping crystals, capacitors and bare boards, the issues seem to track with these two MCUs.
Perhaps we were just marginal to begin with as there was much more parasitic capacitance. I can even omit the load caps, with the outlier MCUs and it starts up in 300 ms. Yet to replicate on a more typical MCU. I presume the more typical MCUs will just want a lower value capacitance. I think this could be caused by gate propagation delay in the MCU crystal amp, not sure.