• High-Voltage Tolerant Digital Inputs: Up to 12.5V
• Supports Split Rail Applications
• Internal weak pull-up on all digital inputs
• Wide Operating Voltage:
- 2.7V to 5.5V - Device Characteristics
Specified
- 1.8V to 5.5V - Device Operation
• Wide Bandwidth (-3 dB) Operation:
- 2 MHz (typ.) for 5.0 kΩ device
• Extended temperature range (-40°C to +125°C)
)
Description
The MCP41XX and MCP42XX devices offer a wide
range of product offerings using an SPI interface. This
family of devices support 7-bit and 8-bit resistor
networks, and Potentiometer and Rheostat pinouts.
SPI Serial
Interface
Module &
Control
Logic
(WiperLock™
Technology)
Resistor
Network 0
(Pot 0)
Wiper 0
& TCON
Register
Resistor
Network 1
(Pot 1)
Wiper 1
& TCON
Register
CS
SCK
SDI
SDO
NC
SHDN
Memory (4x9)
Wiper0
Wiper1
TCON
STATUS
P0A
P0W
P0B
P1A
P1W
P1B
For Dual Resistor Network
Devices Only
For Dual Potentiometer
Devices Only
Device Block Diagram
Device Features
Resistance (typical)
Device
MCP4131
MCP4132
(3)
1 Potentiometer
(3)
1RheostatSPI RAM No Mid-Scale 5.0, 10.0, 50.0, 100.075129 1.8V to 5.5V
MCP41411 Potentiometer
Wiper
Configuration
# of POTs
Typ e
Memory
Control
Interface
(1)
SPI RAMNo Mid-Scale 5.0, 10.0, 50.0, 100.075129 1.8V to 5.5V
(1)
SPIEEYe s NV Wiper 5.0, 10.0, 50.0, 100.075129 2.7V to 5.5V
WiperLock
Technology
POR Wiper
R
Setting
Options (kΩ)
AB
MCP41421RheostatSPIEEYe s NV Wiper 5.0, 10.0, 50.0, 100.075129 2.7V to 5.5V
(3)
MCP4151
MCP4152
1 Potentiometer
(3)
1RheostatSPI RAM No Mid-Scale 5.0, 10.0, 50.0, 100.075257 1.8V to 5.5V
MCP41611 Potentiometer
(1)
SPI RAMNo Mid-Scale 5.0, 10.0, 50.0, 100.075257 1.8V to 5.5V
(1)
SPIEEYe s NV Wiper 5.0, 10.0, 50.0, 100.075257 2.7V to 5.5V
MCP41621RheostatSPIEEYe s NV Wiper 5.0, 10.0, 50.0, 100.075257 2.7V to 5.5V
MCP4231
MCP4232
2 Potentiometer
(3)
2RheostatSPI RAM No Mid-Scale 5.0, 10.0, 50.0, 100.075129 1.8V to 5.5V
(3)
MCP42412 Potentiometer
MCP42422RheostatSPIEEYe s NV Wiper 5.0, 10.0, 50.0, 100.075129 2.7V to 5.5V
MCP4251
MCP4252
MCP42612 Potentiometer
MCP42622RheostatSPIEEYe s NV Wiper 5.0, 10.0, 50.0, 100.075257 2.7V to 5.5V
Note 1: Floating either terminal (A or B) allows the device to be used as a Rheostat (variable resistor).
(3)
2 Potentiometer
(3)
2RheostatSPI RAM No Mid-Scale 5.0, 10.0, 50.0, 100.075257 1.8V to 5.5V
2: Analog characteristics only tested from 2.7V to 5.5V unless otherwise noted.
3: Please check Microchip web site for device release and availability.
(1)
SPI RAMNo Mid-Scale 5.0, 10.0, 50.0, 100.075129 1.8V to 5.5V
(1)
SPIEEYe s NV Wiper 5.0, 10.0, 50.0, 100.075129 2.7V to 5.5V
(1)
SPI RAMNo Mid-Scale 5.0, 10.0, 50.0, 100.075257 1.8V to 5.5V
(1)
SPIEEYe s NV Wiper 5.0, 10.0, 50.0, 100.075257 2.7V to 5.5V
Note 1: Power dissipation is calculated as follows:
, SCK, SDI, SDI/SDO, and
with respect to VSS
SS ............................
IK
OK
DD
XA, PXW & PXB pins ............±2.5 mA
Pdis = VDD x {IDD - ∑ IOH} + ∑ {(VDD-VOH) x IOH} + ∑(VOl x IOL)
......................................
pin .................................100 mA
SS
pin ....................................100 mA
) ......................... +150°C
J
-0.6V to 12.5V
-0.3V to VDD + 0.3V
† Notice: Stresses above those listed under “Maximum
Ratings” may cause permanent damage to the device. This is
a stress rating only and functional operation of the device at
those or any other conditions above those indicated in the
operational listings of this specification is not implied.
Exposure to maximum rating conditions for extended periods
may affect device reliability.
Note 1: Resistance is defined as the resistance between terminal A to terminal B.
2: INL and DNL are measured at V
with VA = VDD and VB = VSS.
W
3: MCP4XX1 only.
4: MCP4XX2 only, includes V
WZSE
and V
WFSE
.
5: Resistor terminals A, W and B’s polarity with respect to each other is not restricted.
6: This specification by design.
7: Non-linearity is affected by wiper resistance (R
), which changes significantly over voltage and
W
temperature.
8: The MCP4XX1 is externally connected to match the configurations of the MCP41X2 and MCP42X2, and
then tested.
9: POR/BOR is not rate dependent.
10: Supply current is independent of current through the resistor network.
Note 1: Resistance is defined as the resistance between terminal A to terminal B.
2: INL and DNL are measured at VW with VA = VDD and VB = VSS.
3: MCP4XX1 only.
4: MCP4XX2 only, includes V
WZSE
and V
WFSE
.
5: Resistor terminals A, W and B’s polarity with respect to each other is not restricted.
6: This specification by design.
7: Non-linearity is affected by wiper resistance (R
), which changes significantly over voltage and
W
temperature.
8: The MCP4XX1 is externally connected to match the configurations of the MCP41X2 and MCP42X2, and
then tested.
9: POR/BOR is not rate dependent.
10: Supply current is independent of current through the resistor network.
≤ +125°C (extended)
A
= 5.5V, TA = +25°C.
DD
Code = Full-Scale
= -40°C to +85°C
A
= -40°C to +125°C
A
VNote 5, Note 6
wiper when wiper is either Full Scale or
Zero Scale.
Note 1: Resistance is defined as the resistance between terminal A to terminal B.
2: INL and DNL are measured at VW with VA = VDD and VB = VSS.
3: MCP4XX1 only.
4: MCP4XX2 only, includes V
WZSE
and V
WFSE
.
5: Resistor terminals A, W and B’s polarity with respect to each other is not restricted.
6: This specification by design.
7: Non-linearity is affected by wiper resistance (R
), which changes significantly over voltage and
W
temperature.
8: The MCP4XX1 is externally connected to match the configurations of the MCP41X2 and MCP42X2, and
then tested.
9: POR/BOR is not rate dependent.
10: Supply current is independent of current through the resistor network.
Note 1: Resistance is defined as the resistance between terminal A to terminal B.
2: INL and DNL are measured at V
with VA = VDD and VB = VSS.
W
3: MCP4XX1 only.
4: MCP4XX2 only, includes V
WZSE
and V
WFSE
.
5: Resistor terminals A, W and B’s polarity with respect to each other is not restricted.
6: This specification by design.
7: Non-linearity is affected by wiper resistance (R
), which changes significantly over voltage and
W
temperature.
8: The MCP4XX1 is externally connected to match the configurations of the MCP41X2 and MCP42X2, and
then tested.
9: POR/BOR is not rate dependent.
10: Supply current is independent of current through the resistor network.
Note 1: Resistance is defined as the resistance between terminal A to terminal B.
2: INL and DNL are measured at V
with VA = VDD and VB = VSS.
W
3: MCP4XX1 only.
4: MCP4XX2 only, includes V
WZSE
and V
WFSE
.
5: Resistor terminals A, W and B’s polarity with respect to each other is not restricted.
6: This specification by design.
7: Non-linearity is affected by wiper resistance (R
), which changes significantly over voltage and
W
temperature.
8: The MCP4XX1 is externally connected to match the configurations of the MCP41X2 and MCP42X2, and
then tested.
9: POR/BOR is not rate dependent.
10: Supply current is independent of current through the resistor network.
Note 1: Resistance is defined as the resistance between terminal A to terminal B.
2: INL and DNL are measured at V
with VA = VDD and VB = VSS.
W
3: MCP4XX1 only.
4: MCP4XX2 only, includes V
WZSE
and V
WFSE
.
5: Resistor terminals A, W and B’s polarity with respect to each other is not restricted.
6: This specification by design.
7: Non-linearity is affected by wiper resistance (R
), which changes significantly over voltage and
W
temperature.
8: The MCP4XX1 is externally connected to match the configurations of the MCP41X2 and MCP42X2, and
then tested.
9: POR/BOR is not rate dependent.
10: Supply current is independent of current through the resistor network.
Note 1: Resistance is defined as the resistance between terminal A to terminal B.
2: INL and DNL are measured at V
with VA = VDD and VB = VSS.
W
3: MCP4XX1 only.
4: MCP4XX2 only, includes V
WZSE
and V
WFSE
.
5: Resistor terminals A, W and B’s polarity with respect to each other is not restricted.
6: This specification by design.
7: Non-linearity is affected by wiper resistance (R
), which changes significantly over voltage and
W
temperature.
8: The MCP4XX1 is externally connected to match the configurations of the MCP41X2 and MCP42X2, and
then tested.
9: POR/BOR is not rate dependent.
10: Supply current is independent of current through the resistor network.
73Setup time of SDI input to SCK↑ edgeT
74Hold time of SDI input from SCK↑ edgeTscH2
77CS Inactive (VIH) to SDO output hi-impedance TcsH2DOZ—50nsNote 1
80SDO data output valid after SCK↓ edgeTscL2
83CS
84Hold time of CS
Inactive (VIH) after SCK↑ edgeTscH2csI100—nsVDD = 2.7V to 5.5V
TABLE 1-3:SPI REQUIREMENTS FOR SDI/SDO MULTIPLEXED (READ OPERATION ONLY)
CharacteristicSymbolMinMax UnitsConditions
SCK Input FrequencyF
Active (VIL or V
CS
SCK input high time TscH1.8—us
SCK input low time TscL1.8—ns
Setup time of SDI input to SCK↑ edgeT
Hold time of SDI input from SCK↑ edgeTscH2
CS Inactive (VIH) to SDO output hi-impedance TcsH2DOZ—50nsNote 1
SDO data output valid after SCK↓ edgeTscL2
SDO data output valid after
Active (VIL or V
CS
Inactive (VIH) after SCK↓ edgeTscH2csI100—ns
CS
Hold time of CS Inactive (VIH) to
Active (VIL or V
CS
Note 1: This specification by design.
2: This table is for the devices where the SPI’s SDI and SDO pins are multiplexed (SDI/SDO) and a Read
command is issued. This is NOT required for SDI/SDO operation with the Increment, Decrement, or Write
commands. This data rate can be increased by having external pull-up resistors to increase the rising
edges of each bit.
Note:The graphs and tables provided following this note are a statistical summary based on a limited number of
samples and are provided for informational purposes only. The performance characteristics listed herein
are not tested or guaranteed. In some graphs or tables, the data presented may be outside the specified
operating range (e.g., outside specified power supply range) and therefore outside the warranted range.
The descriptions of the pins are listed in Ta b le 3 - 1.
Additional descriptions of the device pins follows.
TABLE 3-1:PINOUT DESCRIPTION FOR THE MCP413X/415X/423X/425X
Pin
SingleDual
Rheo Pot
(1)
RheoPot
8L8L10L14L16L
SymbolI/O
Buffer
Type
Weak
Pull-up/
down
(2)
Standard Function
111116
CS
IHV w/ST“smart” SPI Chip Select Input
22221SCKIHV w/ST“smart” SPI Clock Input
3—332SDI IHV w/ST“smart” SPI Serial Data Input
—3———SDI/SDO
44443, 4V
SS
(1, 3)
I/OHV w/ST“smart” SPI Serial Data Input/Output
—P—Ground
——555P1BAAnalogNoPotentiometer 1 Terminal B
——666P1WAAnalogNoPotentiometer 1 Wiper Terminal
———77P1AAAnalogNoPotentiometer 1 Terminal A
—5—88P0AAAnalogNoPotentiometer 0 Terminal A
56799P0WAAnalogNoPotentiometer 0 Wiper Terminal
6781010P0BAAnalogNoPotentiometer 0 Terminal B
———1213
SHDN
IHV w/ST“smart” Hardware Shutdown
7—91314SDOOONoSPI Serial Data Out
88101415V
—P—Positive Power Supply Input
DD
———1111,12 NC———No Connection
(4)
(4)
(4)
—
(4)
Exposed Pad———Note 4
Legend:HV w/ST = High Voltage tolerant input (with Schmidtt trigger input)
A = Analog pins (Potentiometer terminals) I = digital input (high Z)
O = digital output I/O = Input / Output
P = Power
Note 1: The 8-lead Single Potentiometer devices are pin limited so the SDO pin is multiplexed with the SDI pin
(SDI/SDO pin). After the Address/Command (first 6-bits) are received, If a valid Read command has been
requested, the SDO pin starts driving the requested read data onto the SDI/SDO pin.
2: The pin’s “smart” pull-up shuts off while the pin is forced low. This is done to reduce the standby and shut-
down current.
3: The SDO is an open drain output, which uses the internal “smart” pull-up. The SDI input data rate can be
at the maximum SPI frequency. the SDO output data rate will be limited by the “speed” of the pull-up, customers can increase the rate with external pull-up resistors.
4: The DFN and QFN packages have a contact on the bottom of the package. This contact is conductively
connected to the die substrate, and therefore should be unconnected or connected to the same ground as
the device’s V
The CS pin is the serial interface’s chip select input.
Forcing the CS
Forcing the CS pin to V
serial commands.
pin to VIL enables the serial commands.
enables the high-voltage
IHH
3.2Serial Data In (SDI)
The SDI pin is the serial interfaces Serial Data In pin.
This pin is connected to the Host Controllers SDO pin.
3.3Serial Data In / Serial Data Out
(SDI/SDO)
On the MCP41X1 devices, pin-out limitations do not
allow for individual SDI and SDO pins. On these
devices, the SDI and SDO pins are multiplexed.
The MCP41X1 serial interface knows when the pin
needs to change from being an input (SDI) to being an
output (SDO). The Host Controller’s SDO pin must be
properly protected from a drive conflict.
3.4Ground (VSS)
The VSS pin is the device ground reference.
3.5Potentiometer Terminal B
The terminal B pin is connected to the internal potentiometer’s terminal B.
The potentiometer’s terminal B is the fixed connection
to the Zero Scale wiper value of the digital potentiometer. This corresponds to a wiper value of 0x00 for both
7-bit and 8-bit devices.
The terminal B pin does not have a polarity relative to
the terminal W or A pins. The terminal B pin can
support both positive and negative current. The voltage
on terminal B must be between V
MCP42XX devices have two terminal B pins, one for
each resistor network.
and VDD.
SS
3.6Potentiometer Wiper (W) Terminal
3.7Potentiometer Terminal A
The terminal A pin is available on the MCP4XX1
devices, and is connected to the internal potentiometer’s terminal A.
The potentiometer’s terminal A is the fixed connection
to the Full Scale wiper value of the digital potentiometer. This corresponds to a wiper value of 0x100 for 8-bit
devices or 0x80 for 7-bit devices.
The terminal A pin does not have a polarity relative to
the terminal W or B pins. The terminal A pin can
support both positive and negative current. The voltage
on terminal A must be between V
The terminal A pin is not available on the MCP4XX2
devices, and the internally terminal A signal is floating.
MCP42X1 devices have two terminal A pins, one for
each resistor network.
and VDD.
SS
3.8Shutdown (SHDN)
The SHDN pin is used to force the resistor network
terminals into the hardware shutdown state.
3.9Serial Data Out (SDO)
The SDO pin is the serial interfaces Serial Data Out pin.
This pin is connected to the Host Controllers SDI pin.
This pin allows the Host Controller to read the digital
potentiometers registers, or monitor the state of the
command error bit.
3.10Positive Power Supply Input (VDD)
The VDD pin is the device’s positive power supply input.
The input power supply is relative to V
While the device V
performance of the device may not meet the data sheet
specifications.
DD
< V
(2.7V), the electrical
min
SS
.
3.11No Connection
Those pins should be either connected to VDD or VSS.
The terminal W pin is connected to the internal potentiometer’s terminal W (the wiper). The wiper terminal is
the adjustable terminal of the digital potentiometer. The
terminal W pin does not have a polarity relative to
terminals A or B pins. The terminal W pin can support
both positive and negative current. The voltage on
terminal W must be between V
MCP42XX devices have two terminal W pins, one for
each resistor network.
This Data Sheet covers a family of thirty-two Digital
Potentiometer and Rheostat devices that will be
referred to as MCP4XXX. The MCP4XX1 devices are
the Potentiometer configuration, while the MCP4XX2
devices are the Rheostat configuration.
As the Device Block Diagram shows, there are four
main functional blocks. These are:
• POR/BOR Operation
• Memory Map
• Resistor Network
• Serial Interface (SPI)
The POR/BOR operation and the Memory Map are
discussed in this section and the Resistor Network and
SPI operation are described in their own sections. The
Device Commands commands are discussed in
Section 7.0.
4.1POR/BOR Operation
The Power-on Reset is the case where the device is
having power applied to it from V
Reset occurs when a device had power applied to it,
and that power (voltage) drops below the specified
range.
The devices RAM retention voltage (V
than the POR/BOR voltage trip point (V
maximum V
When V
POR/VBOR
POR/VBOR
voltage is less then 1.8V.
< VDD < 2.7V, the electrical
performance may not meet the data sheet
specifications. In this region, the device is capable of
incrementing, decrementing, reading and writing to its
volatile memory if the proper serial command is executed.
4.1.1POWER-ON RESET
When the device powers up, the device VDD will cross
the V
POR/VBOR
the V
POR/VBOR
• Volatile wiper register is loaded with the default
wiper value
• The TCON register is loaded it’s default value
• The device is capable of digital operation
voltage. Once the VDD voltage crosses
voltage the following happens:
. The Brown-out
SS
) is lower
RAM
POR/VBOR
). The
4.1.2BROWN-OUT RESET
When the device powers down, the device VDD will
cross the V
Once the V
POR/VBOR
DD
voltage.
voltage decreases below the V
POR/VBOR
voltage the following happens:
• Serial Interface is disabled
If the V
voltage decreases below the V
DD
RAM
voltage
the following happens:
• Volatile wiper registers may become corrupted
• TCON register may become corrupted
As the voltage recovers above the V
POR/VBOR
voltage
see Section 4.1.1 “Power-on Reset”.
Serial commands not completed due to a brown-out
condition may cause the memory location to become
corrupted.
4.2Memory Map
The device memory is 16 locations that are 9-bits wide
(16x9 bits). This memory space contains four volatile
locations (see Table 4-1).
This register contains 5 status bits. These bits show the
state of the Shutdown bit. The STATUS register can be
accessed via the READ commands. Register 4-1
describes each STATUS register bit.
The STATUS register is placed at Address 05h.
REGISTER 4-1:STATUS REGISTER
R-1R-1R-1R-1R-0R-xR-xR-xR-x
D8:D5RESVRESVRESVSHDNRESV
bit 7bit 0
Legend:
R = Readable bitW = Writable bitU = Unimplemented bit, read as ‘0’
-n = Value at POR‘1’ = Bit is set‘0’ = Bit is clearedx = Bit is unknown
bit 8-5D8:D5: Reserved. Forced to “1”
bit 4-2RESV: Reserved
bit 1SHDN: Hardware Shutdown pin Status bit (Refer to Section 5.3 “Shutdown” for further information)
This bit indicates if the Hardware shutdown pin (SHDN
Terminal A and forces the wiper (Terminal W) to Terminal B (see Figure 5-2). While the device is in Hardware Shutdown (the SHDN
read.
1 = MCP4XXX is in the Hardware Shutdown state
0 = MCP4XXX is NOT in the Hardware Shutdown state
bit 0RESV: Reserved
pin is low) the serial interface is operational so the STATUS register may be
This register contains 8 control bits. Four bits are for
Wiper 0, and four bits are for Wiper 1. Register 4-2
describes each bit of the TCON register.
The state of each resistor network terminal connection
is individually controlled. That is, each terminal connection (A, B and W) can be individually connected/disconnected from the resistor network. This allows the
system to minimize the currents through the digital
potentiometer.
REGISTER 4-2:TCON BITS
R-1R/W-1R/W-1R/W-1R/W-1R/W-1R/W-1R/W-1R/W-1
D8R1HWR1AR1WR1BR0HWR0AR0WR0B
bit 8bit 0
Legend:
R = Readable bitW = Writable bitU = Unimplemented bit, read as ‘0’
-n = Value at POR‘1’ = Bit is set‘0’ = Bit is clearedx = Bit is unknown
bit 8D8: Reserved. Forced to “1”
bit 7R1HW: Resistor 1 Hardware Configuration Control bit
This bit forces Resistor 1 into the “shutdown” configuration of the Hardware pin
1 = Resistor 1 is NOT forced to the hardware pin “shutdown” configuration
0 = Resistor 1 is forced to the hardware pin “shutdown” configuration
bit 6R1A: Resistor 1 Terminal A (P1A pin) Connect Control bit
This bit connects/disconnects the Resistor 1 Terminal A to the Resistor 1 Network
1 = P1A pin is connected to the Resistor 1 Network
0 = P1A pin is disconnected from the Resistor 1 Network
bit 5R1W: Resistor 1 Wiper (P1W pin) Connect Control bit
This bit connects/disconnects the Resistor 1 Wiper to the Resistor 1 Network
1 = P1W pin is connected to the Resistor 1 Network
0 = P1W pin is disconnected from the Resistor 1 Network
bit 4R1B: Resistor 1 Terminal B (P1B pin) Connect Control bit
This bit connects/disconnects the Resistor 1 Terminal B to the Resistor 1 Network
1 = P1B pin is connected to the Resistor 1 Network
0 = P1B pin is disconnected from the Resistor 1 Network
bit 3R0HW: Resistor 0 Hardware Configuration Control bit
This bit forces Resistor 0 into the “shutdown” configuration of the Hardware pin
1 = Resistor 0 is NOT forced to the hardware pin “shutdown” configuration
0 = Resistor 0 is forced to the hardware pin “shutdown” configuration
bit 2R0A: Resistor 0 Terminal A (P0A pin) Connect Control bit
This bit connects/disconnects the Resistor 0 Terminal A to the Resistor 0 Network
1 = P0A pin is connected to the Resistor 0 Network
0 = P0A pin is disconnected from the Resistor 0 Network
(1, 2)
The value that is written to this register will appear on
the resistor network terminals when the serial command has completed.
On a POR/BOR this register is loaded with 1FFh
(9-bits), for all terminals connected. The Host Controller needs to detect the POR/BOR event and then
update the Volatile TCON register value.
Note 1: The hardware SHDN
inactive state, the TCON register will control the state of the terminals. The SHDN
state of the TCON bits.
2: These bits do not affect the wiper register values.
, Terminal voltages (on A, B,
and W), and temperature.
Also for the same conditions, each tap
selection resistance has a small variation.
This R
W
variation has greater effects on
some specifications (such as INL) for the
smaller resistance devices (5.0 kΩ)
compared to larger resistance devices
(100.0 kΩ).
R
AB
8-Bit
N =
128
127
126
1
0
(01h)
(00h)
(7Eh)
(7Fh)
(80h)
7-Bit
N =
R
S
R
AB
256()
-------------=
R
S
R
AB
128()
------------- -=
8-bit Device
7-bit Device
5.0RESISTOR NETWORK
The Resistor Network has either 7-bit or 8-bit resolution. Each Resistor Network allows zero scale to full
scale connections. Figure 5-1 shows a block diagram
for the resistive network of a device.
The Resistor Network is made up of several parts.
These include:
• Resistor Ladder
•Wiper
• Shutdown (Terminal Connections)
Devices have either one or two resistor networks,
These are referred to as Pot 0 and Pot 1.
5.1Resistor Ladder Module
The resistor ladder is a series of equal value resistors
) with a connection point (tap) between the two
(R
S
resistors. The total number of resistors in the series
(ladder) determines the RAB resistance (see
Figure 5-1). The end points of the resistor ladder are
connected to analog switches which are connected to
the device Terminal A and Terminal B pins. The R
(and RS) resistance has small variations over voltage
and temperature.
For an 8-bit device, there are 256 resistors in a string
between terminal A and terminal B. The wiper can be
set to tap onto any of these 256 resistors thus providing
257 possible settings (including terminal A and terminal
B).
For a 7-bit device, there are 128 resistors in a string
between terminal A and terminal B. The wiper can be
set to tap onto any of these 128 resistors thus providing
129 possible settings (including terminal A and terminal
B).
Each tap point (between the RS resistors) is a
connection point for an analog switch. The opposite
side of the analog switch is connected to a common
signal which is connected to the Terminal W (Wiper)
pin.
A value in the volatile wiper register selects which
analog switch to close, connecting the W terminal to
the selected node of the resistor ladder.
The wiper can connect directly to Terminal B or to
Terminal A. A zero-scale connections, connects the
Terminal W (wiper) to Terminal B (wiper setting of
000h). A full-scale connections, connects the Terminal
W (wiper) to Terminal A (wiper setting of 100h or 80h).
In these configurations the only resistance between the
Terminal W and the other Terminal (A or B) is that of the
analog switches.
A wiper setting value greater than full scale (wiper
setting of 100h for 8-bit device or 80h for 7-bit devices)
will also be a Full Scale setting (Terminal W (wiper)
connected to Terminal A). Ta bl e 5 -1 illustrates the full
wiper setting map.
Equation 5-2 illustrates the calculation used to deter-
mine the resistance between the wiper and terminal B.
A POR/BOR event will load the Volatile Wiper register
value with the default value. Table 5-2 shows the
default values offered. Custom POR/BOR options are
available. Contact the local Microchip Sales Office.
TABLE 5-2:DEFAULT FACTORY
SETTINGS SELECTION
Wiper Code
Code
Resistance
-5025.0 kΩMid-scale80h40h
-10310.0 kΩMid-scale80h40h
-50350.0 kΩMid-scale80h40h
-104100.0 kΩMid-scale80h40h
Val ue
AB
Typical
R
Default POR
8-bit7-bit
Wiper Setting
EQUATION 5-2:RWB CALCULATION
TABLE 5-1:VOLATILE WIPER VALUE VS.
Wiper Setting
7-bit Pot 8-bit Pot
3FFh
081h
080h100hFull Scale (W = A),
07Fh
041h
040h080hW = N (Mid-Scale)
03Fh
001h
000h000hZero Scale (W = B)
WIPER POSITION MAP
Properties
3FFh
101h
0FFh
081
07Fh
001
Reserved (Full Scale (W = A)),
Increment and Decrement
commands ignored
Shutdown is used to minimize the device’s current
consumption. The MCP4XXX has two methods to
achieve this. These are:
• Hardware Shutdown Pin (SHDN)
• Terminal Control Register (TCON)
The Hardware Shutdown pin is backwards compatible
with the MCP42XXX devices.
5.3.1HARDWARE SHUTDOWN PIN
(SHDN
The SHDN pin is available on the dual potentiometer
devices. When the SHDN
• The P0A and P1A terminals are disconnected
• The P0W and P1W terminals are simultaneously
connect to the P0B and P1B terminals, respectively (see Figure 5-2)
• The Serial Interface is NOT disabled, and all
Serial Interface activity is executed
The Hardware Shutdown pin mode does NOT corrupt
the values in the Volatile Wiper Registers nor the
TCON register. When the Shutdown mode is exited
pin is inactive (VIH)):
(SHDN
• The device returns to the Wiper setting specified
by the Volatile Wiper value
• The TCON register bits return to controlling the
terminal connection state
)
pin is forced active (VIL):
5.3.2TERMINAL CONTROL REGISTER
(TCON)
The Terminal Control (TCON) register is a volatile
register used to configure the connection of each
resistor network terminal pin (A, B, and W) to the
Resistor Network. This register is shown in
Register 4-2.
The RxHW bits forces the selected resistor network
into the same state as the SHDN
power configurations may be achieved with the RxA,
RxW, and RxB bits.
Note:When the RxHW bit forces the resistor
network into the hardware SHDN state,
the state of the TCON register RxA, RxW,
and RxB bits is overridden (ignored).
When the state of the RxHW bit no longer
forces the resistor network into the hardware SHDN
RxW, and RxB bits return to controlling the
terminal connection state. In other words,
the RxHW bit does not corrupt the state of
the RxA, RxW, and RxB bits.
state, the TCON register RxA,
pin. Alternate low
5.3.3INTERACTION OF SHDN PIN AND
TCON REGISTER
Figure 5-3 shows how the SHDN pin signal and the
RxHW bit signal interact to control the hardware
shutdown of each resistor network (independently).
Using the TCON bits allows each resistor network (Pot
0 and Pot 1) to be individually “shutdown” while the
hardware pin forces both resistor networks to be “shutdown” at the same time.
Note 1: If High voltage commands are desired, some type of external circuitry needs to be
implemented.
6.0SERIAL INTERFACE (SPI)
The MCP4XXX devices support the SPI serial protocol.
This SPI operates in the slave mode (does not
generate the serial clock).
The SPI interface uses up to four pins. These are:
- Chip Select
•CS
• SCK - Serial Clock
• SDI - Serial Data In
• SDO - Serial Data Out
Typical SPI Interfaces are shown in Figure 6-1. In the
SPI interface, The Master’s Output pin is connected to
the Slave’s Input pin and the Master’s Input pin is
connected to the Slave’s Output pin.
The MCP4XXX SPI’s module supports two (of the four)
IHH
).
0,0 and 1,1.
standard SPI modes. These are Mode
The SPI mode is determined by the state of the SCK
pin (V
inactive (VIH) to active (VIL or V
All SPI interface signals are high-voltage tolerant.
The operation of the four SPI interface pins are
discussed in this section. These pins are:
• SDI (Serial Data In)
• SDO (Serial Data Out)
• SCK (Serial Clock)
(Chip Select)
•CS
The serial interface works on either 8-bit or 16-bit
boundaries depending on the selected command. The
Chip Select (CS
6.1.1SERIAL DATA IN (SDI)
The Serial Data In (SDI) signal is the data signal into
the device. The value on this pin is latched on the rising
edge of the SCK signal.
6.1.2SERIAL DATA OUT (SDO)
The Serial Data Out (SDO) signal is the data signal out
of the device. The value on this pin is driven on the
falling edge of the SCK signal.
Once the CS
V
), the SDO pin will be driven. The state of the SDO
IHH
pin is determined by the serial bit’s position in the
command, the command selected, and if there is a
command error state (CMDERR).
) pin frames the SPI commands.
pin is forced to the active level (VIL or
6.1.3SDI/SDO
Note:MCP41X1 Devices Only .
For device packages that do not have enough pins for
both an SDI and SDO pin, the SDI and SDO functionality is multiplexed onto a single I/O pin called SDI/
SDO.
The SDO will only be driven for the command error bit
(CMDERR) and during the data bits of a read command
(after the memory address and command has been
received).
6.1.3.1SDI/SDO Operation
Figure 6-2 shows a block diagram of the SDI/SDO pin.
The SDI signal has an internal “smart” pull-up. The
value of this pull-up determines the frequency that data
can be read from the device. An external pull-up can be
added to the SDI/SDO pin to improve the rise time and
therefore improve the frequency that data can be read.
Note:To support the High voltage requirement of
the SDI function, the SDO function is an
open drain output.
Data written on the SDI/SDO pin can be at the
maximum SPI frequency.
Note:Care must be take to ensure that a Drive
conflict does not exist between the Host
Controllers SDO pin (or software SDI/SDO
pin) and the MCP41x1 SDI/SDO pin (see
Figure 6-1).
On the falling edge of the SCK pin during the C0 bit
(see Figure 7-1), the SDI/SDO pin will start outputting
the SDO value. The SDO signal overrides the control of
the smart pull-up, such that whenever the SDI/SDO pin
is outputting data, the smart pull-up is enabled.
The SDI/SDO pin will change from an input (SDI) to an
output (SDO) after the state machine has received the
Address and Command bits of the Command Byte. If
the command is a Read command, then the SDI/SDO
pin will remain an output for the remainder of the
command. For any other command, the SDI/SDO pin
returns to an input.
6.1.4SERIAL CLOCK (SCK)
(SPI FREQUENCY OF OPERATION)
The SPI interface is specified to operate up to 10 MHz.
The actual clock rate depends on the configuration of
the system and the serial command used. Table 6-1
shows the SCK frequency for different configurations.
TABLE 6-1:SCK FREQUENCY
Command
Memory Type Access
Volatile
Memory
Note 1: MCP41X1 devices only.
SDI, SDO10 MHz 10 MHz
SDI/SDO
(1)
2: This is the maximum clock frequency
without an external pull-up resistor.
250 kHz
Read
Write,
Increment,
Decrement
(2)
10 MHz
6.1.5THE CS
The Chip Select (CS) signal is used to select the device
and frame a command sequence. To start a command,
or sequence of commands, the CS
transition from the inactive state (VIH) to an active state
or V
(V
IL
After the CS
driven and the clock bit counter is reset.
Note:There is a required delay after the CS pin
If an error condition occurs for an SPI command, then
the Command byte’s Command Error (CMDERR) bit
(on the SDO pin) will be driven low (V
error condition, the user must take the CS pin to the V
level.
When the CS
SPI module resets (including the address pointer).
While the CS
interface is ignored. This allows the Host Controller to
interface to other SPI devices using the same SDI,
SDO, and SCK signals.
The CS
is disabled when the voltage on the CS pin is at the V
level. This means that when the CS pin is not driven,
the internal pull-up resistor will pull this signal to the V
level. When the CS pin is driven low (VIL), the resistance becomes very large to reduce the device current
consumption.
The high voltage capability of the CS
MCP413X/415X/423X/425X devices to be used in systems previously designed for the MCP414X/416X/
424X/426X devices.
).
IHH
signal has gone active, the SDO pin is
goes active to the 1st edge of the SCK pin.
pin returns to the inactive state (VIH) the
pin is in the inactive state (VIH), the serial
pin has an internal pull-up resistor. The resistor
is supported for compability with the MCP414X/6X and MCP424X/6X devices high voltage
operation.
6.2The SPI Modes
The SPI module supports two (of the four) standard SPI
modes. These are Mode 0,0 and 1,1. The mode is
determined by the state of the SDI pin on the rising
edge of the 1st clock bit (of the 8-bit byte).
6.2.1MODE 0,0
In Mode 0,0: SCK idle state = low (VIL), data is clocked
in on the SDI pin on the rising edge of SCK and clocked
out on the SDO pin on the falling edge of SCK.
6.2.2MODE 1,1
In Mode 1,1: SCK idle state = high (VIH), data is
clocked in on the SDI pin on the rising edge of SCK and
clocked out on the SDO pin on the falling edge of SCK.
6.3SPI Waveforms
Figure 6-3 through Figure 6-8 show the different SPI
command waveforms. Figure 6-3 and Figure 6-4 are
read and write commands. Figure 6-5 and Figure 6-6
are read commands when the SDI and SDO pins are
multiplexed on the same pin (SDI/SDO). Figure 6-7
and Figure 6-8 are increment and decrement
commands.
The MCP4XXX’s SPI command format supports 16
memory address locations and four commands. Each
command has two modes. These are:
• Normal Serial Commands
• High-Voltage Serial Commands
Normal serial commands are those where the CS
driven to V
driven to V
support the MCP414X/416X/424X/426X devices. High
Voltage Serial Commands operate identically to their
corresponding Normal Serial Command. In each
mode, there are four possible commands. These commands are shown in Table 7-1.
The 8-bit commands (Increment Wiper and Decre-
ment Wiper commands) contain a Command Byte,
see Figure 7-1, while 16-bit commands (Read Data
and Write Data commands) contain a Command Byte
and a Data Byte. The Command Byte contains two data
bits, see Figure 7-1.
Table 7-2 shows the supported commands for each
memory location and the corresponding values on the
SDI and SDO pins.
Table 7-3 shows an overview of all the SPI commands
and their interaction with other device features.
. High Voltage Serial Commands, CS pin is
IL
, for compatibility with systems that also
IHH
pin is
7.1Command Byte
The Command Byte has three fields, the Address, the
Command, and 2 Data bits, see Figure 7-1. Currently
only one of the data bits is defined (D8). This is for the
Write command.
The device memory is accessed when the master
sends a proper Command Byte to select the desired
operation. The memory location getting accessed is
contained in the Command Byte’s AD3:AD0 bits. The
action desired is contained in the Command Byte’s
C1:C0 bits, see Ta bl e 7 - 1. C1:C0 determines if the
desired memory location will be read, written,
Incremented (wiper setting +1) or Decremented (wiper
setting -1). The Increment and Decrement commands
are only valid on the volatile wiper registers.
As the Command Byte is being loaded into the device
(on the SDI pin), the device’s SDO pin is driving. The
SDO pin will output high bits for the first six bits of that
command. On the 7th bit, the SDO pin will output the
CMDERR bit state (see Section 7.3 “Error Condi-tion”). The 8th bit state depends on the the command
selected.
Only the Read Command and the Write Command use
the Data Byte, see Figure 7-1. These commands
concatenate the 8-bits of the Data Byte with the one
data bit (D8) contained in the Command Byte to form
9-bits of data (D8:D0). The Command Byte format
supports up to 9-bits of data so that the 8-bit resistor
network can be set to Full Scale (100h or greater). This
allows wiper connections to Terminal A and to
Terminal B.
The D9 bit is currently unused, and corresponds to the
position on the SDO data of the CMDERR bit.
7.3Error Condition
The CMDERR bit indicates if the four address bits
received (AD3:AD0) and the two command bits
received (C1:C0) are a valid combination (see
Table 4-1). The CMDERR bit is high if the combination
is valid and low if the combination is invalid.
SPI commands that do not have a multiple of 8 clocks
are ignored.
Once an error condition has occurred, any following
commands are ignored. All following SDO bits will be
low until the CMDERR condition is cleared by forcing
pin to the inactive state (VIH).
the CS
7.3.1ABORTING A TRANSMISSION
All SPI transmissions must have the correct number of
SCK pulses to be executed. The command is not
executed until the complete number of clocks have
been received. If the CS
state (V
mands are not executed.
SPI is more susceptible to noise than other bus
protocols. The most likely case is that this noise
corrupts the value of the data being clocked into the
MCP4XXX or the SCK pin is injected with extra clock
pulses. This may cause data to be corrupted in the
device, or a command error to occur, since the address
and command bits were not a valid combination. The
extra SCK pulse will also cause the SPI data (SDI) and
clock (SCK) to be out of sync. Forcing the CS
inactive state (VIH) resets the serial interface. The SPI
interface will ignore activity on the SDI and SCK pins
until the CS
(VIH to VIL or VIH to V
) the serial interface is reset. Partial com-
IH
pin transition to the active state is detected
Note 1: When data is not being received by the
MCP4XXX, It is recommended that the
pin be forced to the inactive level (VIL)
CS
2: It is also recommended that long continu-
ous command strings should be broken
down into single commands or shorter
continuous command strings. This
reduces the probability of noise on the
SCK pin corrupting the desired SPI
commands.
The device supports the ability to execute commands
continuously. While the CS
or V
received.
The following example is a valid sequence of events:
1. CS pin driven active (VIL or V
2. Read Command.
3. Increment Command (Wiper 0).
4. Increment Command (Wiper 0).
5. Decrement Command (Wiper 1).
6. Write Command.
7. Write Command.
8. CS
). Any sequence of valid commands may be
IHH
pin driven inactive (VIH).
pin is in the active state (V
).
IHH
IL
Note 1: It is recommended that while the CS pin is
active, only one type of command should
be issued. When changing commands, it
is recommended to take the CS
inactive then force it back to the active
state.
2: It is also recommended that long
command strings should be broken down
into shorter command strings. This
reduces the probability of noise on the
SCK pin corrupting the desired SPI
command string.
Note 1: If an Error Condition occurs (CMDERR = L), all following SDO bits will be low until the CMDERR
condition is cleared (the CS pin is forced to the inactive state).
7.5Write Data
Normal and High Voltage
Note:The High Voltage Write Data command is
supported for compatability with system
that also support MCP414X/416X/424X/
426X devices.
The Write command is a 16-bit command. The format
of the command is shown in Figure 7-2.
A Write command to a Volatile memory location
changes that location after a properly formatted Write
Command (16-clock) have been received.
7.5.1SINGLE WRITE
The write operation requires that the CS pin be in the
or V
active state (V
the inactive state (VIH) and is driven to the active state
(VIL). The 16-bit Write Command (Command Byte and
Data Byte) is then clocked in on the SCK and SDI pins.
Once all 16 bits have been received, the specified
volatile address is updated. A write will not occur if the
write command isn’t exactly 16 clocks pulses. This
protects against system issues from corrupting the
memory locations.
supported for compatability with system
that also support MCP414X/416X/424X/
426X devices.
The Read command is a 16-bit command. The format
of the command is shown in Figure 7-4.
The first 6-bits of the Read command determine the
address and the command. The 7th clock will output
the CMDERR bit on the SDO pin. The remaining
9-clocks the device will transmit the 9 data bits (D8:D0)
of the specified address (AD3:AD0).
Figure 7-4 shows the SDI and SDO information for a
Read command.
7.6.1SINGLE READ
The read operation requires that the CS pin be in the
or V
active state (V
the inactive state (VIH) and is driven to the active state
(VILor V
Byte and Data Byte) is then clocked in on the SCK and
SDI pins. The SDO pin starts driving data on the 7th bit
(CMDERR bit) and the addressed data comes out on
the 8th through 16th clocks. Figure 6-3 through
Figure 6-6 show possible waveforms for a single read.
Figure 6-5 and Figure 6-6 show the single read wave-
forms when the SDI and SDO signals are multiplexed
on the same pin. For additional information on the multiplexing of these signals, refer to Section 6.1.3 “SDI/SDO”.
all following SDO bits will be low until the
CMDERR condition is cleared.
(the CS
pin is forced to the inactive
state).
4: If a Command Error (CMDERR) occurs
at this bit location (*), then all following
SDO bits will be driven low until the CS
pin is driven inactive (VIH).
7.7Increment Wiper
Normal and High Voltage
Note:The High Voltage Increment Wiper
command is supported for compatability
with system that also support MCP414X/
416X/424X/426X devices.
The Increment Command is an 8-bit command. The
Increment Command can only be issued to wiper
memory locations. The format of the command is
shown in Figure 7-6.
An Increment Command to the wiper memory location
changes that location after a properly formatted command (8-clocks) have been received.
Increment commands provide a quick and easy
method to modify the value of the wiper location by +1
with minimal overhead.
7.7.1SINGLE INCREMENT
Typically, the CS pin starts at the inactive state (VIH),
but may be already be in the active state due to the
completion of another command.
Figure 6-7 through Figure 6-8 show possible
waveforms for a single increment. The increment
operation requires that the CS
(VILor V
state (V
The 8-bit Increment Command (Command Byte) is
then clocked in on the SDI pin by the SCK pins. The
SDO pin drives the CMDERR bit on the 7th clock.
The wiper value will increment up to 100h on 8-bit
devices and 80h on 7-bit devices. After the wiper value
has reached Full Scale (8-bit =100h, 7-bit =80h), the
wiper value will not be incremented further. If the Wiper
register has a value between 101h and 1FFh, the
Increment command is disabled. See Table 7-4 for
additional information on the Increment Command
versus the current volatile wiper value.
The Increment operations only require the Increment
command byte while the CS
for a single increment.
After the wiper is incremented to the desired position,
the CS
unexpected transitions on the SCK pin do not cause
the wiper setting to change. Driving the CS
should occur as soon as possible (within device
specifications) after the last desired increment occurs.
Note 1: Only functions when writing the volatile wiper registers (AD3:AD0) 0h and 1h.
2: Valid Address/Command combination.
3: Invalid Address/Command combination.
4: If an Error Condition occurs (CMDERR = L), all following SDO bits will be low until the CMDERR
condition is cleared (the CS
pin is forced to the inactive state).
7.7.2CONTINUOUS INCREMENTS
Continuous Increments are possible only when writing
to the wiper registers.
Figure 7-7 shows a Continuous Increment sequence
for three continuous writes. The writes do not need to
be to the same volatile memory address.
When executing an continuous Increment commands,
the selected wiper will be altered from n to n+1 for each
Increment command received. The wiper value will
increment up to 100h on 8-bit devices and 80h on 7-bit
devices. After the wiper value has reached Full Scale
(8-bit =100h, 7-bit =80h), the wiper value will not be
incremented further. If the Wiper register has a value
between 101h and 1FFh, the Increment command is
disabled.
Increment commands can be sent repeatedly without
raising CS
the Volatile Wiper register can be read using a Read
Command.
When executing a continuous command string, The
Increment command can be followed by any other valid
command.
The wiper terminal will move after the command has
been received (8th clock).
After the wiper is incremented to the desired position,
the CS
unexpected transitions (on the SCK pin do not cause
the wiper setting to change). Driving the CS
should occur as soon as possible (within device
specifications) after the last desired increment occurs.
until a desired condition is met. The value in
pin should be forced to VIH to ensure that
pin to V
IH
FIGURE 7-7:Continuous Increment Command - SDI and SDO States.
all following SDO bits will be low until the
CMDERR condition is cleared.
(the CS
pin is forced to the inactive
state).
4: If a Command Error (CMDERR) occurs
at this bit location (*), then all following
SDO bits will be driven low until the CS
pin is driven inactive (VIH).
7.8Decrement Wiper
Normal and High Voltage
Note:The High Voltage Decrement Wiper
command is supported for compatability
with system that also support MCP414X/
416X/424X/426X devices.
The Decrement Command is an 8-bit command. The
Decrement Command can only be issued to wiper
memory locations. The format of the command is
shown in Figure 7-6.
An Decrement Command to the wiper memory location
changes that location after a properly formatted command (8-clocks) have been received.
Decrement commands provide a quick and easy
method to modify the value of the wiper location by -1
with minimal overhead.
7.8.1SINGLE DECREMENT
Typically the CS pin starts at the inactive state (VIH), but
may be already be in the active state due to the completion of another command.
Figure 6-7 through Figure 6-8 show possible
waveforms for a single Decrement. The decrement
operation requires that the CS
(VILor V
state (V
Then the 8-bit Decrement Command (Command Byte)
is clocked in on the SDI pin by the SCK pins. The SDO
pin drives the CMDERR bit on the 7th clock.
The wiper value will decrement from the wipers Full
Scale value (100h on 8-bit devices and 80h on 7-bit
devices). Above the wipers Full Scale value
(8-bit =101h to 1FFh, 7-bit = 81h to FFh), the
decrement command is disabled. If the Wiper register
has a Zero Scale value (000h), then the wiper value will
not decrement. See Tab le 7 - 4 for additional information
on the Decrement Command vs. the current volatile
wiper value.
The Decrement commands only require the Decrement
command byte, while the CS
for a single decrement.
After the wiper is decremented to the desired position,
the CS
unexpected transitions on the SCK pin do not cause
the wiper setting to change. Driving the CS
should occur as soon as possible (within device
specifications) after the last desired decrement occurs.
Note 1: Only functions when writing the volatile wiper registers (AD3:AD0) 0h and 1h.
2: Valid Address/Command combination.
3: Invalid Address/Command combination.
4: If an Error Condition occurs (CMDERR = L), all following SDO bits will be low until the CMDERR
condition is cleared (the CS
pin is forced to the inactive state).
7.8.2CONTINUOUS DECREMENTS
Continuous Decrements are possible only when writing
to the wiper registers.
Figure 7-9 shows a continuous Decrement sequence
for three continuous writes. The writes do not need to
be to the same volatile memory address.
When executing an continuous Decrement commands,
the selected wiper will be altered from n to n-1 for each
Decrement command received. The wiper value will
decrement from the wipers Full Scale value (100h on
8-bit devices and 80h on 7-bit devices). Above the
wipers Full Scale value (8-bit =101h to 1FFh,
7-bit = 81h to FFh), the decrement command is
disabled. If the Wiper register has a Zero Scale value
(000h), then the wiper value will not decrement. See
Table 7-4 for additional information on the Decrement
Command vs. the current volatile wiper value.
Decrement commands can be sent repeatedly without
raising CS
the Volatile Wiper register can be read using a Read
Command.
When executing a continuous command string, The
Decrement command can be followed by any other
valid command.
The wiper terminal will move after the command has
been received (8th clock).
After the wiper is decremented to the desired position,
the CS
“unexpected” transitions (on the SCK pin do not cause
the wiper setting to change). Driving the CS
should occur as soon as possible (within device
specifications) after the last desired decrement occurs.
until a desired condition is met. The value in
pin should be forced to VIH to ensure that
pin to V
IH
FIGURE 7-9:Continuous Decrement Command - SDI and SDO States.
Digital potentiometers have a multitude of practical
uses in modern electronic circuits. The most popular
uses include precision calibration of set point thresholds, sensor trimming, LCD bias trimming, audio attenuation, adjustable power supplies, motor control
overcurrent trip setting, adjustable gain amplifiers and
offset trimming. The MCP413X/415X/423X/425X
devices can be used to replace the common mechanical trim pot in applications where the operating and
terminal voltages are within CMOS process limitations
= 2.7V to 5.5V).
(V
DD
8.1Split Rail Applications
All inputs that would be used to interface to a Host
Controller support High Voltage on their input pin. This
allows the MCP4XXX device to be used in split power
rail applications.
An example of this is a battery application where the
®
MCU is directly powered by the battery supply
PIC
(4.8V) and the MCP4XXX device is powered by the
3.3V regulated voltage.
For SPI applications, these inputs are:
•CS
•SCK
• SDI (or SDI/SDO)
SHDN
•
Figure 8-1 through Figure 8-2 show three example split
rail systems. In this system, the MCP4XXX interface
input signals need to be able to support the PIC MCU
output high voltage (V
In Example #1 (Figure 8-1), the MCP4XXX interface
input signals need to be able to support the PIC MCU
output high voltage (V
becomes too large, then the customer may be required
to do some level shifting due to MCP4XXX V
related to Host Controller VIH levels.
In Example #2 (Figure 8-2), the MCP4XXX interface
input signals need to be able to support the lower voltage of the PIC MCU output high voltage level (V
Table 8-1 shows an example PIC microcontroller I/O
voltage specifications and the MCP4XXX specifications. So this PIC MCU operating at 3.3V will drive a
at 2.64V, and for the MCP4XXX operating at 5.5V,
V
OH
is 2.47V. Therefore, the interface signals meet
the V
IH
specifications.
).
OH
). If the split rail voltage delta
OH
OH
levels
).
OH
FIGURE 8-1:Example Split Rail
System 1.
FIGURE 8-2:Example Split Rail
System 2.
TABLE 8-1:V
(1)
PIC
MCP4XXX
V
DDVIH VOHVDDVIH
5.54.44.42.71.215 —
5.04.04.03.01.35—
4.53.63.63.31.485 —
3.32.64 2.64 4.52.025 —
3.02.42.45.02.25—
2.72.16 2.16 5.52.475 —
Note 1: V
OH
V
OL
VIH minimum = 0.8 * VDD;
maximum = 0.2 * VDD;
V
IL
2: V
OH
V
OL
minimum = 0.45 * VDD;
V
IH
VIL maximum = 0.2 * VDD
3: The only MCP4XXX output pin is SDO,
which is Open-Drain (or Open-Drain with
Internal Pull-up) with High Voltage Support
The circuit in Figure 8-3 shows a method using the
TC1240A doubling charge pump. When the SHDN pin
is high, the TC1240A is off, and the level on the CS
pin
is controlled by the PIC® microcontrollers (MCUs) IO2
pin.
When the SHDN pin is low, the TC1240A is on and the
voltage is 2 * VDD. The resistor R1 allows the CS
V
OUT
pin to go higher than the voltage such that the PIC
MCU’s IO2 pin “clamps” at approximately V
DD.
FIGURE 8-4:MCP4XXX Non-Volatile
Digital Potentiometer Evaluation Board
(MCP402XEV) implementation to generate the
V
voltage.
IHH
8.3Using Shutdown Modes
Figure 8-5 shows a possible application circuit where
the independent terminals could be used. Disconnecting the wiper allows the transistor input to be taken to
the Bias voltage level (disconnecting A and or B may be
desired to reduce system current). Disconnecting Terminal A modifies the transistor input by the R
stat value to the Common B. Disconnecting Terminal B
modifies the transistor input by the RAW rheostat value
FIGURE 8-3:Using the TC1240A to
generate the V
The circuit in Figure 8-4 shows the method used on the
MCP402X Non-volatile Digital Potentiometer Evaluation Board (Part Number: MCP402XEV). This method
requires that the system voltage be approximately 5V.
This ensures that when the PIC10F206 enters a
brown-out condition, there is an insufficient voltage
level on the CS
wiper. The MCP402X Non-volatile Digital Potentiometer Evaluation Board User’s Guide (DS51546) contains
a complete schematic.
GP0 is a general purpose I/O pin, while GP2 can either
be a general purpose I/O pin or it can output the internal
clock.
For the serial commands, configure the GP2 pin as an
input (high impedance). The output state of the GP0 pin
will determine the voltage on the CS
For high-voltage serial commands, force the GP0
output pin to output a high level (V
GP2 pin to output the internal clock. This will form a
charge pump and increase the voltage on the CS
(when the system voltage is approximately 5V).
to the Common A. The Common A and Common B
connections could be connected to V
and VSS.
DD
FIGURE 8-5:Example Application Circuit
using Terminal Disconnects.
BW
rheo-
MCP413X/415X/423X/425X
V
DD
V
DD
V
SS
V
SS
MCP413X/415X/
423X/425X
0.1 µF
PIC
®
Microcontroller
0.1 µF
U/D
CS
W
B
A
8.4Design Considerations
In the design of a system with the MCP4XXX devices,
the following considerations should be taken into
account:
• Power Supply Considerations
• Layout Considerations
8.4.1POWER SUPPLY
CONSIDERATIONS
The typical application will require a bypass capacitor
in order to filter high-frequency noise, which can be
induced onto the power supply's traces. The bypass
capacitor helps to minimize the effect of these noise
sources on signal integrity. Figure 8-6 illustrates an
appropriate bypass strategy.
In this example, the recommended bypass capacitor
value is 0.1 µF. This capacitor should be placed as
DD
DD
) as
and
close (within 4 mm) to the device power pin (V
possible.
The power source supplying these devices should be
as clean as possible. If the application circuit has
separate digital and analog power supplies, V
should reside on the analog plane.
V
SS
8.4.2LAYOUT CONSIDERATIONS
Inductively-coupled AC transients and digital switching
noise can degrade the input and output signal integrity,
potentially masking the MCP4XXX’s performance.
Careful board layout minimizes these effects and
increases the Signal-to-Noise Ratio (SNR). Multi-layer
boards utilizing a low-inductance ground plane,
isolated inputs, isolated outputs and proper decoupling
are critical to achieving the performance that the silicon
is capable of providing. Particularly harsh environments may require shielding of critical signals.
If low noise is desired, breadboards and wire-wrapped
boards are not recommended.
8.4.3RESISTOR TEMPCO
Characterization curves of the resistor temperature
coefficient (Tempco) are shown in Figure 2-11,
Figure 2-24, Figure 2-36, and Figure 2-48.
These curves show that the resistor network is
designed to correct for the change in resistance as
temperature increases. This technique reduces the
end to end change is R
resistance.
AB
8.4.4HIGH VOLTAGE TOLERANT PINS
High Voltage support (V
supports two features. These are:
• In-Circuit Accommodation of split rail applications
and power supply sync issues
• Compatability with systems that also support
MCP414X/416X /424X/426X devices
Several development tools are available to assist in
your design and evaluation of the MCP4XXX devices.
The currently available tools are shown in Ta bl e 9 -1 .
These boards may be purchased directly from the
Microchip web site at www.microchip.com.
9.2Technical Documentation
Several additional technical documents are available to
assist you in your design and development. These
technical documents include Application Notes, Technical Briefs, and Design Guides. Table 9-2 shows some
of these documents.
TABLE 9-1:DEVELOPMENT TOOLS
Board Name Part # Supported Devices
MCP4XXX Digital Potentiometer Daughter Board
8-pin SOIC/MSOP/TSSOP/DIP Evaluation BoardSOIC8EVAny 8-pin device in DIP, SOIC, MSOP,
14-pin SOIC/MSOP/DIP Evaluation BoardSOIC14EVAny 14-pin device in DIP, SOIC, or
Note 1: Requires the use of a PICDEM Demo board (see User’s Guide for details)
(1)
MCP4XXXDM-DB MCP42XXX, MCP42XX, MCP4021,
and MCP4011
or TSSOP package
MSOP package
TABLE 9-2:TECHNICAL DOCUMENTATION
Application
Note Number
AN1080Understanding Digital Potentiometers Resistor VariationsDS01080
AN737Using Digital Potentiometers to Design Low Pass Adjustable FiltersDS00737
AN692Using a Digital Potentiometer to Optimize a Precision Single Supply Photo DetectDS00692
AN691Optimizing the Digital Potentiometer in Precision CircuitsDS00691
AN219Comparing Digital Potentiometers to Mechanical PotentiometersDS00219
YYear code (last digit of calendar year)
YYYear code (last 2 digits of calendar year)
WWWeek code (week of January 1 is week ‘01’)
NNNAlphanumeric traceability code
Pb-free JEDEC designator for Matte Tin (Sn)
*This package is Pb-free. The Pb-free JEDEC designator ()
can be found on the outer packaging for this package.
Note:In the event the full Microchip part number cannot be marked on one line, it will
be carried over to the next line, thus limiting the number of available
characters for customer-specific information.
8-Lead Plastic Dual Flat, No Lead Package (MF) – 3x3x0.9 mm Body [DFN]
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. Package may have one or more exposed tie bars at ends.
3. Package is saw singulated.
4. Dimensioning and tolerancing per ASME Y14.5M.
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
REF: Reference Dimension, usually without tolerance, for information purposes only.
Note:For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
UnitsMILLIMETERS
Dimension LimitsMINNOMMAX
Number of PinsN8
Pitche0.65 BSC
Overall HeightA0.800.901.00
Standoff A10.000.020.05
Contact ThicknessA30.20 REF
Overall LengthD3.00 BSC
Exposed Pad WidthE20.00–1.60
Overall WidthE3.00 BSC
Exposed Pad LengthD20.00–2.40
Contact Widthb0.250.300.35
Contact LengthL0.200.300.55
Contact-to-Exposed PadK0.20––
8-Lead Plastic Micro Small Outline Package (MS) [MSOP]
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed 0.15 mm per side.
3. Dimensioning and tolerancing per ASME Y14.5M.
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
REF: Reference Dimension, usually without tolerance, for information purposes only.
Note:For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
UnitsMILLIMETERS
Dimension LimitsMINNOMMAX
Number of PinsN8
Pitche0.65 BSC
Overall HeightA––1.10
Molded Package ThicknessA20.750.850.95
Standoff A10.00–0.15
Overall WidthE4.90 BSC
Molded Package WidthE13.00 BSC
Overall LengthD3.00 BSC
Foot LengthL0.400.600.80
FootprintL10.95 REF
Foot Angleφ0°–8°
Lead Thicknessc0.08–0.23
Lead Widthb0.22–0.40
8-Lead Plastic Dual In-Line (P) – 300 mil Body [PDIP]
Notes:
1. Pin 1 visual index feature may vary, but must be located with the hatched area.
2. § Significant Characteristic.
3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed .010" per side.
4. Dimensioning and tolerancing per ASME Y14.5M.
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
Note:For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
UnitsINCHES
Dimension LimitsMINNOMMAX
Number of PinsN8
Pitche.100 BSC
Top to Seating PlaneA––.210
Molded Package ThicknessA2.115.130.195
Base to Seating PlaneA1.015––
Shoulder to Shoulder WidthE.290.310.325
Molded Package WidthE1.240.250.280
Overall LengthD.348.365.400
Tip to Seating PlaneL.115.130.150
Lead Thicknessc.008.010.015
Upper Lead Widthb1.040.060.070
Lower Lead Widthb.014.018.022
Overall Row Spacing §eB––.430
10-Lead Plastic Dual Flat, No Lead Package (MF) – 3x3x0.9 mm Body [DFN]
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. Package may have one or more exposed tie bars at ends.
3. Package is saw singulated.
4. Dimensioning and tolerancing per ASME Y14.5M.
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
REF: Reference Dimension, usually without tolerance, for information purposes only.
Note:For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
UnitsMILLIMETERS
Dimension LimitsMINNOMMAX
Number of PinsN10
Pitche0.50 BSC
Overall HeightA0.800.901.00
Standoff A10.000.020.05
Contact ThicknessA30.20 REF
Overall LengthD3.00 BSC
Exposed Pad LengthD22.202.352.48
Overall WidthE3.00 BSC
Exposed Pad WidthE21.401.581.75
Contact Widthb0.180.250.30
Contact LengthL0.300.400.50
Contact-to-Exposed PadK0.20––
14-Lead Plastic Dual In-Line (P) – 300 mil Body [PDIP]
Notes:
1. Pin 1 visual index feature may vary, but must be located with the hatched area.
2. § Significant Characteristic.
3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed .010" per side.
4. Dimensioning and tolerancing per ASME Y14.5M.
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
Note:For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
UnitsINCHES
Dimension LimitsMINNOMMAX
Number of PinsN14
Pitche.100 BSC
Top to Seating PlaneA––.210
Molded Package ThicknessA2.115.130.195
Base to Seating PlaneA1.015––
Shoulder to Shoulder WidthE.290.310.325
Molded Package WidthE1.240.250.280
Overall LengthD.735.750.775
Tip to Seating PlaneL.115.130.150
Lead Thicknessc.008.010.015
Upper Lead Widthb1.045.060.070
Lower Lead Widthb.014.018.022
Overall Row Spacing §eB––.430
= ML for 16-lead QFN
= MS for 8-lead MSOP
= P for 8/14-lead PDIP
= SN for 8-lead SOIC
= SL for 14-lead SOIC
= ST for 14-lead TSSOP
= UN for 10-lead MSOP
XXX
Resistance
Ver sio n
PRODUCT IDENTIFICATION SYSTEM
To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office.
Note the following details of the code protection feature on Microchip devices:
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EELOQ, KEELOQ logo, microID, MPLAB, PIC,
PICmicro, PICSTART, PRO MATE, rfPIC and SmartShunt are
registered trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
AmpLab, FilterLab, Linear Active Thermistor, Migratable
Memory, MXDEV, MXLAB, SEEVAL, SmartSensor and The
Embedded Control Solutions Company are registered
trademarks of Microchip Technology Incorporated in the
U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi,
MPASM, MPLAB Certified logo, MPLIB, MPLINK, PICkit,
PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal,
PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select
Mode, Smart Serial, SmartTel, Total Endurance, UNI/O,
WiperLock and ZENA are trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.