SLAA917B November   2019  – October 2024 MSP430FR2310 , MSP430FR2311 , MSP430FR2353 , MSP430FR2355

 

  1.   1
  2.   2
  3.   Trademarks
  4.   Revision History

Design Goals

Input Output Supply
IiMin IiMax VoMin VoMax Vcc Vref
–1A 1A 100mV 3.2V 3.3V 1.65V

Design Description

Some MSP430™ microcontrollers (MCUs) contain configurable integrated signal chain elements such as op-amps, DACs, and programmable gain stages. These elements make up a peripheral called the Smart Analog Combo (SAC). For information on the different types of SACs and how to leverage configurable analog signal chain capabilities, visit MSP430 MCUs Smart Analog Combo Training. To get started with your design, download the Low-side Bidirectional Current Sensing Design Files.

This single-supply low-side, bidirectional current sensing method accurately detects load currents from –1A to 1A. The linear range of the output is from 100mV to 3.2V. Low-side current sensing keeps the common-mode voltage near ground, and is thus most useful in applications with large bus voltages. This design leverages two of the four integrated op-amp blocks (SACs) in the MSP430FR2355 MCU. One SAC_L3 peripheral is configured as a general purpose op-amp to amplify the voltage across the shunt resistor, while the other is configured as a buffer to provide the bias voltage (Vref). The latter SAC_L3 block can also be configured in DAC buffer mode to provide Vref, replacing the external voltage divider circuit. The output of the circuit can be internally or externally connected to other integrated peripherals in the MSP430FR2355 MCU. For example, the analog-to-digital converter (ADC) window comparator can sample this output periodically (with no CPU intervention) and trigger an interrupt when the signal crosses a threshold.

Design Notes

  • To minimize errors, set R3 = R1 and R4 = R2.
  • Use precision resistors for higher accuracy.
  • Set output range based on linear output swing (see Aol specification).
  • Do not use low-side sensing in applications where the system load cannot withstand small ground disturbances or in applications that need to detect load shorts.
  • In the schematic above, the first SAC_L3 peripheral in the MSP430FR2355 MCU (U1) is configured in general purpose mode. The second SAC_L3 peripheral (U2) is also configured in general purpose mode, but with an external voltage divider.
  • Use the DAC buffer configuration for U2 (as seen in the code examples in the Low-side Bidirectional Current Sensing Design Files) to provide Vref instead of using the external voltage divider circuit.
  • This option can also be implemented using the MSP430FR2311 device by using the internal transimpedance amplifier for U1, and the SAC_L1 op-amp for U2.
  • The Low-side Bidirectional Current Sensing Design Files include code examples showing how to properly initialize the SAC peripherals.

Design Steps

  1. Determine the transfer equation given R4 = R2 and R1 = R3.
    V o = I i × R shunt × R 4 R 3 + V ref
    V ref = V cc × R 6 R 5 + R 6
  2. Determine the maximum shunt resistance.
    R shunt = V shunt I imax = 100 mV 1   A = 100
  3. Set reference voltage. Because the input current range is symmetric, set the reference to mid supply. Therefore, make R5 and R6 equal.
    R 5 = R 6 = 10
  4. Set the difference amplifier gain based on the op amp output swing. The op amp output is able to swing from 100mV to 3.2V, given a 3.3-V supply.
    Gain = V oMax V oMin R shunt × I iMax I iMin = 3 .2 V 100 mV 100 × 1   A 1   A = 15 .5 V V
    Gain = R 4 R 3 = 15 .5 V V
Choose  R 1 = R 3 = 1 . 3  (Standard Value)
R 2 = R 4 = 15 . 5 V V × 1 . 3 = 20 .15 20  (Standard Value)

Design Simulations

DC Simulation Results

Closed Loop AC Simulation Results

Transient Simulation Results

Design References

  1. Texas Instruments, MSP430 Low-side Bidirectional Current Sensing Circuit, code examples and SPICE simulation file
  2. Texas Instruments, 16MHz integrated analog microcontroller with 3.75-KB FRAM, Op Amp, TIA, comparator with DAC, 10-bit ADC, product page
  3. Texas Instruments, MSP430 MCUs Smart Analog Combo Training, video

Design Featured Op Amp

MSP430FRxx Smart Analog Combo
MSP430FR2311 SAC_L1 MSP430FR2355 SAC_L3
Vcc 2.0V to 3.6V
VCM -0.1V to VCC + 0.1V
Vout Rail-to-rail
Vos ±5mV
AOL 100dB
Iq 350µA (high-speed mode)
120µA (low-power mode)
Ib 50pA
UGBW 4MHz (high-speed mode) 2.8MHz (high-speed mode)
1.4MHz (low-power mode) 1MHz (low-power mode)
SR 3V/µs (high-speed mode)
1V/µs (low-power mode)
Number of channels 1 4
MSP430FR2311
MSP430FR2355

Design Alternate Op Amp

MSP430FR2311 Transimpedance Amplifier
Vcc 2.0V to 3.6V
VCM -0.1V to VCC/2V
Vout Rail-to-rail
Vos ±5mV
AOL 100dB
Iq 350µA (high-speed mode)
120µA (low-power mode)
Ib 5pA (TSSOP-16 with OA-dedicated pin input)
50pA (TSSOP-20 and VQFN-16)
UGBW 5MHz (high-speed mode)
1.8MHz (low-power mode)
SR 4V/µs (high-speed mode)
1V/µs (low-power mode)
Number of channels 1
MSP430FR2311