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

A Pericom PT7C4337 keeps time but misses an alarm: check INTCN routing first

When time advances on a PT7C4337, the alarm may still be routed somewhere other than your probe. Check the match flag and interrupt enable, then use INTCN to identify the pin that should pull low.

Timekeeping, matching and interrupts are separate

The Pericom PT7C4337 is a real-time clock IC using a 32.768 kHz reference, not the crystal itself. A legacy unit displaying advancing time establishes that its observed time changed. It does not establish the alarm fields, match logic or delivery to the host. Break the work into three questions: does the counter run, did the comparison set a flag, and did the relevant pin reach the receiver? That avoids replacing a crystal merely because one output did not change.

The manufacturer states on page 13 that a match sets A1F or A2F and that interrupt assertion also requires the corresponding A1IE or A2IE. The control register is at 0Eh and the status register at 0Fh. If A2F is one, preserve it before investigating the enable and whether the host cleared anything too soon. If A2F is not observed, check the time, mask fields, time mode and when the register was read. That result alone does not diagnose a stopped oscillator. An earlier event may also leave a flag set, so establish a baseline before interpreting a new event.

INTCN changes the destination of alarm 2

With INTCN=0, either enabled alarm can assert INTA, and SQW/INTB carries the square wave. With INTCN=1, enabled alarm 1 still uses INTA and enabled alarm 2 instead asserts SQW/INTB. A logic analyzer left on pin 7 will therefore not see alarm 2's interrupt when INTCN remains zero, even if the match occurred. A flag in software and no interrupt at the probed pin can both be correct.

Both pin 3 INTA and pin 7 SQW/INTB are open-drain outputs and need an external pull-up. The IC asserts a low; after release the board must establish a high. A disabled pull-up rail, an unpowered receiver or another device pulling the net low makes a level ambiguous. Some legacy boards combine interrupts at the host, while the service fixture observes only the combined line. Probe both relevant RTC outputs and the receiving node when tracing such a path. When two alarms share INTA, inspect the status register to distinguish them.

Preserve three types of evidence before reconfiguring the alarm

Read the time, alarm registers and masks to establish the match condition before examining control and status. Verify actual read-back instead of relying on power-on defaults: the boot code may rewrite configuration before a probe is connected. With valid time and no observed flag, use a reproducible upcoming match in an approved service mode and record configuration writes, flag state and assertion timing. Where the device is in service and its alarm cannot be changed, use a test unit or wait for a permitted observation rather than altering the operational alarm.

CheckRead or measureWhat it distinguishes
Time and status historyAdvancing time and OSF read-backCurrent timekeeping does not prove an uninterrupted past
ComparisonBoth alarm values, masks and A1F/A2FConfirm the match before tracing the output
Enable and routeA1IE, A2IE and INTCN at 0EhMap the alarm to the intended pin
Open drain and receiverINTA, SQW/INTB and pull-up supply voltageDistinguish assertion, routing and reception

Record the order of status reads and writes. A retained status may be the best evidence after a power disturbance, so do not clear the entire status byte before diagnosis. The manufacturer specifies that writing zero clears A1F or A2F while writing one leaves it unchanged. OSF serves a separate purpose. If the fixture clears an event, record which bit, when, and whether the host service routine clears it too. That distinguishes a match that never set a flag from one already handled before read-back. Place register actions and waveforms on the same timeline.

Worked example: how 0Ah and 0Eh select different alarm paths

Assume the control register reads 0Ah, binary 00001010. Bit 2 (INTCN) is zero, bit 1 (A2IE) is one, and A1IE is zero. If the status register then reads 02h, its A2F bit is set. Under these assumptions, alarm 2 should assert INTA, and the square wave on pin 7 is not its interrupt. Leaving all other control bits unchanged and setting bit 2 changes the control value from 0Ah to 0Eh. This is a change in the value stored at the control address, not a change to the target register address. Re-establish the baseline and generate a new match before testing for alarm 2 at SQW/INTB.

This example compares routes rather than prescribing a constant for production firmware. If a device has another square-wave rate or alarm configuration, preserve the unrelated control bits. A single low level also does not identify the event source. Save status, control and captures at the RTC output, pull-up rail and host input. Repeat with the same trigger and inspect whether their order matches the hypothesis. Record any change in power, cables or probes instead of comparing unlike captures.

Add a minimally disruptive control test. With the same assembly and pull-up, capture the original pin behavior and stable timekeeping first. Then test an independent match condition without altering the crystal network or supply. If the expected pin asserts but the host does not respond, trace receiver configuration, thresholds and trigger behavior. If the IC pin stays inactive, revisit the flag, enable and route. With legacy firmware that responds to a held-low interrupt, preserve the order of first assertion and firmware clearing. A short polling window with no transition does not prove failure of the comparison logic. Restore the original approved settings after bench testing and have another person review the records against the same checklist.

Two service questions

Does a continuous square wave at pin 7 mean the alarm did not match?

No. With INTCN=0, SQW/INTB carries a square wave, and both enabled alarms use INTA. Preserve the flags, verify the applicable enable and check INTA. If the product had a firmware change, read back the installed configuration to determine whether initialization has overwritten the legacy settings.

Can the alarm circuit be skipped if time advances and OSF is clear?

No. OSF relates to oscillator-stop history, not to alarm matching or open-drain delivery. Check comparison, enable, routing and receiver levels separately. Where two wake sources are required, exercise the defined events one at a time and confirm that the host distinguishes them. Advancing time cannot stand in for those checks.

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.