Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Diodes PT7C4372A crystal restart: Why does /INTB turn into a 32 kHz output?

After an oscillator stop, the interrupt configuration may not survive even when the crystal starts running again. Page 18 states that the relevant oscillator-stop detection sets XSTP and resets Time Trimming, Control 1, /CLEN and TEST. Output on /INTA stops and /INTB outputs a clock in the 32 kHz range. A wire previously carrying occasional interrupts can therefore become a continuously toggling clock after recovery. Before investigating an apparent flood of host interrupts, check whether the RTC has returned to a different output configuration. This article addresses the A variant. A shared datasheet does not make the C variant’s defaults and external connections interchangeable.

Check four post-stop effects separately

ItemDocumented behaviorHow to use it in recovery
Control 2 bit 4 on readXSTP stays set after detection, even when oscillation restartsPreserve the evidence; it does not prove the clock is still stopped
Time Trimming and Control 1Reset to zero on stop detectionVerify trim and operating mode before enabling host interrupts
/CLEN and TESTReset to zero on stop detectionCheck the clock output and test setting for the exact variant
/INTA and /INTB/INTA stops output; /INTB provides a 32 kHz-class clockSeparate real events from the clock seen during recovery

These observations answer two different questions: whether the crystal currently oscillates and whether the interface is providing the original application function. A device can show a steady /INTB clock after restart while XSTP still indicates a previous stop and the trim or interrupt configuration has changed. Those observations do not conflict. If the oscillator is still halted, a clock copied from that source cannot continue to toggle merely because the output mode has changed.

The datasheet does not say that every calendar or alarm register is zeroed. It says XSTP can help decide whether calendar and time data is trustworthy after power-up or a voltage drop, and it identifies particular items that are reset. Do not merge those statements into a claim that all registers were erased. Compare the observed state with the requirements of the application before rewriting configuration or dates.

What changes when an occasional wake line becomes a clock

Suppose a product normally connects an RTC interrupt to a host wake input. Wiring does not automatically filter out a clock after recovery. A 32.768 kHz crystal has a nominal period of about 30.52 µs, while 32.000 kHz is about 31.25 µs. Neither is a once-a-second, once-a-minute or slower event. A host configured to detect transitions may respond repeatedly, but the actual count depends on logic levels, edge selection, filters, sleep behavior and masking. The nominal crystal period does not tell you how many host events will be delivered.

An application event should correlate with the expected schedule, register state and output mode. The clock observed after recovery should instead be compared with the populated crystal frequency and the documented measurement path. Page 26 shows the A variant’s /INTB with a pull-up driving a counter for clock measurement. That arrangement shows a clock, not proof that the application interrupt has returned. Loading and pull-up conditions can also change the waveform. Verify the test point and ground reference without putting a probe on the sensitive crystal pins as a first resort.

One or two host log messages without a pin trace do not prove that /INTB became a continuous clock. Check the receiving input’s configuration, then correlate the trace with XSTP. Conversely, if the clock really is close to the crystal frequency, do not immediately clear the flag and status just to restore the demonstration. That may erase the evidence that explains why the original configuration disappeared.

Use a defined recovery procedure instead of writing back a whole byte

Start a controlled recovery with any host path that could repeatedly fire from a high-rate signal in its designed masked or diagnostic state. Record both pins and the RTC readback. Use a trusted reference to decide whether the time needs correcting, then obtain crystal-frequency selection, trim, output assignment and application mode from the controlled settings for that board. After detecting a stop, restore the intended configuration, not the default values just read back. Clearing and restoration must follow the applicable datasheet and verified driver procedure while the oscillator and operating interface conditions are valid.

Reading Control 2 bit 4 and writing it are different operations. Pages 8 and 18 identify XSTP on reads and ADJ on writes. Copying a previously read byte containing a one into a write may therefore request a 30-second adjustment. The point is not how to use ADJ. Recovery code must construct writes for their documented side effects rather than treating a historical read flag as an ordinary configuration bit. Log and clear other events according to their own write rules. A bus acknowledgement alone does not show that time, /INTA and /INTB were restored.

Before unmasking host interrupts, verify two things independently. Check the intended electrical output: a line not meant to carry a continuous clock should no longer toggle at crystal frequency in normal operation; if the design calls for that clock, verify its frequency and load separately. Then confirm that the actual alarm or periodic event works in the intended mode. Do not substitute “we could write a register” for a functional check. Where justified, observe a complete cycle on a reversible bench setup. Avoid uncontrolled power flickers or live backup-power experiments; the manufacturer cautions that detection may not operate correctly during supply flicker.

Distinguish stop recovery from an intentional software change

Software can change the output function without an oscillator-stop event, so the /INTB waveform alone cannot establish what happened first. Three sources should agree: the original XSTP read, before-and-after differences in Time Trimming and Control 1 or the other explicitly listed settings, and traces of both outputs. Keep more than a post-failure screenshot. If a log shows a deliberate mode change or the intended configuration never took effect, the same 32 kHz waveform cannot be attributed only to a crystal stop.

Keep contrasting test cases for a confirmed recovery and an ordinary software-driven change. The first exercises the recovery path; the second checks that expected configuration changes are logged correctly. Where no trusted time has been established, an initial XSTP state calls for initialization and configuration verification rather than automatically counting a field failure. For other variants, recheck defaults and pull-up requirements. A driver reading the same bit number does not make output behavior interchangeable. With these records the next investigation can distinguish a power or crystal fault from a recovery-software error.

Frequently asked questions

Did we read XSTP incorrectly if /INTB is now 32.768 kHz but the flag is still set?

Not necessarily. XSTP can retain a historical detection after oscillation restarts, and the restored oscillator can produce the 32 kHz-class clock. Check the flag and live output separately, then verify configuration. A correct frequency reading is not proof that calendar time is correct.

Will clearing XSTP alone bring the original alarm output back?

Do not assume it will. The datasheet lists settings that are reset when a stop is detected. Verify the relevant trim, output and operating mode against the controlled configuration and independently demonstrate that the intended alarm or periodic event is back. Clearing a flag does not reconstruct reset settings or substitute for measuring /INTA and /INTB.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.