If write-protect WP is set when a PT7C4302 clock/calendar burst write begins, none of the eight registers accepts the new data. That includes the control register at the end. A final byte intended to clear protection cannot make the same burst take effect. If a legacy board sends a time-setting command but the clock value does not update, check the initial WP state, the separate control write, and readback before replacing the 32.768 kHz crystal.
Inclusion in the burst does not bypass protection
The RTC uses a three-wire interface, and its clock/calendar burst covers addresses 00h through 07h. WP is the most significant bit of control register 07h. When WP is set, it protects other registers. The datasheet specifically says an already-protected clock burst does not transfer data to any of the eight registers, including control. This is an admission rule for the burst, not merely a question of whether the command and bytes look valid on the wire.
| Check | Device behavior or service purpose | Evidence to retain |
|---|---|---|
| Read control before writing | Determine whether WP in 07h is set | Original raw data and time |
| Handle control separately | Clear WP before the burst as approved | Single-byte transaction and readback |
| Write clock/calendar burst | All eight remain protected if WP is set | Initial state, data, and transaction boundaries |
| Read after update | Verify the new time and subsequent count | Fresh reads of time and relevant state |
WP does not stop oscillation. The oscillator control is a separate field in the seconds register. A board can keep advancing time while refusing time-setting writes. Diagnose write access separately from timekeeping.
Keep a distinct transaction for each step
Read 07h and establish that the value came from hardware rather than a host cache. If authorized to set time and protection is initially active, use the approved single-byte control operation, then begin a fresh read to verify WP before issuing the clock burst. Separate transfers must have proper boundaries. Capture the three-wire RST signal with serial clock and data.
A software “transfer finished” message is not evidence that the device stored the new values. Inspect command type and address, and ensure a control operation was not encoded as RAM or another register. The first eight clock registers are transferred in the specified order. Length, type, and starting WP are different checks. Here the decisive fact is that an already-protected burst does not admit even a correctly structured final control byte.
If the product normally restores WP, follow its released policy and verify the final state independently. For diagnosis alone, start by preserving evidence rather than changing time. Do not leave a deployed unit unprotected purely for convenience. Protection should match the actual time-setting process.
Distinguish three similar service symptoms
If the time does not change despite a visible command and data, check WP before the burst. A set bit explains why neither calendar nor the control register changes. With a confirmed clear WP and a failed update, instead inspect command format, bit order, timing, supply, and actual readback. If an intended write is accepted but time stops advancing, check oscillator control and the reference as a separate fault.
On a bench, use two legal times far enough apart to distinguish accepting the new value from the old count simply moving forward by a few seconds. Log the initial state and approved changes. If firmware immediately performs an automatic correction, account for it so it does not conceal the result of the operation being tested. A single screen showing the correct time cannot identify the successful write.
If a driver retransmits data, preserve host, bus, and readback timestamps. An apparent success can come from a later valid transaction, not the earlier protected burst. Do not combine different transactions into one finding. Identify which one took effect or leave that question unresolved.
Verify that the returned equipment retains its intended protection
After setting the clock, obtain a fresh read matching the intended time and check that it advances over an appropriate interval. Restore and verify write protection if the approved product procedure requires it. Record the part, firmware, before-and-after control, and actual time. One renewed time reading does not measure long-term clock accuracy. Similar boards can have different interfaces or retries, so do not apply another design’s test template blindly.
Keep separate acceptance statements for changing the calendar and observing continued timekeeping. The first depends on initially applicable WP and readback. The second depends on repeated observations and the actual timing reference. Resolving write protection does not qualify the crystal; a healthy oscillator does not establish that automatic time setting succeeds.
If service procedures call for a restart before setting time, determine whether they restarted only the host. An RTC can retain its earlier time and protection state. A documented power-up default does not replace a current WP read. Record warm restart, actual loss of RTC power, and host initialization separately before concluding that a protection setting came from an earlier operation.
For firmware validation on an isolated sample, compare starting with WP set and starting with it clear. Treat initial WP as a test input rather than retaining only the driver's return code. A separate bench case can verify that the system restores protection where required. Restore operational settings afterward so a test time or deliberately cleared WP is not carried into field use.
FAQ
Why does writing zero as the eighth byte fail to clear protection?
If WP is already set at the beginning of a clock/calendar burst write, all eight destinations are blocked, including control. Handle the control register separately under the device procedure, then start a new transaction.
Does reading the clock prove WP is clear?
No. Reading does not establish write permission. Check the actual WP state and separately verify that the intended new time was accepted and continues advancing.
