Tutorials

AD7606 Channel Order and FRSTDATA: Verify Every Word Before Plotting

Published · Updated

A smooth waveform can still belong to the wrong input. Validate channel identity with distinct DC levels before using sine waves, FFTs or an application display. The test should identify physical input, serial lane, word position and final array index separately.

Device scope: Original eight-channel AD7606; other family members require their own timing and channel definitions.

Give each channel an identifiable signature

Eight-channel USB logic analyzer. Select suitable voltage thresholds, sample rate and probe access for the interface under test.
Eight-channel USB logic analyzer. Select suitable voltage thresholds, sample rate and probe access for the interface under test. Photo: Dilshan Jayakody from Maharagama, Sri Lanka · Source · CC BY-SA 2.0.

Begin with one nonzero input and the others tied as recommended for unused channels. Move that same source from V1 through V8, logging the array index that responds at each step. This avoids depending on eight accurately matched voltage sources and reveals a swapped connector or lane merger immediately.

Use a stable source inside the selected range and verify it at the board. Wait for analog settling after each move. The original AD7606 still converts unused channels; omitting their words changes framing rather than removing those channels from the conversion.

For a second test, apply two different levels to channels in different halves of the converter. A single-source sweep checks the map; a two-source test checks that the two serial lanes belong to the same conversion. Keep the conversion ID in the testbench and frame counter in the capture log.

Plan signal visibility during bring-up.

Map the serial lanes before merging them

Original AD7606: two serial lanesOriginal AD7606: two serial lanesDOUTAV1V2V3V4DOUTBV5V6V7V8Four word pairs → reorder into V1, V2, V3, V4, V5, V6, V7, V8
Engineering illustration. Numerical examples and timing assumptions are identified in the text.

For the original eight-channel AD7606, the first four words on DOUTA are V1 through V4, while DOUTB supplies V5 through V8. Reading both lanes for 64 clocks therefore gives four word pairs. A merger that simply appends each pair creates V1,V5,V2,V6,V3,V7,V4,V8, which is not the usual channel-major array.

With DOUTA alone, 128 clocks retrieve V1 through V8 in ascending order. With DOUTB alone the order begins with V5. Do not reuse this eight-channel mapping for AD7606-4 or AD7606-6; their split points differ.

Store the lane words in named temporary positions, then perform an explicit mapping to the output frame. Test the mapping with distinguishable synthetic words such as 0x1001 through 0x1008. These are simulation tags, not voltage calibration values. A correct output is the original ordered tag list, independent of how words arrived.

Review the external capture timing.

Check FRSTDATA while its meaning is valid

Observe the marker during the first wordObserve the marker during the first wordCSFRSTDATAFirst word: V1 on DOUTAAfter falling SCLK edge 16: lowSchematic event order only; not a scaled timing waveform.
Engineering illustration. Numerical examples and timing assumptions are identified in the text.

FRSTDATA marks the first word associated with V1 on DOUTA. In serial mode it returns low after the sixteenth falling SCLK edge. Checking it only after completing that word can therefore report a false framing error. A Linux driver patch documents this exact class of serial-versus-parallel mismatch.

Treat the marker as a timed observation, not a permanently asserted “channel one” flag. Capture CS, SCLK, FRSTDATA and the data lanes together. In a parallel implementation, verify the marker with the relevant read access rather than importing the serial timing rule.

After each reset or interrupted read, invalidate the partial frame and re-establish the documented read sequence. For acceptance, require the one-input sweep to map all eight channels correctly, the two-lane synthetic test to preserve one conversion ID, and the marker check to pass at the intended edge. A plotted waveform alone satisfies none of these conditions.

Keep the acquisition workload explicit.

Track the firmware/bitstream used for mapping.

Check your interpretation

After reading the first serial word, FRSTDATA is low. Must the ADC be reset?

No. It normally returns low after the sixteenth falling SCLK edge. Inspect the marker during the specified first-word interval.

Replay the task sequencePair 0: V1 and V5; Pair 1: V2 and V6; Pair 2: V3 and V7; Pair 3: V4 and V8

Pair 0: V1 and V5 → Pair 1: V2 and V6 → Pair 2: V3 and V7 → Pair 3: V4 and V8

Review packet: Save the eight-step channel sweep and the explicit lane-to-array map before requesting a framing review. Open the engineering review page. Opening this page does not transmit your traces.

Sources and limits

Documentation checked 20 November 2026. Calculated examples and proposed tests are identified above; no board measurement or timing-closure result is claimed.

Back to Tutorials

Related evidence and next tasks

Continue the task with the relevant source scope. These reading paths do not establish interchangeability or current supply.

Source addresses and citation trail

Full source addresses are retained below. Read each citation with its document revision, page, table and applicability conditions above.

  1. https://commons.wikimedia.org/wiki/File:8_Channel_USB_logic_analyzer_(5172098012).jpg
  2. https://creativecommons.org/licenses/by-sa/2.0
  3. https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf
  4. https://lkml.indiana.edu/hypermail/linux/kernel/2406.2/03367.html
  5. https://developer.analog.com/docs/linux/latest/drivers/iio-adc/ad7606.html