A PIC32CX-MTC board starts reporting a slow-clock fault on the production calibration step. An oscilloscope shows activity and an independent counter reports a frequency near 32.768 kHz. An earlier firmware version passes. The new one trims the internal main oscillator and sometimes logs a fault. The key distinction is that the power-management controller measures the low-speed crystal against the main RC oscillator. An alarm tells you the monitor's result, which depends on both clocks.
Check startup and the source of the alarm
Microchip instructs designers to start the 32.768 kHz crystal oscillator and allow its startup time to elapse before enabling the frequency monitor. Oscillation being visible and the oscillator being ready for monitoring are distinct milestones. A fixed delay in older firmware can become insufficient after a crystal or load change, especially on a slow-starting board or at low temperature. Record when the oscillator is ready and when monitoring becomes enabled, including the actual supply ramp and temperature.
There is a monitor in the power-management domain and another in the supply controller’s backup domain. The power-management fault flag can be configured as an interrupt and is also routed to the reset controller. Capture the reset reason, monitored status, main RC trim and active supply domain. A generic “slow clock failed” message cannot distinguish an initial startup issue from a backup-domain or resume event.
A one-percent monitor window is not an accuracy specification
Microchip describes a permitted 10,000 ppm drift for the power-management monitor, about one percent. At 32,768 Hz that percentage corresponds to 327.68 Hz. If the passive crystal is 20 ppm high in its actual circuit, its rate is only about 0.655 Hz above nominal. With a fixed divider and a constant error, the calendar gains about 1.728 seconds per day. These are illustrations of two different engineering budgets. A monitor that remains quiet does not verify the end customer’s timekeeping accuracy.
The manual also describes the invalid result after at least four consecutive period observations exceed the internal limit. A nominal period is approximately 30.52 µs, so four periods are about 122 µs. That is the time scale of four clock cycles, not a warranted end-to-end alarm latency. Measurement alignment, the fault shape, status propagation and reset response all matter. Measure the response from the imposed hardware condition to the actual system action.
Hold one clock constant while checking the other
Start with a checked main RC configuration and measure the low-speed clock against an independent reference. A standard oscilloscope probe can add significant capacitance at a tuning-fork crystal pin. Prefer a buffered output or a documented clock output where available, and confirm its selected source and divider. Record the instruments, divider and observation length. A visible edge confirms activity in one path. Accuracy calls for a longer, appropriately referenced measurement.
Next, hold the board, low-speed clock, supply and temperature constant, and reproduce the earlier and newer main RC trim sequences on an authorized test fixture. Save when the trim changes, when monitoring starts and when the flag asserts. Microchip specifically says that main RC trim can affect monitor accuracy and lead to improper failure detection. If the independently measured slow clock is stable and failures follow a trim transition, investigate the firmware sequence first. If the reference measurement also shows slow-clock error, check load, soldering, leakage and supply conditions. Keep lab settings distinct from the validated configuration needed by the product.
If the test rig immediately resets the device after a flag, the state needed for diagnosis may vanish. Capture the supply, a buffered clock test point and the available fault indication with an external recorder. Align them to the calibration checkpoint. If there are too few channels, record the power mode and repeat the slow-clock measurement with the same loading. Evidence before and after the fault can reveal a coincident rail transition that a post-reset frequency reading would miss.
Record the results engineering and purchasing need
For a replacement 32.768 kHz passive crystal, capture its full part number, load capacitance, maximum ESR, operating temperature and drive conditions. Recheck the slowest measured startup and readiness to enable monitoring on the actual board. A powered 32.768 kHz oscillator instead requires a supported external clock mode, compatible voltage and a supply that remains available under the specified conditions.
Give calendar accuracy, oscillator readiness, monitor triggers and RC trim history separate fields. Tie the cold-start and controlled fault results to the same board identifier. A replacement can be evaluated against measured startup and accuracy, while an alarm that follows an RC change can be investigated using the monitor configuration. This directs purchasing to the correct issue instead of tightening the wrong tolerance.
