If the counter barely moves after you set a correction register, do not immediately assume the write failed. First establish whether you measured the raw crystal output or digitally corrected calendar time.
Epson's RX8010SJ application manual ETM37E-08 says that enabling DTE in register 30h applies the programmed digital offset to the calendar. It adjusts the count for one second in each 10 s interval. This does not change the frequency of the built-in crystal, so the 32.768 kHz FOUT does not change as a result of that correction. The calendar and an external frequency reference need separate acceptance criteria.
One crystal can give different results on two paths
Think of two paths. One leads from the internal crystal to the selected 32.768 kHz output. The other uses the oscillation in the timekeeping chain and adjusts the calendar count according to the register. The former lets you observe the raw reference; the latter shows how the RTC translates that reference into calendar time. Changing the latter does not require a frequency change on the former.
If the system feeds that output directly to another chip, the chip still receives an output that this register has not corrected. Compare its frequency against the system's actual source requirement, not the improved calendar error. This discussion applies to the 32.768 kHz option identified in the manual. Do not automatically extend it to other output rates, devices or software-generated host timestamps.
First verify the physical pin and output configuration. A system may route its clock through a divider or buffer before exposing it at a connector, or reuse a pin for another purpose in a different state. If you see only occasional edges, check the selected mode, load, wiring and thresholds. Establish pin identification and waveform provenance before assessing the effect of correction. A number near the target is not enough to identify the path.
Verify the correction on the timekeeping path
Establish an uncorrected baseline under controlled conditions. Set DTE to 0 according to the manual, verify configuration and use an independent stable reference for both raw frequency and calendar time. Use complete bus transactions for the calendar endpoints rather than combining fields across a carry. Save applicable validity state and the time reference. If firmware synchronizes the time or rewrites the register during the test, you cannot attribute the measured change to this setting alone.
Then write and read back the chosen correction, retaining the enable bit and raw data bits. Decode them using the table for this device. A successful write does not establish the right sign, scale or register. Keep temperature, load and reference unchanged and measure across enough correction cycles, or use a method that explicitly resolves the relevant boundaries. An unchanged display a second after writing does not disprove the adjustment.
If the system must align calendar time to another clock, retain both checkpoints. Store the calendar difference, actual output frequency and observation interval in the same report if useful, but do not combine them into one ppm result. With seconds-only registers, describe endpoint quantization, transaction latency and alignment error. A counter that can resolve a small frequency change does not mean whole-second calendar readings can reveal the corresponding drift over a short test.
Worked example: a better calendar need not move the output
Suppose an uncorrected calendar runs +6.15 ppm fast under stable conditions, with synchronization and other changes disabled. The table gives approximately −6.10 ppm for two negative steps. Approximating the small corrections as additive gives about +0.05 ppm residual calendar rate error. In this example the raw output remains +6.15 ppm if temperature, load and reference do not change. This is not a guarantee of the module's actual frequency.
Over 86400 s, +6.15 ppm is a gain of about 0.53136 s per day; +0.05 ppm is about 0.00432 s per day. These illustrate stable conditions and the approximation, not what a seconds-only display can prove in a one-day test. To validate a residual at that scale, choose a reference, sampling plan and observation method that can resolve it, or report what the available data cannot confirm.
Plan controls in advance. Choose a sample that does not self-synchronize and retain the update time and start/end reading boundaries. If the error gets worse after correction, first check the original measurement, the signed setting and whether correction is enabled. Then consider real changes in load or temperature. Verify that the software is not substituting the host's time for the module's. Reproducing the inputs, configuration and both outputs helps distinguish a calibration error from a device or system fault.
For a replacement, list “calendar can be corrected” and “feeds a more accurate corrected frequency downstream” as separate requirements. Two modules can both provide a 32.768 kHz output and a digital offset but define the interaction differently. Verify the feature and clock tree for any candidate. If the system needs a more accurate external reference, choose a part with an applicable output guarantee and test conditions rather than carrying over a calendar-only qualification.
Do not attribute a difference between two crystals to software if the baseline and corrected results came from different boards. A stronger control runs the same board with correction off, on, then off again, tracking temperature, supply and reference in each interval. Check that the analyzer does not apply different automatic averaging to the two paths. A drifting reference, changed counter gate or reordered samples can make the raw frequency appear to move.
The firmware handoff should include original configuration, target and readback values, whether a reset occurred, and the first measurement boundary. Check whether startup rewrites the offset rather than assuming one write persists indefinitely. If the project only needs accurate product time, it can record the calendar result alone. If the frequency output also serves other equipment, retain the second qualification and identify the board supplying its clock. The next technician can then explain why two results may differ without contradicting each other.
Calibration and output checklist
| Item | What to check | Evidence to retain |
|---|---|---|
| Clock source | Exact output pin and frequency selection | Wiring, register values and waveform |
| Calendar correction | DTE at 30h, signed setting and update time | Raw bytes before and after |
| Timekeeping retest | Common reference, observation period and endpoint alignment | Complete reads and accumulated time error |
| Downstream output | Separate requirement for the 32.768 kHz output | Independent frequency record and board conditions |
Common questions
Does an unchanged counter reading mean DTE was written incorrectly?
No. This output is not the criterion for digital correction. Read back DTE and the correction code, then compare accumulated calendar error with the uncorrected baseline.
Does the downstream chip inherit the calibrated calendar accuracy?
Only if it actually consumes corrected calendar time rather than the raw output. If it only receives the 32.768 kHz signal, validate that frequency separately. Do not enter the calendar correction into the external clock budget.
