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

Pericom PT7C4311 Crystal Timekeeping: Are Positive and Negative Trim Steps Equal?

No. Although both directions use one five-bit magnitude field, the PT7C4311's positive and negative steps are not equal. Page 9 specifies about +4.068 ppm per positive step and −2.034 ppm per negative step. An RTC running about 20 ppm fast needs about ten negative steps, or −20.34 ppm. If it is 20 ppm slow, it needs about five positive steps, not ten steps with the sign reversed. This changes digital timekeeping rather than physically retuning the quartz crystal. The key is selecting the correct magnitude for the direction and checking the result over the full calibration cycle.

The control byte is not a symmetric signed integer

The control register is at hexadecimal 07. OUT and FT occupy the top two bits, S is bit 5 and the magnitude is in the low five bits. S=1 means positive and S=0 means negative. The magnitude is not encoded in two's complement. Read the whole existing register before setting the relevant fields. Writing a calculated negative number as a complete eight-bit value can also change the output and test bits. Defaults do not establish the current setting of a deployed board.

Published condition or exampleDirection and magnitudeInterpretation
One positive stepS=1About +4.068 ppm
One negative stepS=0About −2.034 ppm
Example: about 20 ppm fastS=0, magnitude 10About −20.34 ppm digital correction
Example: about 20 ppm slowS=1, magnitude 5About +20.34 ppm digital correction

The examples do not give a complete byte to write. Other bits control functions such as FT for frequency testing and OUT for the static output state. Preserve those fields according to the board design. Record both the raw byte and the separate decoded fields so a maintenance script cannot silently combine several controls into one correction value.

Why one direction has a larger step

The manufacturer describes a 64-minute calibration cycle. Selected minutes among the first 62 can have one second adjusted. A magnitude of one affects the first two minutes; six affects the first twelve. The two directions affect different numbers of oscillator cycles, so they are not equal magnitudes of opposite sign. The stated reference is 125,829,120 oscillator cycles, with effective adjustments of 512 and 256 cycles in the respective directions. Dividing and multiplying by one million gives approximately 4.068 and 2.034 ppm. Keep this digital time adjustment separate from the physical frequency of the quartz source.

The 20 ppm examples make a useful check. Ten negative steps applied to a 20 ppm fast device give a nominal residual of about −0.34 ppm. Five positive steps on a 20 ppm slow device give about +0.34 ppm. These are first-order examples, not field guarantees. Temperature, the reference and measurement resolution matter. Using ten positive steps instead would apply about +40.68 ppm of nominal correction, overshooting the target.

Use the frequency measurement to choose the direction

The datasheet's 512.01024 Hz example is 20 ppm high relative to 512 Hz. Subtract the nominal value, divide by 512 and multiply by one million. That yields a frequency error, not a byte. Select the opposite correction direction and divide the required correction by the appropriate step size, then choose an integer magnitude. The datasheet uses ten negative steps in this example. If using elapsed-time error instead of a counter, verify the baseline, reference and capture window. Make sure the error belongs to the RTC rather than the host's synchronization routine.

Check whether FT/OUT is used by other circuits before changing it. Keep board connections and existing state documented instead of treating enabling a test output as a passive read. A counter measurement gives a starting estimate; confirm the result by measuring elapsed RTC time. Record temperature and supply. A setting that works at one temperature is not a full-temperature compensation scheme. If the counter gate or resolution is insufficient, improve the measurement instead of increasing the correction to make the result easier to see.

Verify over complete cycles

On isolated equipment, save the original register and elapsed-time data. Where the test and calibration are permitted, write the selected direction and magnitude, read it back and decode the actual byte. Compare time before and after using the same independent reference. Use a full cycle rather than just one second. Read the clock consistently so transaction delays and the capture host's buffering do not become part of the apparent correction. If the short measurement is not sufficiently precise, extend the test and record uncertainty.

If the initial phase is unknown, observe several complete cycles before judging residual error. Corrections are not distributed evenly among all seconds; a short sample can overweight the affected minutes. Do not declare success just because a few minutes happened to improve. Keep the original settings and restore procedure. Check that startup firmware does not overwrite the validated value. Requirements across temperature or lots need their own qualification.

The final record should identify four things: measured frequency error, calculated correction, actual register value and observed full-cycle residual. A reader should be able to distinguish counter data, mathematical estimates and elapsed-time measurements. If only one direction or one temperature was tested, identify that coverage rather than declaring every condition verified.

Consider the integer choice within a direction. If the target lies midway between two codes, calculate both residuals and check whether the application is more sensitive to running fast or slow. When neither direction is preferred, the closest correction is a useful first test, not an automatic production approval. If baseline repeatability is worse than one trim step, improve the measurement rather than alternating the sign whenever the apparent residual changes direction. Allow a unit moved from another environment to stabilize before measuring, and record whether the frequency and elapsed-time references share a source. Otherwise disagreement between the two tests can be difficult to attribute.

FAQ

Will reversing only the sign cancel the previous calibration?

No. Keeping the magnitude while flipping the sign changes to a different step size. If the aim is to remove the calibration, follow the board's approved configuration and the manufacturer's initialization instructions. Flipping sign does not make the correction zero.

Does the stated accuracy follow automatically from applying trim?

No. The overview refers to correct settings and 25°C. Board results depend on temperature, source stability, step quantization and measurement uncertainty. Verify the actual behavior before stating a limit and the conditions it covers.

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.