SPRADA5 April   2024 TMS320F28P550SJ , TMS320F28P559SJ-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 Supplementary Information
    2. 1.2 Features
    3. 1.3 Block Diagram
    4. 1.4 Operation Modes
  5. 2Use Cases
    1. 2.1 Buffer Mode for High-Impedance Source
    2. 2.2 Battery Voltage and Current Monitoring
    3. 2.3 Low-Side Shunt Current Monitoring
    4. 2.4 Three-Phase Low-Side Current Sensing
    5. 2.5 Bidirectional Current Sensing
    6. 2.6 Non-Inverting Amplifier for Low-Voltage Sensors
    7. 2.7 Non-Inverting Amplifier for Bipolar Signals
    8. 2.8 Standalone Mode for Various Applications
  6. 3Summary
  7. 4References

Non-Inverting Amplifier for Bipolar Signals

To sample a bipolar signal and translate the sample to a range designed for downstream ADC and CMPSS modules, A combination of the PGA and DAC modules can be employed. Another use case for this mode is a Hall effect sensor that senses the total current flowing in a circuit. The Hall effect sensor has an inbuilt offset, and the range is different than what ADC can measure. Hence, a voltage conditioning circuit is needed. As an example, while the PGA works in non-inverting mode, the PGA can help to translate an input signal of –1V to 2V to an output voltage of 0.05V to 3.3V. The signal conditioning circuit is shown in Figure 2-10. The reference voltage can be generated using an embedded buffered DAC. Even though Type-1 PGA supports the non-inverting mode, using Type-2 PGA helps save a pin to use for other functions, such as ADC pin and digital inputs and outputs (AGPIO).

GUID-20230501-SS0I-HTN1-RTR2-C1GZDQ3LVM5S-low.svgFigure 2-10 Signal Conditioning for a Bipolar Signal Using Non-inverting Mode

Assuming that the divider resisters Rea=Ria and Reb=Rib, the relationship between the output voltage VPGA_OUT, reference voltage VREF, and input signal Vsignal is given by Equation 7.

Equation 7. VPGA_OUT=(1+RibRib)VSignal+VREF

The equation implies that the circuit can be used to translate a negative sensor output voltage to a usable ADC input voltage range, in which PGA is employed in non-inverting mode.

The following code snippet shows where to add custom code to adjust the gain value using the internal gain resistors Ria and Rib, as well as selecting the appropriate filter resistor RFILT connected internally to the output of the PGA module.

//
// Gain
//
#define PGA_GAINVALUE PGA_GAIN_4

//
// Filter Resistor
//
#define PGA_FILTERVALUE PGA_LOW_PASS_FILTER_RESISTOR_800_OHM

//
// P-MUX selection
//
#define PGA_PMUXINPUT PGA_PMUX_POS 

//
// N-MUX selection
//
#define PGA_NMUXINPUT PGA_NMUX_RTAP

//
// M-MUX selection
//
#define PGA_MMUXINPUT PGA_MMUX_INVERTING_GAIN_NEG

In the code snippet, PGA_GAINVALUE represents the desired gain value for the PGA module, and PGA_FILTERVALUE represents the desired value for the filter resistor RFILT. Please make sure to consult the documentation or reference manual for your specific device to find the available RFILT and gain values, and then replace PGA_GAINVALUE and PGA_FILTERVALUE with the actual values you want to use in your circuit.