Precision current source is software-programmable

Maxim MAX4165 MAX5400 MAX6138

With the addition of a few inexpensive miniature components, the hard-wired, voltage-controlled current source of yesterday becomes a software-programmable voltage-controlled current source (Figure 1). A digital potentiometer, IC1 in conjunction with a precision op amp, IC2, sets current through a pass transistor, ISET, and a shunt regulator, IC3, provides a constant reference voltage across the digital potentiometer. By operating in its linear region, the transistor controls load current in response to the applied gate voltage. Each incremental step of the digital potentiometer increases or decreases the wiper voltage, VIN+, at the op amp's noninverting input. Thus, VIN+ varies with respect to the reference voltage, which in turn remains stable with respect to the supply rail:

where

RTOT is the total resistance of the digital potentiometer,
NSTEPS is the total number of steps of the digital potentiometer.

This software-programmable current source applies current to the load in 256 equal increments.
Figure 1. This software-programmable current source applies current to the load in 256 equal increments.

Many types of digital potentiometer are currently available, and the interface to these devices, besides the hard-wired type, can be one, two, or three wires. IC1, for example, has a three-wire SPI interface, and provides an end-to-end resistance of 50 kΩ with 256 incremental settings. Thus, each increment of the digital potentiometer changes VIN+ by:

Op amp IC2 regulates current through the pass transistor, and the digital potentiometer sets current through the RSENSE resistor. The voltage across RSENSE determines current through the pass transistor, ISET

The circuit can provide any current level for which the external components, RSENSE and the pass transistor, can handle the associated power dissipation (P = IV). Because the ratio setting of digital potentiometers is good, with a typical ratiometric resistor temperature coefficient of 5 ppm/°C), precision and stability for the current source depend primarily on the precision and stability of IC3 and RSENSE combined.

Materials on the topic

  1. Datasheet Maxim MAX4165
  2. Datasheet Maxim MAX5400
  3. Datasheet Maxim MAX6138