SDAA378 August 2026 ADS125H18
The first step in the processOWCSMeasurements() function requires setting the first two OWCS steps to the appropriate input channel and calculating the number of conversions for that sequence. Figure 2-44 shows two register writes – one for the first OWCS step (OWCS disabled) and one for the second OWCs step (OWCS enabled) – and how the "total_conversions" variable is calculated assuming the OWCS operates on a single-ended input.
Figure 2-44 Updating the OWCS Step Values and Calculating Total Conversions in the OWCS CodeFigure 2-44 also shows an "if" statement that includes two additional register writes – one for the third OWCS step (OWCS disabled) and one for the fourth OWCs step (OWCS enabled) – and a "total_conversions" recalculation when the OWCS operates on a differential input. Refer to Figure 2-36 to visually understand why this behavior is required.
Also note that the OWCS algorithm never disables the third and fourth OWCS steps; instead, the algorithm simply does not store the data from these steps when the OWCS operates on a single-ended input. The user can alter the algorithm to disable these steps when they are not in use.