Datasheet
AD9125
Rev. 0 | Page 53 of 56
INTERFACE TIMING VALIDATION
The AD9125 provides on-chip sample error detection (SED)
circuitry that simplifies verification of the input data interface.
The SED compares the input data samples captured at the digital
input pins with a set of comparison values, which are loaded into
registers through the SPI port. Differences between these values
are detected and stored. Options are available for customizing SED
test sequencing and error handling.
SED OPERATION
The SED circuitry operates on a data set made up of four 16-bit
input words, denoted as I0, Q0, I1, and Q1. To properly align the
input samples, the first I and Q data-words (that is, I0 and Q0)
are indicated by asserting the FRAME signal for a minimum of
two complete input samples.
Figure 87 shows the input timing of the interface in dual-word
mode. The FRAME signal can be issued once at the start of the
data transmission, or it can be asserted repeatedly at intervals
coinciding with the I0 and Q0 data-words.
FRAME
D[31:16] I1I1I0 I0 I0
D[15:0] Q1Q1Q0 Q0 Q0
09016-055
Figure 87. Timing Diagram for Dual-Word Mode SED Operation
In word mode, the FRAME signal required to align the data
samples needs to be extended. The FRAME signal can be issued
once at the start of the data transmission, or it can be asserted
repeatedly at intervals coinciding with the I0 and Q0 data-words.
FRAME
D[15:0] Q1Q0I0 I1 I0 Q0
09016-056
Figure 88. Timing Diagram for Two-Port Mode SED Operation
The SED has three flag bits (Register 0x67, Bit 0, Bit 1, and
Bit 5) that indicate the results of the input sample comparisons.
The sample error detected bit (Register 0x67, Bit 5) is set when
an error is detected and remains set until the bit is cleared. The
SED also provides registers that indicate which input data bits
experienced errors (Register 0x70 through Register 0x73).
These bits are latched and indicate the accumulated errors
detected until cleared.
The autoclear mode has two effects: it activates the compare fail
bit and the compare pass bit (Register 0x67, Bit 1 and Bit 0) and
changes the behavior of Register 0x70 through Register 0x73. The
compare pass bit is set if the last comparison indicated that the
sample was error free. The compare fail bit is set if an error is
detected. The compare fail bit is automatically cleared by the
reception of eight consecutive error-free comparisons. When
autoclear mode is enabled, Register 0x70 through Register 0x73
accumulate errors as previously described but reset to all 0s after
eight consecutive error-free sample comparisons are made.
The sample error, compare pass, and compare fail flags can be
configured to trigger an
IRQ
when active, if desired. This is
done by enabling the appropriate bits in the Event Flag 2 register
(Register 0x07). shows a progression of the input sample
comparison results and the corresponding states of the error flags.
Table 28
SED EXAMPLE
Normal Operation
The following example illustrates the SED configuration for
continuously monitoring the input data and assertion of an
IRQ
when a single error is detected.
1.
Write to the following registers to enable the SED and load
the comparison values.
Register 0x67: 0x80
Register 0x68: I0[7:0]
Register 0x69: I0[15:8]
Register 0x6A: Q0[7:0]
Register 0x6B: Q0[15:8]
Register 0x6C: I1[7:0]
Register 0x6D: I1[15:8]
Register 0x6E: Q1[7:0]
Register 0x6F: Q1[15:8]
Comparison values can be chosen arbitrarily; however,
choosing values that require frequent bit toggling provides
the most robust test.
2.
Enable the SED error detect flag to assert the
IRQ
pin by
writing 0x04 to Register 0x05.
3.
Begin transmitting the input data pattern.
If
IRQ
is asserted, read Register 0x67 and Register 0x70 through
Register 0x73 to verify that a SED error was detected and to deter-
mine which input bits were in error. The bits in Register 0x70
through Register 0x73 are latched; therefore, the bits indicate
any errors that occurred on those bits throughout the test, not
just the errors that caused the error detected flag to be set.
Table 28. Progression of Comparison Outcomes and the Resulting SED Register Values
Compare Results (Pass/Fail) P F F F P P P P P P P P P F P F
Register 0x67, Bit 5 (Sample Error Detected) 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Register 0x67, Bit 1 (Compare Fail) 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1
Register 0x67, Bit 0 (Compare Pass) 1 0 0 0 1 1 1 1 1 1 1 1 1 0 1
0
Register 0x70 to Register 0x73 (Errors Detected x_BITS[15:0]) Z
1
N
2
N
2
N
2
N
2
N
2
N
2
N
2
N
2
N
2
N
2
N
2
Z
1
N
2
N
2
N
2
1
Z = all 0s.
2
N = nonzero.