Microchip MCP4131T-104E/MF Digital Potentiometer: Features, Application Circuit, and Control Interface
The Microchip MCP4131T-104E/MF is a single-channel, 7-bit (128 wiper steps) digital potentiometer that serves as a solid-state replacement for traditional mechanical potentiometers and trimmers. This device integrates an SPI-compatible serial interface, offering precise digital control over resistance values. It is widely used in applications requiring programmability, stability, and reliability, such as volume control, LCD contrast adjustment, sensor calibration, and programmable gain amplifiers.
Key Features
The MCP4131T-104E/MF boasts several important characteristics:
- Resistance Value: 100 kΩ.
- Resolution: 7-bit, providing 128 wiper positions.
- Interface: SPI-compatible serial control (supporting modes 0,0 and 1,1), simplifying microcontroller interfacing.
- Non-Volatile Wiper Storage: The wiper position can be stored in EEPROM, ensuring the device retains its setting after power-down.
- Low Power Consumption: Ideal for battery-powered and portable applications.
- Extended Temperature Range: Operates from -40°C to +125°C, suitable for industrial environments.
- Small Form Factor: Available in a compact 8-pin DFN package (3mm x 3mm).
Application Circuit
A typical application circuit for the MCP4131T-104E/MF is straightforward. The device operates as a three-terminal variable resistor. Terminals A and B are equivalent to the fixed ends of a mechanical pot, while the W (wiper) terminal is the adjustable output.
A common configuration is a programmable voltage divider. Here’s how to connect it:
1. Power Supply: Connect VDD to a voltage between 1.8V and 5.5V, and VSS to ground.
2. SPI Interface:
- Chip Select (CS/): Connect to a digital I/O pin on the microcontroller.
- Serial Clock (SCK): Connect to the microcontroller's SPI clock line.
- Serial Data In (SI): Connect to the microcontroller's MOSI (Master Out Slave In) line.
- Serial Data Out (SO): Can be used for daisy-chaining multiple devices or reading back the wiper register.
3. Potentiometer Pins: Connect Terminal A to a voltage reference (e.g., VDD or a signal source), Terminal B to ground, and use the Wiper (W) as the variable output.
A bypass capacitor (e.g., 0.1µF) between VDD and VSS is recommended for decoupling and stable operation.
Control Interface
The device is controlled via the SPI protocol. The microcontroller (master) sends a 16-bit command frame to the MCP4131 (slave) to change the wiper position or read its status.
The command frame consists of:
- Command Bits (C1, C0): Determine the operation (e.g., '00' to write to the wiper register, '01' to increment, '10' to decrement, '11' to read).
- Data Bits (D9…D0): For a write command, the 7 LSBs (D6…D0) contain the new wiper value (0 to 127). The remaining bits are ignored.

A basic Arduino code snippet to set the wiper to a mid-scale position (64) would look like this:
```cpp
include
const int CS_pin = 10; // Chip Select pin
void setup() {
pinMode(CS_pin, OUTPUT);
digitalWrite(CS_pin, HIGH); // Deselect device
SPI.begin();
}
void setWiper(int value) {
digitalWrite(CS_pin, LOW); // Select device
SPI.transfer(0x00); // Command byte: Write data
SPI.transfer(value); // Data byte: Wiper value (0-127)
digitalWrite(CS_pin, HIGH); // Deselect device
}
void loop() {
setWiper(64); // Set wiper to mid-scale
delay(1000);
}
```
ICGOODFIND Summary
The MCP4131T-104E/MF is a highly versatile and reliable digital potentiometer from Microchip. Its SPI interface and non-volatile memory make it exceptionally easy to integrate into digital systems for precise analog tuning and calibration. The combination of a wide operating voltage, small package, and robust feature set makes it an excellent choice for a vast range of applications in consumer electronics, industrial systems, and Internet of Things (IoT) devices, providing a significant upgrade over error-prone mechanical potentiometers.
Keywords:
1. Digital Potentiometer
2. SPI Interface
3. Wiper Control
4. Programmable Resistance
5. Non-Volatile Memory
