SPRADA5 April 2024 TMS320F28P550SJ , TMS320F28P559SJ-Q1
Bidirectional current sensing is needed in many battery-current monitoring applications to measure the battery's charge and discharge currents. To enable bidirectional current sensing, a positive voltage is applied to the non-inverting pin to offset the output voltage. If the differential input voltage is positive, the output voltage can be greater than the applied reference voltage; conversely, if the differential input voltage is negative, the output voltage can be lower than the applied reference voltage. As shown in Figure 2-8, the PGA module, in combination with DAC and ADC modules, senses the current flow through a sense resistor in both directions. An embedded buffered DAC module provides the reference voltage VREF. If the divider resisters R1=Rib and R2=Ria, the output voltage of the PGA is given by Equation 5.