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

Using a 26 MHz active oscillator with MAX2769C: why does the host read 16-bit slices?

A satellite navigation receiver board uses a 26 MHz active oscillator as its external reference. The host also measures a 26 MHz serial clock, yet the I and Q samples look erratic. Start by recording a short trace before decoding. In MAX2769C serial streaming mode, four consecutive bits on the wire can belong to four different sample instants. A host that assembles a complex sample from each group of four consecutive bits can corrupt the data even when the clock and logic levels meet their requirements.

Each bit position gets a separate slice

The MAX2769C DSP interface can serialize the ADC outputs. Consider two bits each for I and Q, using sign-and-magnitude encoding. The four parallel outputs are I sign, I magnitude, Q sign, and Q magnitude. The device collects sixteen consecutive sample instants for each bit position and then sends the four groups in order. The sixth bit of the first group and the sixth bit of the third group are the I and Q signs from one sample. Two neighboring bits within the first group are I signs from successive samples. Looking at the decimal values of the captured 16-bit words tells you little about where the host may have scrambled the sampling order.

A decoder can retain the four slices and then use the same position index in each slice. For an offline test, construct sixteen sample instants with a single bit changing at sample six. Check that only the specified channel changes at that position after decoding. Move the change for another bit position elsewhere so that a symmetric input cannot accidentally hide an ordering error. Use the same decoder for the synthetic test and the receiver capture. Keep the raw capture so that a second host or offline tool can independently check the result.

The serial clock must empty the four slices before the next load

The input reference, ADC sampling clock, and streaming clock occupy different positions in the clock tree. For a throughput example, assume the 26 MHz active oscillator is correctly interfaced to the receiver, the ADC measures 6.5 MHz after division by four, and the serializer shifts at 26 MHz. Sixteen sample instants take about 2.462 microseconds to collect. Clocking out 64 bits at 26 MHz also takes about 2.462 microseconds, fitting in the following sample block exactly. That is the four-to-one minimum in the data sheet. The throughput calculation leaves the host input setup, hold, and capture-edge checks to the board timing review.

If the serializer instead runs at 13 MHz, it takes about 4.923 microseconds to send all 64 bits. The next group is due before that transfer finishes. Raising the priority of the host's read task cannot change the serializer rate. With only the two I bits selected, the same 16-sample window needs 32 serial bits. Those bits take about 1.231 microseconds to shift at 26 MHz. Spare positions in the window can read as zeros. A valid sample can also contain zeros, so use the configuration and synchronization markers to identify padding before discarding anything.

Check expected rates against actual rates during configuration. The clock diagram shows the reference dividers and clock selection, but data sheet Table 17 and register Table 30 state opposite meanings for the FCLKIN setting. When porting firmware, record the document revision and verify the sampling rate against a known reference and a recognizable synchronization interval. A register write recorded in a log cannot establish the resulting rate by itself. If the streaming clock changes, recapture the trace and check the number of bits and their synchronization intervals again. Those measurements give separate evidence for a throughput failure and a clock selection error.

Establish slice boundaries before examining numerical samples

DATASYNC marks the start of each valid 16-bit slice when DATSYNCEN is enabled. Its pulse does not label a slice as I sign or Q magnitude. Capture the streaming start command, TIME_SYNC, DATASYNC, and the serial clock. Establish slice order from a known start and configuration, then count through the expected slices. If frame number insertion is enabled, the receiver must consume that additional field. A dedicated unpacking test can disable the insertion. TIME_SYNC covers multiple sample instants. Capture both synchronization signals to distinguish a one-bit slip within a slice from assembling a sample with slices from the wrong positions.

During initial board acceptance, keep separate records for reference compliance and data-stream integrity. Check the 26 MHz signal and its amplitude at the actual receiver input. Then run two-bit and four-bit modes, capture several consecutive sample blocks, and decode both traces offline using their respective settings. Check that all I and Q bits return in four-bit mode and that the host does not wait for a third or fourth slice in two-bit mode. Finally, drop a slice on purpose and restart capture to verify that the next fully recovered sample block begins on the expected boundary. When a compatible 26 MHz active oscillator is substituted, the same test distinguishes a clock or voltage problem from a sample assembly error.

When porting the receiver firmware, check the pin assignments as well. The manufacturer diagram shows the same group of pins serving as data, clock, data sync, and time sync during streaming. A prototype wired for two parallel ADC outputs can lack a slice marker when software later enables four-bit streaming. Match each board connection to the active mode before debugging the decoder. When transferring to another processor clock domain, assemble the slice and its validity and order information in the serial clock domain before handing it to the downstream buffer. A fixed-length word counted using the processor clock can otherwise have the wrong boundaries.

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.