SSDA010 August 2025 MSPM0G3507
A key part of this subsystem's functionality is computing the fully cascaded signal output, represented as G1 × G2 × Vin. This is handled in the cascade_input_voltage() function, which reconstructs the total amplified input by accounting for both op amp stages and the bias voltages applied through DACs.
Figure 7-2 Cascade_Input_Voltage() CodeThe mathematical model behind the computation is:
Derived from the combination of
Where:
This equation compensates for the effects of
both DAC-induced offsets in each stage and reconstructs the true input signal as if no
offset biasing had occurred. The use of a left shift (<< 4) in the
code accounts for the 8-bit DAC's limited resolution when scaled back to a 12-bit context,
as each DAC value must be multiplied by 16 (for example, 24) to align with the
full ADC range. This reconstructed signal is then transmitted via UART, providing the host
system with a DC-compensated representation of the original input voltage, scaled by the
configured system gains