An acquisition board enables a peripheral for one millisecond per window and supplies a nominal 4 MHz clock. A steady 4 MHz on a frequency counter does not establish how many edges reached the peripheral in each valid window. If clock and window are synchronized, an ideal millisecond contains 4,000 complete periods. Acceptance also requires deciding whether edges near the opening and closing boundaries count.
Use the operational window to gate the count
Use an instrument with gated totalize. Feed one input the clock at the peripheral and provide a gate signal that matches the protocol. Select rising or falling edges and record the active gate polarity. Start with a short, controlled burst whose edges can be counted by inspection. Verify the first and last events accepted by the instrument, then increase to 4,000. An internal timed gate may not align with the operational window.
Capture several consecutive windows and save each count with the measured width of that window. If results alternate between 3,999 and 4,000, first check for an asynchronous window and a boundary crossing an eligible edge. If dozens of edges are missing while window width stays stable, trace pauses through the enable logic and the receiver. A glitch on the gate itself can also close the count early.
A total count detects missing edges but cannot locate them in time. Save a waveform when an abnormal count occurs. Look near the first and last edges for pulses that failed to reach the receiver threshold. Report edge polarity, timing boundaries and permitted count difference. If the peripheral recognizes only falling edges, use the same polarity on the counter.Keysight 53200 Series counting and time-measurement functions
