A PT7C4302 clock/calendar burst write must cover its first eight registers in order. Sending only the seven time fields omits the control byte at 07h, even if the fields are valid and write protection was already removed. The datasheet says a burst shorter than eight data bytes is not transferred. RAM burst uses a different command and can write only a prefix rather than all 31 locations. This is a write-length distinction, not an oscillator or electrical clocking fault. Check the command, actual data count and initial write-protection state before replacing a crystal.
Four cases, two distinct write interfaces
| Operation | Length after the command | Decision under the datasheet |
|---|---|---|
| Clock burst write | Seven data bytes | Below eight; the batch cannot update the clock data |
| Clock burst write | Exactly eight data bytes | Length qualifies; write protection and other conditions still apply |
| Clock burst write | More than eight data bytes | Page 8 also mentions ignoring overlength; generate exactly eight and do not rely on extra bytes |
| RAM burst write | Only the first three data bytes | A documented short write, subject to the applicable write conditions |
Read pages 8 and 12 together. The register table on page 8 distinguishes the two burst entry points. The clock spans 00h through 07h, while RAM uses the 31 locations from 20h through 3Eh. Page 12 says the first eight clock registers have to be written for the burst data to transfer and that a shorter one is ignored. RAM need not receive all 31 bytes. The short note on page 8 also mentions bursts longer than eight. Do not infer how excess bytes are processed internally or whether a particular prefix might be handled differently. Avoid generating overlength frames in production.
Count the valid data bytes after the command. If a logic analyzer shows eight octets in total and the first is the command, only seven data bytes were sent. That is not a full eight-register write. A log label or the RST framing signal does not add payload. Report command and data count separately.
The eighth byte is a control byte, not padding
A common date-time structure contains seconds, minutes, hours, day of month, month, day of week and year: seven bytes. Passing it directly to the burst interface omits the control register. The eighth byte maps to 07h and must be constructed according to controlled driver rules, including WP and reserved bits. Omitting it violates the length rule. Supplying arbitrary padding is also wrong, because the last byte is meaningful. Do not alter product write-protection policy by accident while fixing framing.
RAM can accept a prefix under valid conditions; for example an application may write its first three status bytes without sending a 31-byte payload. That does not justify using the same variable-length wrapper for a clock write. Separate the calendar and RAM interfaces so that reviewers can check their different length and field rules. If a RAM write needs to start at a specific interior address, use the documented access method instead of treating burst as an arbitrary starting location.
If the requirement is to update an individual time register, assess the documented single-byte write and the application’s consistency requirements separately. Replacing a short burst with several individual writes is not automatically equivalent. Date and hour mode may need to be consistent across the update. This article does not guarantee application-level atomicity; define the command and length first and then examine what the updates mean.
Isolate short framing from pre-existing write protection
To demonstrate a length effect, establish comparable initial conditions on an approved test board: valid time fields, valid supply and signaling, and write protection already removed according to the datasheet. Record a valid eight-data-byte write and fresh readback as a baseline. Then use a distinguishable test time, deliberately send seven data bytes and close the transaction at the specified boundary. Preserve command, bit order, count and RST on the trace. If the actual time advances during testing, use distinguishable field values rather than requiring seconds to stay unchanged.
Independently demonstrate a short three-byte RAM burst on a disposable or designated test board where it does not overwrite production state. Observe the first three bytes and, where needed, the data beyond their boundary. Do not claim every later byte is correct if you read only the first three. Record the two different modes even if their electrical signaling is the same. If every case fails, investigate supply, wiring and write permission rather than attributing each result to length.
WP already set at transaction start is a separate rejection mechanism. An eight-byte frame under that condition is not a good positive control for a length test. Fix the prerequisite before the trial, do not depend on the final control byte to remove pre-existing protection, and do not equate a successful clock read with write permission.
Make length errors visible before bus transmission
A calendar interface can explicitly require seven valid time fields and a controlled eighth byte, then construct and validate the frame. Report an incomplete request before it reaches the device rather than sending it and hoping readback will clarify. Bound the RAM prefix interface separately. If a host log uses “eight bytes” to mean whole-frame size, also record “one command plus seven data bytes” so firmware and hardware teams do not draw opposite conclusions from the same number.
For acceptance, keep a pair of readback results: the short clock frame did not change the intended fields, and a qualifying eight-byte frame did. Retain one short RAM case as a separate proof. Make readback a fresh device transaction rather than reusing a software cache. Track protection, framing and other interface failures as distinct diagnoses. A failed write can then point to a specific condition instead of triggering unnecessary replacement of the 32.768 kHz crystal.
Give a valid command with short payload a distinct test identifier rather than reusing the result code for an invalid calendar value.
Frequently asked questions
We sent eight bytes including the command. Why did setting the time fail?
The command is not one of the eight register bytes. Eight captured octets including the command contain only seven data bytes. Check whether the decoder or log counted the command as payload and use the actual transaction boundary.
If RAM accepts three bytes, can a clock burst update only its first three registers?
No. Clock burst has a separate length requirement and does not commit a short frame. For a different register access method, check the documented protocol and application consistency separately.
