Do not label data by a software counter that assumes every conversion was read. With several channels enabled, the converter advances through them and updates its data register as each result becomes available. If the host misses one service opportunity, its next read can contain a result from a different channel than expected. A precise external master clock does not align the host's indexing scheme.
Set DAT_STA in the AD7193 mode register to append the status byte to each data read. The low four status bits, CHD[3:0], identify the channel associated with the result in the data register. They do not identify the channel currently converting. Update the driver to read the 24-bit conversion and the eight-bit status as part of the same transaction, allowing separately for the command format of the selected read mode. A driver that still stops after 24 data bits has not collected the tag.
Use two known, distinct inputs and log each raw result with its tag. Deliberately skip a read in a bench run and verify that subsequent results still go to the correct channel. The tag prevents mislabelling, not sample loss. Check the host service time against DOUT/RDY if every individual sample is required. A mode register write resets the modulator and filter, so establish readiness again after a configuration change. Confirm the exact OY oscillator option and the external MCLK2 clock setting separately from the tagging test.
Related selection guide: MERLIN Crystal Timing: Clock oscillators
Resource link: https://www.mecxtal.com.cn/en/products/oscillators.html
