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

A 20 MHz oscillator clocks an NI 6612. Why can one interval read 50 or 100 nanoseconds?

An NI counter uses a 20 MHz active oscillator as its timebase. A pulse generator produces two rising edges approximately seventy-five nanoseconds apart. The software alternates between fifty and one hundred nanoseconds even though both edges look steady on a scope. Start by checking count quantization. The oscillator establishes the duration of a tick. The counter still sees only an integer number of ticks between two events.

Two-edge separation counts ticks between separate inputs

On an NI 6612, the first event starts the counting interval and the second ends it. Use a supported internal or external timebase route. NI lists internal twenty- and one-hundred-megahertz timebases. An external 20 MHz oscillator must reach a valid counter source on the specific board, meeting level, width, and route requirements. A terminal configured as a sample clock does not automatically become the timebase. Check the two event routes and counter source individually.

Twenty megahertz yields one tick every fifty nanoseconds. An unchanged seventy-five-nanosecond gate can contain one tick or two, depending on the first event's position relative to the tick grid. Ignoring differential trigger-path errors, the two readings are fifty and one hundred nanoseconds. With approximately uniform relative phase, seventy-five is halfway between the grid points and counts should be similar. A single reading can differ by twenty-five nanoseconds. An average of seventy-five does not establish single-event resolution.

Use the internal 100 MHz timebase as a comparison. With the same pulse generator and input paths, ideal counts now give approximately seventy or eighty nanoseconds. Internal and external trigger-path differences can move the observed distribution. If clusters remain fifty nanoseconds apart, verify the timebase change and check whether the events themselves have two actual intervals. Save raw integer counts alongside converted times.

Move the event pair without changing its spacing

Keep the time between the two measured edges constant. With an appropriate triggered two-channel source, advance or delay the entire pair relative to the timebase. Alternatively, use repeat triggering asynchronous to the counter clock so relative phase sweeps over many trials. Confirm on the scope that the movement changes the pair's position on the tick grid without altering start-to-stop time.

A useful check sets the interval near one hundred nanoseconds while retaining the 20 MHz active oscillator timebase. An ideal gate spanning two integer cycles should usually count two ticks. Boundaries still see input noise, thresholds and synchronization effects. Save the analog capture if rare boundary positions add or remove a count. For broad scatter, verify that every pair reaches the counter and check amplitude and event association.

Deskew the measurement channels by feeding one pulse to both probes first. Seventy-five nanoseconds at the source is not necessarily that value at the counter inputs. Unequal cables, different thresholds, or mismatched filters can alter it. If helpful, swap adjustable delay paths while preserving input roles and a positive event interval. Check whether a fixed offset moves with one path before adding it to the uncertainty budget.

Compare scales before buying a more accurate timebase. A twenty-part-per-million tolerance changes a fifty-nanosecond tick by about one picosecond. That affects long accumulated timing but is far below the illustrative twenty-five-nanosecond quantization error here. Missing source ticks are different and may create readings outside adjacent grid points. Record timebase continuity and see whether extreme readings track source edges, cables, or electrical limits before screening the clock itself.

Acquisition mode determines which events survive

NI distinguishes on-demand timing, implicit buffering of event pairs, and sample-clock timing. On-demand mode can ignore edges while waiting for the host read. In sample-clock mode, the stored value is the most recently completed measurement before the sample edge. To compare cluster populations, use a mode which retains every pair and verify buffer coverage. A periodically polled host can sample only one part of the relative phase cycle.

For acceptance, record timebase source, tick period, event edges, filter settings, path uncertainty, and record selection. A fifty-nanosecond count grid cannot verify single-shot errors of a few nanoseconds around seventy-five. Use a finer timebase or appropriate instrument and verify a known interval first. Tighter oscillator tolerance adjusts the tick duration slightly. It cannot reveal the parts of an interval between the count grid points.

References

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.