Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Digital Interfaces and Clock Division

Why can an ultrasonic flowmeter show timing steps after its 32.768 kHz crystal has calibrated the fast clock?

On a fixed acoustic path, a series of steps may appear as the receive decision moves slightly in phase. Before buying a more accurate crystal, establish how the instrument joins the two portions of a timing measurement. A published Matsushita Electric Industrial design uses a slow quartz reference to maintain the time scale, brings in a faster RC clock toward the end of the transit, and uses an auxiliary clock to measure fractional intervals at the boundaries. Calibrating the average fast-clock period does not align the edges of the two clocks. Specify separate tests for scale error and event-handoff error.

Follow one transit through the clock domains

Much of the transit is spent waiting. Fine timing becomes particularly valuable as the received signal approaches. Keeping a slow clock running and turning on faster circuitry only when needed can save power. The disclosed embodiment gives examples of a 32.768 kHz crystal clock, a faster clock at about 10 MHz and a roughly 200 MHz ring oscillator for short time differences. These figures illustrate the architecture. They do not identify parts used in a commercial meter or turn the RC oscillator into a crystal to be ordered.

Draw a timeline between transmission and the receive decision. Count the early section on the slow clock and most of the remaining section on the stabilized fast clock. The exact edges at which each section ends or begins determine whether a fraction of time is left out or counted twice. The receive decision can also occur between fast-clock edges. The Matsushita design uses auxiliary timing at both boundaries and adds or subtracts the corresponding intervals. A final counter reading alone may conceal a discontinuity at the handoff.

A correct 10 MHz scale can still miss 100 nanoseconds

At 10 MHz, one cycle is 100 ns. At 200 MHz it is 5 ns, and at 32,768 Hz it is about 30.52 microseconds. Five nanoseconds is a nominal auxiliary counting increment. Accuracy can also depend on startup, decision edges, supply variation and calibration residuals. Assume an electronic delay of exactly 400 microseconds. Omitting one fast cycle at a particular phase changes the measurement by 100 ns, or 250 ppm of this interval. That ratio is a measurement error for one duration; it is not a 250 ppm crystal frequency error.

For a different hypothetical case, assume the fast clock is 10 ppm higher in frequency than the value used for conversion, and use it to count the entire 400 microseconds. Ignoring edge quantization, converting with the nominal period overestimates elapsed time by about 4 ns. In the segmented design, this scale error applies only for the part timed by the fast clock. Compare that behavior with a 100 ns error appearing only at certain phases. The first grows approximately with the interval counted. The second can jump even at fixed delay. An overall mean can hide the distinction.

StimulusResult to retainPurchasing significance
Fixed phase, variable delayError slope against interval lengthReference scale and its calibration
Fixed delay, phase swept through one cycleResidual at each phase and position of any stepsClock handoff and interpolation
Fixed delay with alternate idle periodsFirst result versus subsequent measurementsStartup and first valid count

Begin with electrical delay, then reconnect the transducers

If the development board has a specified receive-decision test input, apply two edges of known separation from an independent delay source. This temporarily takes fluid velocity, sound speed and acoustic coupling out of the experiment. Timestamp the transmit origin, receive decision and fast-clock enable against the same acquisition reference. Identify whether injection is before or after the comparator. An injection after it exercises digital timing and handoff. An injection before it also exercises threshold response. Keep amplitudes, edges and supply conditions constant. Retain maximum and minimum residuals at each phase rather than relying on a near-zero average across a sweep.

Repeat with longer and shorter delays and insert controlled idle periods. Compare the first reading after idle with steady operation. A large error confined to the first reading suggests checking the interval from fast-clock enable to the first count used. A length-dependent error justifies retaining the reference and estimated fast-clock periods and checking when the conversion period was updated. A step at a repeatable phase directs attention to transfer between coarse and fine counts. Passing electrical injection does not demonstrate correct detection of a weak acoustic arrival.

Reconnect the transducers and establish a genuinely stationary fluid condition independently. Record transit time in both directions together with received waveforms and decision points. An equal offset in the two measurements can cancel in the difference. Different arrival phases can instead turn a timing step into apparent flow. If changing receive amplitude moves the threshold crossing and the electrical phase sweep does not reproduce the error, investigate the receive chain. Quantitative flow verification still requires controlled fluid conditions, temperature and a traceable flow reference. A zero-flow observation covers only that condition.

Put both types of error in the order specification

For the slow quartz crystal unit, ask for nominal frequency at its specified load, deviation over the relevant temperature range, allowable drive and package. Verify startup and frequency on the intended oscillator circuit. For a timing module, also agree on minimum and maximum electrical delay, input edge, supply, temperature and whether the first measurement after standby counts. Ask for residuals throughout the phase sweep as well as the scale error on a long independent interval. A crystal tolerance alone will not tell service whether to investigate crystal loading, RC calibration or the logic joining the intervals.

Integrate power over a complete measurement. The patent illustrates a 10 ms measurement interval with about 0.5 ms of activity, or roughly 5% for that active segment. The same high-speed clock need not run throughout that segment. At an agreed measurement cadence, record quiescent current, wake-up charge and receive-stage charge and combine them over time. Treating a high-speed oscillator's continuous current as the average for the complete board can rule out a design that would meet the battery target.

Flowmeter development and service questions

Would a more accurate external fast clock remove the steps?

Where the board permits it, use one as a development control. It can reduce certain period-conversion errors while leaving the relative position of a receive edge and a clock handoff unresolved. Hold the electrical delay fixed, compare the phase residuals and check whether the substitution changes startup behavior or bypasses calibration. A change in the long-interval slope alone does not show that the handoff has been repaired.

Can a 5 ns auxiliary increment be specified as complete-meter accuracy?

An increment describes one step of interpolation or indication. The complete instrument also includes the reference scale, synchronization boundaries, transducers, receive decision and propagation path. Agree first on a range of electrical delays and phases and report the maximum electrical residual under those conditions. Specify bidirectional acoustic validation with the transducers fitted separately. Distinguishing those deliverables in a quotation lets engineering compare both evidence and cost.

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.