SLAA918C 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 Vee
25mA 300mA 0.25V 3V 3.3V 0V

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 High-Side Current Sensing Circuit Design Files.

This single-supply, high-side, low-cost current sensing option detects load current between 25mA and 300mA and converts it to an output voltage from 0.25V to 3V. High-side sensing allows for the system to identify ground shorts and does not create a ground disturbance on the load. The circuit uses the MSP430FR2311 SAC_L1 op-amp in general-purpose (GP) mode with OAx+ and OAx- dedicated as noninverting and inverting inputs. The same approach can be implemented with the MSP430FR2355, featuring four SAC_L3 peripherals with additional built-in DAC and PGA capabilities. The output of the integrated SAC op-amp can be sampled directly by the on-board ADC or monitored by the on-board comparator for further processing inside the MCU.

Design Notes

  • DC common-mode rejection ratio (CMRR) performance is dependent on the matching of the gain setting resistors, R2-R5.
  • Increasing the shunt resistor increases power dissipation.
  • Verify that the common-mode voltage is within the linear input operating region of the amplifier. The common-mode voltage is set by the resistor divider formed by R2, R3, and the bus voltage. Depending on the common-mode voltage determined by the resistor divider a rail-to-rail input (RRI) amplifier may not be required for this application.
  • An op amp that does not have a common-mode voltage range that extends to Vcc can be used in low-gain or an attenuating configuration.
  • A capacitor placed in parallel with the feedback resistor limits bandwidth, improves stability, and reduces noise.
  • Use the op amp in a linear output operating region. Linear output swing is usually specified under the AOL test conditions.
  • If the process is implemented with the MSP430FR2311 SAC_L1 or with the MSP430FR2355 SAC_L3, the op-amp is configured in general-purpose mode.
  • If the process is implemented using the MSP430FR2311 TIA, the input voltage range is limited to VCC/2, so the gain or range must be adjusted accordingly.
  • The High-Side Current Sensing Circuit Design Files include code examples showing how to properly initialize the SAC peripherals.

Design Steps

  1. The full transfer function of the circuit is provided below.
    V o = I in × R 1 × R 5 R 4 Given   R 2 = R 4   and   R 3 = R 5
  2. Calculate the maximum shunt resistance. Set the maximum voltage across the shunt to 60mV.
    R 1 = V iMax I iMax = 60 mV 300 mA = 200 m
  3. Calculate the gain to set the maximum output swing range.
    Gain = V oMax - V oMin ( I iMax - I iMin ) × R 1 = 3 V - 0.25 V ( 0 . 3 A - 0.025 A ) × 200 m = 50 V V
  4. Calculate the gain setting resistors to set the gain calculated in step 3.
    Choose   R 2 = R 4 = 1 . 01 k   ( Standard   value ) R 3 = R 5 = R 2 × Gain = 1 . 01 k × 50 V V = 50 . 5 k ( Standard   value )
  5. Calculate the common-mode voltage of the amplifier to verify linear operation.
    V cm = V CC × R 3 R 2 + R 3 = 3 . 3 V × 50.5 k 1.01 k + 50.5 k = 3 . 235 V
  6. The upper cutoff frequency (fH) is set by the non-inverting gain (noise gain) of the circuit and the gain bandwidth (GBW) of the op amp.
    f H = GBW  Noise Gain = 4 MHz 51 V V = 78 . 43   kHz

Design Simulations

DC Simulation Results

AC Simulation Results

References

  1. Texas Instruments, High-Side Current Sensing Circuit, design files
  2. Texas Instruments, MSP430FR2311 TINA-TI Spice Model, file download
  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