Explainer

32.768 kHz crystal replacement: why does the oscillator fail to start?

Two bus pullups account for the missing battery current. The next challenge concerns a replacement crystal whose frequency and footprint match, but which sometimes fails to start in the cold.
Conceptual illustration of two replacement quartz crystals beside a microcontroller board.

AI-generated illustration: The Electronics Brief

Fictional case study; measurements and outcomes are illustrative.

Last week’s answer: the bus was keeping the sensor half alive

Each pullup delivered approximately:

I = (3.3 − 2.1) / 4,700 = 255 µA

Together they supplied about 510 µA, accounting for nearly all the excess above the expected 8 µA standby current once the rounded measurements are allowed for. That made the bus connections worth investigating first, though further measurements were needed to establish where the current went inside the sensor.

The team confirmed that the relevant limits at the signal pins and injection conditions were not suitable for the intended unpowered state. Controlled measurements with the branch isolated then showed that the current arrived through SDA and SCL rather than the disabled supply switch. Lifting one signal connection at a time changed the corresponding pullup current and the residual voltage on the sensor supply.

Inspection and a second clean assembly did not support a solder bridge as the explanation. Current through the sensor’s signal protection paths was raising its otherwise unpowered rail, leaving it in a state for which normal operation was not guaranteed.

TI’s guidance on protection when power is off describes this class of mechanism and the use of suitably specified signal isolation. The final choice must cover the actual voltages, power states, leakage and signalling requirements. [1]

The team added an I²C isolation device specified to isolate the gated branch when its supply was off, retaining appropriate pullups on each segment. It verified that the continuously powered bus still met its timing requirements and that neither segment could feed power into the other through the selected arrangement. Tests of standby current, startup from cold and repeated power cycling formed part of acceptance.

The existing load switch remained in the design because its leakage contributed very little to the measured excess; isolating the sensor branch addressed the path identified in the tests.

This week’s challenge: the missing 32.768 kHz

A controller’s real time clock has moved to a replacement crystal with the same 32.768 kHz frequency, footprint and stated operating temperature range. Tests at room temperature generally pass, but some units fail to establish the clock when started in the cold. The behaviour emerges despite the agreement between those headline specifications.

The specifications also contain two differences relevant to the oscillator:

ParameterOriginal crystalSubstitute
Specified load capacitance7 pF12.5 pF
Maximum ESR under the supplier’s stated conditions50 kΩ90 kΩ

The two nominal 12 pF external capacitors have stayed in place. An initial calculation assumes an aggregate stray contribution of 1 pF in the equivalent model of load capacitance; that estimate remains to be checked on the board.

The firmware drive setting, capacitor values and layout remain unchanged. The available acceptance record does not establish startup performance or gain margin for the new combination.

The application allows 500 ms for the clock to become established. With the main MCU running from another clock, a separate diagnostic watches readiness for up to two seconds and finds that the affected units either start late or do not start within that window.

A crystal substitution changes the oscillator
Original diagram: The Electronics Brief. Illustrative case values.

What would establish oscillator compatibility?

What load do the two existing capacitors present under that simplified stray assumption, and what equal capacitor values would present 12.5 pF?

Beyond that calculation, how would ESR, oscillator drive capability, startup margin and drive level affect the assessment? The measurement method is also part of the question, since probing the crystal pins can disturb the oscillator.

ST’s AN2867 treats those properties as part of oscillator selection. Its guidance relates the load calculation to the other conditions needed for reliable startup. [2]

The answer follows on 26 November. Send your reasoning through the Troubleshooter page.

Sources and technical background

  1. TI: powered-off protection and back-powering, SCDA015
  2. STMicroelectronics: oscillator design guide, AN2867

Continue reading