Single/Dual Digital Potentiometer with SPI™ Interface
Features
• 256 taps for each potentiometer
• Potentiometer values for 10 kΩ, 50 kΩ and
100 kΩ
• Single and dual versions
• SPI™ serial interface (mode 0,0 and 1,1)
• ±1 LSB max INL & DNL
• Low power CMOS technology
• 1 µA maximum supply current in static operation
• Multiple devices can be daisy-chained together
(MCP42XXX only)
• Shutdown feature open circuits of all resistors for
maximum power savings
• Hardware shutdown pin available on MCP42XXX
only
• Single supply operation (2.7V - 5.5V)
• Industrial temperature range: -40°C to +85°C
• Extended temperature range: -40°C to +125°C
Block Diagram
SHDN
RS
V
DD
V
SS
S0
Wiper
Register
Wiper
Register
Resistor
Array 1*
Control
Logic
CS
SI
SCK
*Potentiometer P1 is only available on the dual
MCP42XXX version.
16-Bit
Shift
Register
PB0
Resistor
Array 0
PA0
PW0
PB1
PA1
PW1
Description
The MCP41XXX and MCP42XXX devices are 256position, digital potentiometers available in 10 kΩ,
50 kΩ and 100 kΩ resistance versions. The
MCP41XXX is a single-channel device and is offered in
an 8-pin PDIP or SOIC package. The MCP42XXX contains two independent channels in a 14-pin PDIP, SOIC
or TSSOP package. The wiper position of the
MCP41XXX/42XXX varies linearly and is controlled via
an industry-standard SPI interface. The devices consume <1 µA during static operation. A software shutdown feature is provided that disconnects the “A”
terminal from the resistor stack and simultaneously connects the wiper to the “B” terminal. In addition, the dual
MCP42XXX has a SHDN
function in hardware. During shutdown mode, the contents of the wiper register can be changed and the
potentiometer returns from shutdown to the new value.
The wiper is reset to the mid-scale position (80h) upon
power-up. The RS
reset and also returns the wiper to mid-scale. The
MCP42XXX SPI interface includes both the SI and SO
pins, allowing daisy-chaining of multiple devices. Channel-to-channel resistance matching on the MCP42XXX
varies by less than 1%. These devices operate from a
single 2.7 - 5.5V supply and are specified over the
extended and industrial temperature ranges.
pin that performs the same
(reset) pin implements a hardware
Package Types
PDIP/SOIC
CS
SCK
SI
V
SS
PDIP/SOIC/TSSOP
CS
SCK
SI
V
SS
PB1
PW1
PA1
MCP41XXX
1
2
3
4
1
MCP42XXX
2
3
4
5
6
7
14
13
12
11
10
V
8
DD
7
PB0
6
PW0
5
PA0
V
DD
SO
SHDN
RS
PB0
PW0
9
PA0
8
2003 Microchip Technology Inc.DS11195C-page 1
Page 2
MCP41XXX/42XXX
1.0ELECTRICAL CHARACTERISTICS
DC CHARACTERISTICS: 10 kΩ VERSION
Electrical Characteristics: Unless otherwise indicated, V
+85°C). Typical specifications represent values for V
ParametersSymMinTypMaxUnitsConditions
Rheostat Mode
Nominal ResistanceR81012kΩT
Rheostat Differential Non LinearityR-DNL-1±1/4+1LSBNote 2
Rheostat Integral Non LinearityR-INL-1±1/4+1LSBNote 2
Rheostat Tempco∆R
Wiper ResistanceR
Wiper CurrentI
/∆T—800—ppm/°C
AB
W
R
W
W
Nominal Resistance Match∆R/R—0.21%MCP42010 only, P0 to P1; T
Potentiometer Divider
ResolutionN8——Bits
MonotonicityN8——Bits
Differential Non-LinearityDNL-1±1/4+1LSBNote 3
Integral Non-LinearityINL-1±1/4+1LSBNote 3
Voltage Divider Tempco∆V
Full Scale ErrorV
Zero Scale ErrorV
/∆T—1—ppm/°C Code 80h
W
WFSE
V
WFSE
WZSE
V
WZSE
Resistor Terminals
Voltage RangeV
Capacitance (C
or CB)—15—pFf = 1 MHz, Code = 80h, see Figure 2-30
A
CapacitanceC
A,B,W
W
Dynamic Characteristics (All dynamic characteristics use V
Bandwidth -3dBBW—1—MHzV
Settling Timet
Resistor Noise Voltagee
CrosstalkC
Digital Inputs/Outputs (CS
, SCK, SI, SO) See Figure 2-12 for RS and SHDN pin operation
Schmitt Trigger High-Level Input VoltageV
Schmitt Trigger Low-Level Input Voltage V
Hysteresis of Schmitt Trigger InputsV
Low-Level Output VoltageV
High-Level Output VoltageV
Input Leakage CurrentI
Pin Capacitance (All inputs/outputs)C
S
NWB
T
IH
IL
HYS
OL
OH
LI
, C
IN
OUT
Power Requirements
Operating Voltage RangeV
Supply Current, ActiveI
Supply Current, Static I
DD
—340500µAVDD = 5.5V, CS = VSS, f
DDA
DDS
Power Supply SensitivityPSS—0.00150.0035%/%V
PSS—0.00150.0035%/%V
Note 1:V
= VDD, no connection on wiper.
AB
2:Rheostat position non-linearity R-INL is the deviation from an ideal value measured between the maximum resistance and the minimum
resistance wiper positions. R-DNL measures the relative step change from the ideal between successive tap positions. I
= 3V and IW = 400 µA for VDD = 5V for 10 kΩ version. See Figure 2-26 for test circuit.
V
DD
3:INL and DNL are measured at V
specification limits of ±1 LSB max are specified monotonic operating conditions. See Figure 2-25 for test circuit.
4:Resistor terminals A,B and W have no restrictions on polarity with respect to each other. Full-scale and zero-scale error were measured
using Figure 2-25.
5:Measured at V
6:Supply current is independent of current through the potentiometers.
pin where the voltage on the adjacent VW pin is swinging full-scale.
W
with the device configured in the voltage divider or potentiometer mode. VA = VDD and VB = 0V. DNL
W
= +2.7V to 5.5V, TA = -40°C to +85°C (TSSOP devices are only specified at +25°C and
Rheostat Integral Non-LinearityR-INL-1±1/4+1LSBNote 2
Rheostat Tempco∆R
Wiper ResistanceR
Wiper CurrentI
/∆T—800—ppm/°C
AB
W
R
W
W
Nominal Resistance Match∆R/R—0.21%MCP42050 only, P0 to P1;T
Potentiometer Divider
ResolutionN8——Bits
MonotonicityN8——Bits
Differential Non-LinearityDNL-1±1/4+1LSBNote 3
Integral Non-LinearityINL-1±1/4+1LSBNote 3
Voltage Divider Tempco∆V
Full-Scale ErrorV
Zero-Scale ErrorV
/∆T—1—ppm/°C Code 80h
W
WFSE
V
WFSE
WZSE
V
WZSE
Resistor Terminals
Voltage RangeV
Capacitance (C
or CB)—11—pFf =1 MHz, Code = 80h, see Figure 2-30
A
CapacitanceC
A,B,W
W
Dynamic Characteristics (All dynamic characteristics use V
Bandwidth -3dBBW—280—MHzV
Settling Timet
Resistor Noise Voltagee
CrosstalkC
Digital Inputs/Outputs (CS
, SCK, SI, SO) See Figure 2-12 for RS and SHDN pin operation.
Schmitt Trigger High-Level Input VoltageV
Schmitt Trigger Low-Level Input VoltageV
Hysteresis of Schmitt Trigger InputsV
Low-Level Output VoltageV
High-Level Output VoltageV
Input Leakage CurrentI
Pin Capacitance (All inputs/outputs)C
S
NWB
T
IH
IL
HYS
OL
OH
LI
, C
IN
OUT
Power Requirements
Operating Voltage RangeV
Supply Current, ActiveI
Supply Current, Static I
DD
—340500µAVDD = 5.5V, CS = VSS, f
DDA
DDS
Power Supply SensitivityPSS—0.00150.0035%/%V
PSS—0.00150.0035%/%V
Note 1:V
= VDD, no connection on wiper.
AB
2:Rheostat position non-linearity R-INL is the deviation from an ideal value measured between the maximum resistance and the minimum
resistance wiper positions. R-DNL measures the relative step change from the ideal between successive tap positions. I
+3V or +5V for 50 kΩ version. See Figure 2-26 for test circuit.
3:INL and DNL are measured at V
specification limits of ±1 LSB max are specified monotonic operating conditions. See Figure 2-25 for test circuit.
4:Resistor terminals A,B and W have no restrictions on polarity with respect to each other. Full-scale and zero-scale error were measured
using Figure 2-25.
5:Measured at V
6:Supply current is independent of current through the potentiometers.
pin where the voltage on the adjacent VW pin is swinging full scale.
W
with the device configured in the voltage divider or potentiometer mode. VA = VDD and VB = 0V. DNL
W
= +2.7V to 5.5V, TA = -40°C to +85°C (TSSOP devices are only specified at +25°C and
Storage temperature .....................................-60°C to +150°C
Ambient temp. with power applied ................-60°C to +125°C
ESD protection on all pins ..................................................≥ 2kV
† Notice:
ings” 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.
AC TIMING CHARACTERISTICS
Electrical Characteristics: Unless otherwise indicated, V
ParameterSymMin.Typ.Max.UnitsConditions
Clock FrequencyF
Clock High Timet
Clock Low Timet
CS
Fall to First Rising CLK Edget
Data Input Setup Timet
Data Input Hold Timet
SCK Fall to SO Valid Propagation Delayt
SCK Rise to CS
SCK Rise to CS
CS
Rise to CLK Rise Holdt
CS
High Time t
Reset Pulse Widtht
RS
Rising to CS Falling Delay Timet
CS
rising to RS or SHDN falling delay timet
CS
low timet
Shutdown Pulse Widtht
Note 1:When using the device in the daisy-chain configuration, maximum clock frequency is determined by a combination of propagation delay
Rise Hold Timet
Fall Delayt
time (t
) and data input setup time (tSU). Max. clock frequency is therefore ~ 5.8 MHz based on SCK rise and fall times of 5 ns, tHI =
DO
40 ns, t
2:Applies only to the MCP42XXX devices.
3:Applies only when using hardware pins to exit software shutdown mode, MCP42XXX only.
= 80 ns and t
DO
SU
= 40 ns.
= +2.7V to 5.5V, TA = -40°C to +85°C.
DD
CLK
HI
LO
CSSR
SU
HD
DO
CHS
CS0
CS1
CSH
RS
RSCS
SE
CSL
SH
——10MHzVDD = 5V (Note 1)
40——ns
40——ns
40——ns
40——ns
10——ns
30——ns
10——ns
100——ns
40——ns
150——nsNote 2
150——nsNote 2
40——nsNote 3
100——nsNote 3
150——nsNote 3
Stresses above those listed under “maximum rat-
—80 nsC
= 30 pF (Note 2)
L
2003 Microchip Technology Inc.DS11195C-page 5
Page 6
MCP41XXX/42XXX
t
CSH
CS
t
CSSR
t
CSO
SCK
t
SU
t
HD
V
SI
SO
OUT
msb in
(First 16 bits out are always zeros)
FIGURE 1-1:Detailed Serial interface Timing.
Wiper position is changed to
mid-scale (80h) if RS
low for 150 ns
is held
CS
RS
t
RS
1/F
CLK
t
t
HI
LO
Code 80h is latched
on rising edge of RS
t
RSCS
t
CHS
t
DO
±1% Error Band
t
CS1
t
±1%
S
t
S
V
OUT
±1% Error Band
FIGURE 1-2:Reset Timing.
t
CSL
CS
t
SE
RS
t
SE
SHDN
FIGURE 1-3:Software Shutdown Exit Timing.
t
t
±1%
RS
SH
DS11195C-page 6 2003 Microchip Technology Inc.
Page 7
MCP41XXX/42XXX
2.0TYPICAL PERFORMANCE CURVES
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.
Note: Unless otherwise indicated, curve represents 10 kΩ, 50 kΩ and 100 kΩ devices, V
= 0V.
V
B
= 5V, VSS = 0V, TA = +25°C,
DD
1
)
Ω
0.8
0.6
0.4
0.2
Normalized Resistance (
0
R
WB
0326496128 160 192 224 256
VDD = +3V to +5V
Code (Decimal)
R
WA
FIGURE 2-1:Normalized Wiper to End
Terminal Resistance vs. Code.
0.5
0.4
0.3
0.2
0.1
0
-0.1
-0.2
-0.3
-0.4
Potentiometer INL Error (LSB)
-0.5
0326496 128 160 192 224 256
Code (Decimal)
TA = -40°C to +85°C
Refer to Figure 2-25
14
)
12
Ω
10
8
6
4
Nominal Resistance (k
2
MCP41010, MCP42010 (10 kΩ potentiometers)
0
-40 -25 -10 5 20 35 50 65 80 95 110 125
Temperature (°C)
R
AB
R
WB
Code = 80h
FIGURE 2-4:Nominal Resistance 10 kΩ
vs. Temperature.
70
)
Ω
60
50
40
30
20
10
Nominal Resistance (k
MCP41050, MCP42050 (50 kΩ potenti ometers)
0
-40 -25 -10 520 35 50 65 80 95 110 125
Temperature ( °C)
R
AB
R
WB
Code = 80h
FIGURE 2-2:Potentiometer INL Error vs.
Code.
70
60
50
40
30
20
(ppm / °C)
10
0
Potentiometer Mode TempCo
-10
0326496 128 160 192 224 256
Code (Decimal)
TA = -40°C to +85°C
V
= 3V
A
FIGURE 2-3:Potentiometer Mode
Tempco vs. Code.
FIGURE 2-5:Nominal Resistance 50 kΩ
vs. Temperature.
140
)
Ω
120
100
80
60
40
20
Nominal Resistance (k
MCP41100, MCP42100 (100 kΩ potenti ometers)
0
-40 -25 -10 5 20 35 50 65 80 95 110 125
Temperature ( °C)
R
R
WB
Code = 80h
AB
FIGURE 2-6:Nominal Resistance 100 kΩ
vs. Temperature.
2003 Microchip Technology Inc.DS11195C-page 7
Page 8
MCP41XXX/42XXX
Note: Unless otherwise indicated, curve represents 10 kΩ, 50 kΩ and 100 kΩ devices, V
VB = 0V.
0.5
0.4
0.3
0.2
0.1
0
-0.1
-0.2
-0.3
Rheostat INL Error (LSB)
-0.4
-0.5
0326496128 160 192 224 256
TA = -40°C
Code (Decimal)
Refer to Figure 2-27
TA = +85°C
TA = +25°C
FIGURE 2-7:Rheostat INL Error vs.
Code.
3000
2500
2000
1500
1000
(ppm / °C)
500
Rheostat Mode TempCo
0
032 64 96 128 160 192 224 256
Code (Decimal)
TA = -40°C to +85°C,
V
= no connect,
A
R
measured
WB
280
230
180
130
80
Active Supply Current (µA)
30
-40 -25 -10 5 20 35 50 65 80 95 110 125
FIGURE 2-10:Active Supply Current vs.
Temperature.
1000
A - V
= 5.5V, Code = AAh
900
800
700
600
500
400
300
200
Active Supply Current (mA)
100
DD
B - V
= 3.3V, Code = AAh
DD
C - V
= 5.5V, Code = FFh
DD
D - V
= 3.3V, Code = FFh
DD
0
1k10k100k1M10M
= 5V, VSS = 0V, TA = +25°C,
DD
VDD = 5V
VDD = 3V
F
= 3 MHz
CLK
Code = FFh
Temperature (°C)
Clock Frequency (Hz)
B
A
C
D
FIGURE 2-8:Rheostat Mode Tempco vs.
Code.
1000
100
10
Static Current (nA)
1
-40 -25 -10 5 20 35 50 65 80 95 11012
Temperature (°C)
5
FIGURE 2-9:Static Current vs.
Temperature.
FIGURE 2-11:Active Supply Current vs.
Clock Frequency.
1
0
-1
-2
-3
-4
-5
-6
-7
RS & SHDN Sink Current (mA)
0246
RS & SHDN Pin Voltage (V)
VDD = 5.5V
FIGURE 2-12:Reset & Shutdown Pins
Current vs. Voltage.
DS11195C-page 8 2003 Microchip Technology Inc.
Page 9
MCP41XXX/42XXX
M
Note: Unless otherwise indicated, curve represents 10 kΩ, 50 kΩ and 100 kΩ devices, V
FIGURE 2-18:Gain vs. Frequency for
10 kΩ Potentiometer.
2003 Microchip Technology Inc.DS11195C-page 9
Page 10
MCP41XXX/42XXX
M
M
Note: Unless otherwise indicated, curve represents 10 kΩ, 50 kΩ and 100 kΩ devices, V
VB = 0V.
6
0
-6
-12
-18
-24
-30
Gain (dB)
-36
-42
-48
CL = 30pF, Refer to Figure 2-29
-54
MCP41050, MCP42050 (50kΩ potentiometers)
-60
1001k10k100k1M10M
Code = FFh
Code = 80h
Code = 40h
Code = 20h
Code = 10h
Code = 08h
Code = 04h
Code = 02h
Code = 01h
Frequency (Hz)
FIGURE 2-19:Gain vs. Frequency for
50kΩ Potentiometer.
6
0
-6
-12
-18
-24
-30
Gain (dB)
-36
-42
-48
CL = 30pF, Refer to Figure 2-29
-54
MCP41100, MCP42100 (100kΩ potentiometers)
-60
1001k
Code = FFh
Code = 80h
Code = 40h
Code = 20h
Code = 10h
Code = 08h
Code = 04h
Code = 02h
Code = 01h
10k100k1M
Frequency (Hz)
40
35
10 kΩ Potentiometer
30
25
20
15
PSRR (dB)
10
100 kΩ Potentiometer
5
0
1k10k100k1M10
FIGURE 2-22:Power Supply Rejection
Ratio vs. Frequency.
700
600
)
Ω
500
400
300
200
Wiper Resistance (
100
0
012345
Terminal B Voltage (V)
= 5V, VSS = 0V, TA = +25°C,
DD
VDD = 4.5V to 5.5V,
Code = 80h,
= 27 pF,
C
L
V
= 4V
A
Refer to Figure 2-28
50 kΩ Potentiometer
Frequency (Hz)
MCP41010, MCP42010
Iw = 1 mA, Code = 00h,
VDD = 2.7V
Refer to Figure 2-27
VDD = 5V
FIGURE 2-20:Gain vs. Frequency for
100kΩ Potentiometer.
0
-6
-12
145 kHz
279 kHz
-18
Gain (dB)
-24
-30
CL = 30 pF, Code = 80h
Refer to Figure 2-29
-36
1k10k100k1M10
Frequency (Hz)
1.06 MHz
10 kΩ
50 kΩ
100 kΩ
FIGURE 2-21:-3 dB Bandwidths.
FIGURE 2-23:10 kΩ Wiper Resistance vs.
Voltage.
450
400
)
Ω
350
300
VDD = 2.7V
250
200
150
100
Wiper Resistance (
50
0
012345
Terminal B Voltage (V)
Code = 00h
Refer to Figure 2-27
VDD = 5V
FIGURE 2-24:50 kΩ & 100 kΩ Wiper
Resistance vs. Voltage.
DS11195C-page 10 2003 Microchip Technology Inc.
Page 11
MCP41XXX/42XXX
2.1Parametric Test Circuits
V+ = V
DD
1LSB = V+/256
A
B
DUT
A
B
DUT
W
W
+
V
*
MEAS
-
I
W
+
-
V
MEAS
*
V+
*Assume infinite input impedance
FIGURE 2-25:Potentiometer Divider NonLinearity Error Test Circuit (DNL, INL).
No Connection
*Assume infinite input impedance
FIGURE 2-26:Resistor Position NonLinearity Error Test Circuit (Rheostat operation
DNL, INL).
V
A
V
A
V+
V+ = VDD ± 10%
PSRR (dB) = 20LOG
PSS (%/%) = ∆V
*Assume infinite input impedance
DD
∆V
B
DUT
DD
MEAS
∆V
(
W
∆V
DD
MEAS
+
V
MEAS
-
)
FIGURE 2-28:Power Supply Sensitivity
Test Circuit (PSS, PSRR).
V
OFFSET
GND
A
IN
~
2.5V DC
W
DUT
B
+
-
+5V
V
*
OUT
Rsw = 0.1V
Isw
Code = 00h
+
0.1V
-
DUT
A
W
I
V
SS
SW
= 0 to V
DD
B
FIGURE 2-27:Wiper Resistance Test
Circuit.
FIGURE 2-29:Gain vs. Frequency Test
Circuit.
DUT
A
V
IN
~
2.5V DC
Offset
+5V
-
+
B
V
MCP601
OUT
FIGURE 2-30:Capacitance Test Circuit.
2003 Microchip Technology Inc.DS11195C-page 11
Page 12
MCP41XXX/42XXX
3.0PIN DESCRIPTIONS
3.1PA0, PA1
Potentiometer Terminal A Connection.
3.2PB0, PB1
Potentiometer Terminal B Connection.
3.3PW0, PW1
Potentiometer Wiper Connection.
3.4Chip Select (CS)
This is the SPI port chip select pin and is used to execute a new command after it has been loaded into the
shift register. This pin has a Schmitt Trigger input.
3.5Serial Clock (SCK)
This is the SPI port clock pin and is used to clock-in
new register data. Data is clocked into the SI pin on the
rising edge of the clock and out the SO pin on the falling
edge of the clock. This pin is gated to the CS
the device will not draw any more current if the SCK pin
is toggling when the CS pin is high). This pin has a
Schmitt Trigger input.
pin (i.e.,
3.9Shutdown (SHDN)
(MCP42XXX devices only)
The Shutdown pin has a Schmitt Trigger input. Pulling
this pin low will put the device in a power-saving mode
where A terminal is opened and the B and W terminals
are connected for all potentiometers. This pin should
not be toggled low when the CS
minimize power consumption, this pin has an active
pull-up circuit. The performance of this circuit is shown
in Figure 2-12. This pin will draw negligible current at
logic level ‘0’ and logic level ‘1’. Do not leave this pin
floating.
TABLE 3-1:MCP41XXX Pins
Pin # NameFunction
SS
DD
Chip Select
Ground
Power
1CS
2SCK Serial Clock
3SISerial Data Input
4V
5PA0Terminal A Connection For Pot 0
6PW0Wiper Connection For Pot 0
7PB0Terminal B Connection For Pot 0
8V
pin is low. In order to
3.6Serial Data Input (SI)
This is the SPI port serial data input pin. The command
and data bytes are clocked into the shift register using
this pin. This pin is gated to the CS pin (i.e., the device
will not draw any more current if the SI pin is toggling
when the CS
input.
pin is high). This pin has a Schmitt Trigger
3.7Serial Data Output (SO)
(MCP42XXX devices only)
This is the SPI port serial data output pin used for
daisy-chaining more than one device. Data is clocked
out of the SO pin on the falling edge of clock. This is a
push-pull output and does not go to a high-impedance
state when CS
is high.
is high. It will drive a logic-low when CS
3.8Reset (RS)
(MCP42XXX devices only)
The Reset pin will set all potentiometers to mid-scale
(Code 80h) if this pin is brought low for at least 150 ns.
This pin should not be toggled low when the CS
low. It is possible to toggle this pin when the SHDN
is low. In order to minimize power consumption, this pin
has an active pull-up circuit. The performance of this
circuit is shown in Figure 2-12. This pin will draw negligible current at logic level ‘0’ and logic level ‘1’. Do not
leave this pin floating.
pin is
pin
TABLE 3-2:MCP42XXX Pins
Pin # NameFunction
1CSChip Select
2SCK Serial Clock
3SISerial Data Input
4V
5PB1Terminal B Connection For Pot 1
6PW1Wiper Connection For Pot 1
7PA1Terminal A Connection For Pot 1
8PA0Terminal A Connection For Pot 0
9PW0Wiper Connection For Pot 0
10PB0Terminal B Connection For Pot 0
11R S
12SHDN Shutdown Input
13SOData Out for Daisy-Chaining
14V
SS
DD
Ground
Reset Input
Power
DS11195C-page 12 2003 Microchip Technology Inc.
Page 13
4.0APPLICATIONS INFORMATION
The MCP41XXX/42XXX devices are 256 position
single and dual digital potentiometers that can be used
in place of standard mechanical pots. Resistance values of 10 kΩ, 50 kΩ and 100 kΩ are available. As
shown in Figure 4-1, each potentiometer is made up of
a variable resistor and an 8-bit (256 position) data register that determines the wiper position. There is a
nominal wiper resistance of 52Ω for the 10 kΩ version,
125Ω for the 50 kΩ and 100 kΩ versions. For the dual
devices, the channel-to-channel matching variation is
less than 1%. The resistance between the wiper and
either of the resistor endpoints varies linearly according
to the value stored in the data register. Code 00h
effectively connects the wiper to the B terminal. At
PA0PB0
PW0
MCP41XXX/42XXX
power-up, all data registers will automatically be loaded
with the mid-scale value (80h). The serial interface provides the means for loading data into the shift register,
which is then transferred to the data registers. The
serial interface also provides the means to place individual potentiometers in the shutdown mode for maximum power savings. The SHDN
to put all potentiometers in shutdown mode and the RS
pin is provided to set all potentiometers to mid-scale
(80h).
PA1PB1
PW1
pin can also be used
RDAC2
Data Register 1
D7
D0
SOSI
D0
SHDN
RS
CS
SCK
RDAC1
Data Register 0
D7
Decode
Logic
16-bit Shift Register
D0
D7
FIGURE 4-1:Block diagram showing the MCP42XXX dual digital potentiometer. Data register 0 and
data register 1 are 8-bit registers allowing 256 positions for each wiper. Standard SPI pins are used with
the addition of the Shutdown (SHDN
) and Reset (RS) pins. As shown, reset affects the data register and
wipers, bringing them to mid-scale. Shutdown disconnects the A terminal and connects the wiper to B,
without changing the state of the data registers.
When laying out the circuit for your digital potentiometer, bypass capacitors should be used. These capacitors should be placed as close as possible to the device
pin. A bypass capacitor value of 0.1 µF is recommended. Digital and analog traces should be separated
as much as possible on the board, with no traces running underneath the device or the bypass capacitor.
Extra precautions should be taken to keep traces with
high-frequency signals (such as clock lines) as far as
possible from analog traces. Use of an analog ground
plane is recommended in order to keep the ground
potential the same for all devices on the board.
µC
V
DD
Data Lines
0.1 uF
V
DD
B
W
MCP4XXXX
A
To Application
Circuit
0.1 uF
2003 Microchip Technology Inc.DS11195C-page 13
Page 14
MCP41XXX/42XXX
4.1Modes of Operation
Digital potentiometer applications can be divided into
two categories: rheostat mode and potentiometer, or
voltage divider, mode.
4.1.1RHEOSTAT MODE
In the rheostat mode, the potentiometer is used as a
two-terminal resistive element. The unused terminal
should be tied to the wiper, as shown in Figure 4-2.
Note that reversing the polarity of the A and B terminals
will not affect operation.
A
W
B
MCP4XXXX
FIGURE 4-2:Two-terminal or rheostat
configuration for the digital potentiometer. Acting
as a resistive element in the circuit, resistance is
controlled by changing the wiper setting.
Using the device in this mode allows control of the total
resistance between the two nodes. The total measured
resistance would be the least at code 00h, where the
wiper is tied to the B terminal. The resistance at this
code is equal to the wiper resistance, typically 52Ω for
the 10 kΩ MCP4X010 devices, 125Ω for the 50 kΩ
(MCP4X050), and 100 kΩ (MCP4X100) devices. For
the 10 kΩ device, the LSB size would be 39.0625Ω
(assuming 10 kΩ total resistance). The resistance
would then increase with this LSB size until the total
measured resistance at code FFh would be 9985.94Ω.
The wiper will never directly connect to the A terminal
of the resistor stack.
In the 00h state, the total resistance is the wiper resistance. To avoid damage to the internal wiper circuitry in
this configuration, care should be taken to ensure the
current flow never exceeds 1 mA.
For dual devices, the variation of channel-to-channel
matching of the total resistance from A to B is less than
1%. The device-to-device matching, however, can vary
up to 30%. In the rheostat mode, the resistance has a
positive temperature coefficient. The change in wiperto-end terminal resistance over temperature is shown
in Figure 2-8. The most variation over temperature will
occur in the first 6% of codes (code 00h to 0Fh) due to
the wiper resistance coefficient affecting the total resistance. The remaining codes are dominated by the total
resistance tempco R
, typically 800 ppm/°C.
AB
Resistor
4.1.2POTENTIOMETER MODE
In the potentiometer mode, all three terminals of the
device are tied to different nodes in the circuit. This
allows the potentiometer to output a voltage proportional to the input voltage. This mode is sometimes
called voltage divider mode. The potentiometer is used
to provide a variable voltage by adjusting the wiper
position between the two endpoints as shown in
Figure 4-3. Note that reversing the polarity of the A and
B terminals will not affect operation.
V
1
A
V
W
B
MCP4XXXX
2
FIGURE 4-3:Three terminal or voltage
divider mode.
In this configuration, the ratio of the internal resistance
defines the temperature coefficient of the device. The
resistor matching of the R
performs with a typical temperature coefficient of
1 ppm/°C (measured at code 80h). At lower codes, the
wiper resistance temperature coefficient will dominate.
Figure 2-3 shows the effect of the wiper. Above the
lower codes, this figure shows that 70% of the states
will typically have a temperature coefficient of less than
5 ppm/°C. 30% of the states will typically have a
ppm/°C of less than 1.
resistor to the RAB resistor
WB
DS11195C-page 14 2003 Microchip Technology Inc.
Page 15
MCP41XXX/42XXX
4.2Typical Applications
4.2.1PROGRAMMABLE SINGLE-ENDED
AMPLIFIERS
Potentiometers are often used to adjust system reference levels or gain. Programmable gain circuits using
digital potentiometers can be realized in a number of
different ways. An example of a single-supply, inverting
gain amplifier is shown in Figure 4-4. Due to the high
input impedance of the amplifier, the wiper resistance
is not included in the transfer function. For a single-supply, non-inverting gain configuration, the circuit in
Figure 4-5 can be used.
.
MCP41010
B
V
IN
FIGURE 4-4:Single-supply,
programmable, inverting gain amplifier using a
digital potentiometer.
A
W
-IN
REF
OUT
+IN
V
V
Where:
RAB256 D
R
---------------------------------------=R
A
R
AB
Total Resistance of pot=
DnWiper setting forDn0 to 255==
-
MCP606
+
R
B
V
-------
IN
R
A
–()
256
V
DD
V
OUT
V
SS
R
B
V
1
+–=
REF
n
-------+
R
A
RABD
n
------------------=
B
256
In order for these circuits to work properly, care must be
taken in a few areas. For linear operation, the analog
input and output signals must be in the range of VSS to
for the potentiometer and input and output rails of
V
DD
the op-amp. The circuit in Figure 4-4 requires a virtual
ground or reference input to the non-inverting input of
the amplifier. Refer to Application Note 682, “Using
Single-Supply Operational Amplifiers in Embedded
Systems” (DS00682), for more details. At power-up or
reset (RS)
, the resistance is set to mid-scale, with R
and RB matching. Based on the transfer function for the
circuit, the gain is -1 V/V. As the code is increased and
the wiper moves towards the A terminal, the gain
increases. Conversely, when the wiper is moved
towards the B terminal, the gain decreases. Figure 4-6
shows this relationship. Notice the pseudo-logarithmic
gain around decimal code 128. As the wiper
approaches either terminal, the step size in the gain
calculation increases dramatically. Due to the
mismatched ratio of R
and RB at the extreme high and
A
low codes, small increments in wiper position can
dramatically affect the gain. As shown in Figure 4-3,
recommended gains lie between 0.1 and 10 V/V.
10
1
Absolute Gain (V/V)
0.1
064128192256
Decimal code (0-255)
FIGURE 4-6:Gain vs. Code for inverting
and differential amplifier circuits.
A
V
DD
V
IN
+IN
-IN
W
RBRA
+
MCP606
-
V
SS
V
OUT
4.2.2PROGRAMMABLE DIFFERENTIAL
AMPLIFIER
An example of a differential input amplifier using digital
potentiometers is shown in Figure 4-7. For the transfer
function to hold, both pots must be programmed to the
same code. The resistor-matching from channel-tochannel within a dual device can be used as an advantage in this circuit. This circuit will also show stable
Where:
RAB256 D
R
---------------------------------------=R
A
R
D
AB
n
Total Resistance of pot=
Wiper setting forDn0 to 255==
MCP41010
–()
n
256
V
OUTVIN
RABD
------------------=
B
256
1
=
n
R
B
-------+
R
A
operation over temperature due to the low potentiometer temperature coefficient. Figure 4-6 also shows the
relationship between gain and code for this circuit. As
the wiper approaches either terminal, the step size in
the gain calculation increases dramatically. This circuit
is recommended for gains between 0.1 and 10 V/V.
FIGURE 4-5:Single-supply,
programmable, non-inverting gain amplifier.
2003 Microchip Technology Inc.DS11195C-page 15
Page 16
MCP41XXX/42XXX
1/2
MCP42010
V
B
AB
(SIG -)
V
A
(SIG +)
A
1/2
B
MCP42010
V
REF
-IN
+IN
+
MCP601
-
V
V
V
SS
OUT
DD
–()
VAV
B
V
R
-------=
R
OUT
B
A
Where:
RAB256 D
R
---------------------------------------=R
A
R
D
AB
n
Total Resistance of pot=
Wiper setting forDn0 to 255==
–()
n
256
RABD
n
------------------=
B
256
NOTE: Potentiometer values must be equal
FIGURE 4-7:Single Supply
programmable differential amplifier using digital
potentiometers.
4.2.3PROGRAMMABLE OFFSET TRIM
For applications requiring only a programmable voltage
reference, the circuit in Figure 4-8 can be used. This
circuit shows the device used in the potentiometer
mode along with two resistors and a buffered output.
This creates a circuit with a linear relationship between
voltage-out and programmed code. Resistors R
R2 can be used to increase or decrease the output voltage step size. The potentiometer in this mode is stable
over temperature. The operation of this circuit over
temperature is shown in Figure 2-3. The worst performance over temperature will occur at the lower codes
due to the dominating wiper resistance. R
1
also be used to affect the boundary voltages, thereby
eliminating the use of these lower codes.
V
R
MCP41010
R
2
DD
1
-IN
A
+IN
B
0.1 uF
V
SS
V
-
MCP606
+
V
DD
OUT
SS
and
1
and R2 can
4.3Calculating Resistances
When programming the digital potentiometer settings,
the following equations can be used to calculate the
resistances. Programming code 00h effectively brings
the wiper to the B terminal, leaving only the wiper resistance. Programming higher codes will bring the wiper
closer to the A terminal of the potentiometer. The equations in Figure 4-9 can be used to calculate the terminal
resistances. Figure 4-10 shows an example calculation
using a 10 kΩ potentiometer.
PA
PW
PB
()256 D
R
()
RWAD
R
Where:
PA is the A terminal
PB is the B terminal
PW is the wiper terminal
is resistance between Terminal A and wiper
R
WA
is resistance between Terminal B and Wiper
R
WB
is overall resistance for pot (10 kΩ, 50 kΩ or 100 kΩ)
R
AB
is wiper resistance
R
W
is 8-bit value in data register for pot number n
D
n
()
WBDn
n
AB
-------------------------------------------- RW+=
()Dn()
R
AB
---------------------------- R
256
FIGURE 4-9:Potentiometer resistances
are a function of code. It should be noted that,
when using these equations for most feedback
amplifier circuits (see Figure 4-4 and Figure 4-5),
the wiper resistance can be omitted due to the
high impedance input of the amplifier.
programmable voltage reference circuit is
affected.
DS11195C-page 16 2003 Microchip Technology Inc.
Note: All values shown are typical and
actual results will vary.
FIGURE 4-10:Example Resistance
calculations.
Page 17
MCP41XXX/42XXX
5.0SERIAL INTERFACE
Communications from the controller to the
MCP41XXX/42XXX digital potentiometers is accomplished using the SPI serial interface. This interface
allows three commands:
1.Write a new value to the potentiometer data
register(s).
2.Cause a channel to enter low power shutdown
mode.
NOP
3.
Executing any command is accomplished by setting
CS
by a data byte into the 16-bit shift register. The command is executed when CS
in on the rising edge of clock and out the SO pin on the
falling edge of the clock (see Figure 5-1). The device
will track the number of clocks (rising edges) while CS
is low and will abort all commands if the number of
clocks is not a multiple of 16.
5.1Command Byte
The first byte sent is always the command byte, followed by the data byte. The command byte contains
two command select bits and two potentiometer select
bits. Unused bits are ‘don’t care’ bits. The command
select bits are summarized in Figure 5-2. The command select bits C1 and C0 (bits 4:5) of the command
byte determine which command will be executed. If the
command bits are both 0’s or 1’s, then a NOP command will be executed once all 16 bits have been
loaded. This command is useful when using the daisychain configuration. When the command bits are 0,1, a
write command will be executed with the 8 bits sent in
the data byte. The data will be written to the potentiometer(s) determined by the potentiometer select bits. If
the command bits are 1,0, then a shutdown command
will be executed on the potentiometers determined by
the potentiometer select bits.
For the MCP42XXX devices, the potentiometer select
bits P1 and P0 (bits 0:1) determine which potentiometers are to be acted upon by the command. A corresponding ‘1’ in the position signifies that the command
for that potentiometer will get executed, while a ‘0’ signifies that the command will not effect that
potentiometer (see Figure 5-2).
5.2Writing Data Into Data Registers
When new data is written into one or more of the potentiometer data registers, the write command is followed
by the data byte for the new value. The command
select bits C1, C0 are set to 0,1. The potentiometer
selection bits P1 and P0 allow new values to be written
to potentiometer 0, potentiometer 1 (or both) with a single command. A ‘1’ for either P1 or P0 will cause the
data to be written to the respective data register and a
‘0’ for P1 or P0 will cause no change. See Figure 5-2
for the command format summary.
(No Operation) command.
low and then clocking-in a command byte followed
is raised. Data is clocked-
5.3Using The Shutdown Command
The shutdown command allows the user to put the
application circuit into a power-saving mode. In this
mode, the A terminal is open-circuited and the B and W
terminals are shorted together. The command select
bits C1, C0 are set to 1,0. The potentiometer selection
bits P1 and P0 allow each potentiometer to be shutdown independently. If either P1 or P0 are high, the
respective potentiometer will enter shutdown mode. A
‘0’ for P1 or P0 will have no effect. The eight data bits
following the command byte still need to be transmitted
for the shutdown command, but they are ‘don’t care’
bits. See Figure 5-2 for command format summary.
Once a particular potentiometer has entered the shutdown mode, it will remain in this mode until:
• A new value is written to the potentiometer data
register, provided that the SHDN
device will remain in the shutdown mode until the
rising edge of the CS
the device will come out of shutdown mode and
the new value will be written to the data register(s). If the SHDN
is received, the registers will still be set to the new
value, but the device will remain in shutdown
mode. This scenario assumes that a valid command was received. If an invalid command was
received, the command will be ignored and the
device will remain in the shutdown mode.
It is also possible to use the hardware shutdown pin
and reset pin to remove a device from software shutdown. To do this, a low pulse on the chip select line
must first be sent. For multiple devices, sharing a single
or RESET line allows you to pick an individual
SHDN
device on that chain to remove from software shutdown
mode. See Figure 1-3 for timing. With a preceding chip
select pulse, either of these situations will also remove
a device from software shutdown:
• A falling edge is seen on the RS
for at least 150 ns, provided that the SHDN pin is
high. If the SHDN pin is low, the registers will still
be set to mid-scale, but the device will remain in
shutdown mode. This condition assumes that CS
is high, as bringing the RS pin low while CS is low
is an invalid state and results are indeterminate.
• A rising edge on the SHDN
low for at least 100 ns, provided that the CS
high. Toggling the SHDN pin low while CS is low
is an invalid state and results are indeterminate.
• The device is powered-down and back up.
Note:The hardware SHDN
the device in shutdown regardless of
whether a potentiometer has already been
put in the shutdown mode using the
software command.
is detected, at which time
pin is low when the new value
pin is high. The
pin and held low
pin is seen after being
pin is
pin will always put
2003 Microchip Technology Inc.DS11195C-page 17
Page 18
MCP41XXX/42XXX
CS
SCK
SO
Data is always latched
in on the rising edge
of SCK.
†
2345678 9101
COMMAND ByteData Byte
Don’t
Care
Command
Bits
X
X
SI
‡
There must always be multiples of 16 clocks while CS is low or commands will abort.
†
The serial data out pin (SO) is only available on the MCP42XXX device.
‡
P1 is a ‘don’t care’ bit for the MCP41XXX.
*
C1
Don’t
Channel
Bits
Care
X
C0
First 16 bits shifted out will always be zeros
Bits
Select
Bits
P1*
X
P0
Data is always clocked out
of the SO pin after the
falling edge of SCK.
11 12 13 14 15 16
New Register Data
D7 D6 D5 D4 D3 D2 D1 D0
Data Registers are
loaded on rising
edge of CS. Shift
register is loaded
with zeros at this time.
SO pin will always
drive low when CS
goes high.
X
FIGURE 5-1:Timing Diagram for Writing Instructions or Data to a Digital Potentiometer.
COMMAND BYTE
P0P1*XXXXC1C0
Command
Selection
Bits
Potentiometer
Selection
Bits
C1 C0 CommandCommand Summary
00 NoneNo Command will be executed.
01 Write DataWrite the data contained in Data Byte to the
potentiometer(s) determined by the potentiometer selection bits.
10 ShutdownPotentiometer(s) determined by potentiome-
ter selection bits will enter Shutdown Mode.
Data bits for this command are ‘don’t cares’.
11 NoneNo Command will be executed.
FIGURE 5-2:Command Byte Format.
P1* P0Potentiometer Selections
00 Dummy Code: Neither Potentiometer
affected.
01 Command executed on
Potentiometer 0.
10 Command executed on
Potentiometer 1.
11 Command executed on both
Potentiometers.
DS11195C-page 18 2003 Microchip Technology Inc.
Page 19
MCP41XXX/42XXX
5.4Daisy-Chain Configuration
Multiple MCP42XXX devices can be connected in a
daisy-chain configuration, as shown in Figure 5-4, by
connecting the SO pin from one device to the SI pin on
the next device. The data on the SO pin is the output of
the 16-bit shift register. The daisy-chain configuration
allows the system designer to communicate with several devices without using a separate CS
device. The example shows a daisy-chain configuration with three devices, although any number of
devices (with or without the same resistor values) can
be configured this way. While it is not possible to use a
MCP41XXX at the beginning or middle of a daisy-chain
(because it does not provide the serial data out (SO)
pin), it is possible to use the device at the end of a
chain. As shown in the timing diagram in Figure 5-3,
data will be clocked-out of the SO pin on the falling
edge of the clock. The SO pin has a CMOS push-pull
output and will drive low when CS
not go to a high-impedance state when CS
When using the daisy-chain configuration, the maximum clock speed possible is reduced to ~5.8 MHz,
because of the propagation delay of the data coming
out of the SO pin.
line for each
goes high. SO will
is held high.
When using the daisy-chain configuration, keep in mind
that the shift register of each device is automatically
loaded with zeros whenever a command is executed
= high). Because of this, the first 16 bits that come
(CS
out of the SO pin once the CS line goes low will always
be zeros. This means that when the first command is
being loaded into a device, it will always shift a NOP
command into the next device on the chain because
the command bits (and all the other bits) will be zeros.
This feature makes it necessary only to send command
and data bytes to the device farthest down the chain
that needs a new command. For example, if there were
three devices on the chain and it was desired to send a
command to the device in the middle, only 32 bytes of
data need to be transmitted. The last device on the
chain will have a NOP loaded from the previous device
so no registers will be affected when the CS
pin is
raised to execute the command. The user must
always ensure that multiples of 16 clocks are
always provided (while CS is low), as all commands
will abort if the number of clocks provided is not a
multiple of 16.
CS
111213141516
Data Byte
for Device 2
DPP
DPPXCXXXCDDDDDDD
SCK
SI
SO
23456789101
Command Byte
for Device 3
XCXXX
CDDDDDDD
First 16 bits shifted out
will always be zeros
†
There must always be multiples of 16 clocks while CS is low or commands will abort.
‡
DPP
The serial data out pin (SO) is only available on the MCP42XXX device.
111213141516
Data Byte
for Device 3
23456789101
Command Byte
for Device 2
XCXXX
CDDDDDDD
Command and Data for Device 3
start shifting out after the first 16 clocks
FIGURE 5-3:Timing Diagram for Daisy-Chain Configuration.
Data Registers for all
devices are loaded
on Rising Edge of CS
23456789101
Command Byte
for Device 1
XCXXXCDDDDDDD
Command and Data for Device 2
start shifting out after the first 32 clocks
111213141516
Data Byte
for Device 1
DPP
DPPXCXXX CDD DDDD D
2003 Microchip Technology Inc.DS11195C-page 19
Page 20
MCP41XXX/42XXX
CS
SCK
SO
Microcontroller
CS
SCK
SI
Device 1
EXAMPLE:
If you want to load the following
command/data into each part
in the chain.
SO
CS
SCK
SI
Device 2
SO
CS
SCK
SI
Device 3*
c
Start by setting CS low and
clocking in the command and
data that will end up in Device
3 (16 clocks).
d
Clock-In the command and
data for Device 2 (16 more
clocks). The data that was previously loaded gets shifted to
the next device on the chain.
e
Clock-In the data for Device 1
(16 more clocks). The data that
was previously loaded into
Device 1 gets shifted into
Device 2 and Device 3 contains
the first byte loaded. Raise the
CS
line to execute the commands for all 3 devices at the
same time.
Device 1
XX10XX11
XX10XX00
XX01XX10
XX10XX11
11001100
Device 1
10101010
Device 1
11110000
Device 1
11001100
Last device on a daisy-chain may be a single channel MCP41XXX device.
*
Device 2
XX01XX10
Device 2
00000000
Device 2
XX10XX00
Device 2
XX01XX10
11110000
00000000
10101010
11110000
Device 3
XX10XX00
After 16 clocks, Device 2 and
Device 3 will both have all
zeros clocked in from the
previous part’s shift register.
Device 3
00000000
After 32 clocks, Device 2 has
the data previously loaded
into Device 1 and Device 3
gets 16 more zeros.
Device 3
00000000
After 48 clocks, all 3 devices
have the proper command/
data loaded into their shift
registers.
Device 3
XX10XX00
10101010
00000000
00000000
10101010
FIGURE 5-4:Daisy-Chain Configuration.
DS11195C-page 20 2003 Microchip Technology Inc.
Page 21
MCP41XXX/42XXX
5.5Reset (RS) Pin Operation
The Reset pin (RS) will automatically set all potentiometer data latches to mid-scale (Code 80h) when pulled
low (provided that the pin is held low at least 150 ns
and CS
the position of the SCK, SHDN
is high). The reset will execute regardless of
and SI pins. It is possible to toggle RS low and back high while SHDN is low.
In this case, the potentiometer registers will reset to
mid-scale, but the potentiometer will remain in
shutdown mode until the SHDN
Note:Bringing the RS
pin is raised.
pin low while the CS pin is
low constitutes an invalid operating state
and will result in indeterminate results
when RS
and/or CS are brought high.
5.6Shutdown (SHDN) Pin Operation
When held low, the shutdown pin causes the application circuit to go into a power-saving mode by open-circuiting the A terminal and shorting the B and W
terminals for all potentiometers. Data register contents
are not affected by entering shutdown mode (i.e., when
the SHDN
pin is raised, the data register contents are
the same as before the shutdown mode was entered).
While in shutdown mode, it is still possible to clock in
new values for the data registers, as well as toggling
pin to cause all data registers to go to mid-scale.
the RS
The new values will take affect when the SHDN
pin is
raised.
If the device is powered-up with the SHDN
pin held low,
it will power-up in the shutdown mode with the data registers set to mid-scale.
Note:Bringing the SHDN
pin low while the CS
pin is low constitutes an invalid operating
state and will result in indeterminate
results when SHDN
and/or CS are brought
high.
5.7Power-up Considerations
When the device is powered on, the data registers will
be set to mid-scale (80h). A power-on reset circuit is
utilized to ensure that the device powers up in this
known state.
TABLE 5-1:TRUTH TABLE FOR LOGIC
INPUTS
SCK CSRS SHDNAction
XØHHCommunication is initiated with
LLHHNo action. Device is waiting for
¦LHXShift one bit into shift register.
ØLHXShift one bit out of shift register
X¦HHBased on command bits, either
XHHHStatic Operation.
XHØHAll data registers set and
XHØLAll data registers set and
XHHØAll potentiometers put into
XHH¦All potentiometers exit hard-
device. Device comes out of
standby mode.
data to be clocked into shift
register or CS
execute command.
The shift register can be loaded
while the SHDN
on the SO pin. The SO pin is
active while the SHDN
low.
load data from shift register into
data latches or execute shutdown command. Neither command executed unless
multiples of 16 clocks have
been entered while CS
SO pin goes to a logic low.
latched to code 80h.
latched to code 80h. Device is
in hardware shutdown mode
and will remain in this mode.
hardware shutdown mode;
terminal A is open and W is
shorted to B.
ware shutdown mode. Potentiometers will also exit software
shutdown mode if this rising
edge occurs after a low pulse
on CS
latches are restored.
to go high to
pin is low.
pin is
is low.
. Contents of data
2003 Microchip Technology Inc.DS11195C-page 21
Page 22
MCP41XXX/42XXX
5.8Using the MCP41XXX/42XXX in
SPI Mode 1,1
It is possible to operate the devices in SPI modes 0,0
and 1,1. The only difference between these two modes
is that, when using mode 1,1, the clock idles in the high
state, while in mode 0,0, the clock idles in the low state.
In both modes, data is clocked into the devices on the
rising edge of SCK and data is clocked out the SO pin
once the falling edge of SCK. Operations using mode
0,0 are shown in Figure 5-1. The example in
Figure 5-5 shows mode 1,1.
Data is always clocked out the SO
pin after the falling edge of SCK.
11 12 13 14 15 16
New Register Data
CS†
SCK
SO‡
Data is always latched in
on the rising edge of SCK.
2345678 9101
COMMAND BYTEDATA BYTE
Don’t
Care
Command
Bits
SI
X
†
There must always be multiples of 16 clocks while CS is low or commands will abort.
‡
The serial data out pin (SO) is only available on the MCP42XXX device.
Bits
X
C1
Don’t
Channel
Care
Bits
X
C0
First 16 bits Shifted out will always be zeros
Select
Bits
P1*
X
D7 D6 D5 D4 D3 D2 D1 D0
P0
FIGURE 5-5:Timing Diagram for SPI Mode 1,1 Operation.
Data Registers are
loaded on rising
edge of CS. Shift
register is loaded
with zeros at this time.
SO pin will always
drive low when CS
X
goes high.
DS11195C-page 22 2003 Microchip Technology Inc.
Page 23
6.0PACKAGING INFORMATION
6.1Package Marking Information
MCP41XXX/42XXX
8-Lead PDIP (300 mil)
XXXXXXXX
XXXXXNNN
YYWW
8-Lead SOIC (150 mil)
XXXXXXXX
XXXXYYWW
Example:
MCP41010
I/P256
0313
Example:
MCP41050
I/SN0313
NNN
14-Lead PDIP (300 mil)Example:
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
YYWWNNN
14-Lead SOIC (150 mil)
Example:
256
MCP42010
I/P
0313256
XXXXXXXXXXX
XXXXXXXXXXX
YYWWNNN
14-Lead TSSOP (4.4mm) *
XXXXXXXX
Example:
42100I
YYWW
NNN
Legend: XX...XCustomer specific information*
YYYear code (last 2 digits of calendar year)
WWWeek code (week of January 1 is week ‘01’)
NNNAlphanumeric traceability code
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.
*Standard marking consists of Microchip part number, year code, week code, facility code, mask rev#,
and assembly code.
42050ISL
XXXXXXXXXXX
0313256
0313
256
2003 Microchip Technology Inc.DS11195C-page 23
Page 24
MCP41XXX/42XXX
8-Lead Plastic Dual In-line (P) – 300 mil (PDIP)
E1
D
2
n
E
β
eB
Number of Pins
Pitch
Top to Seating PlaneA.140.155.1703.563.944.32
Molded Package Thickness
Base to Seating PlaneA1.0150.38
Shoulder to Shoulder WidthE.300.313.3257.627.948.26
Molded Package WidthE1.240.250.2606.106.356.60
Overall LengthD.360.373.3859.149.469.78
Tip to Seating PlaneL.125.130.1353.183.303.43
Lead Thickness
Upper Lead WidthB1.045.058.0701.141.461.78
Lower Lead WidthB.014.018.0220.360.460.56
Overall Row Spacing§
Mold Draft Angle Top
Mold Draft Angle Bottom
* Controlling Parameter
§ Significant Characteristic
Notes:
Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed
.010” (0.254mm) per side.
JEDEC Equivalent: MS-001
Drawing No. C04-018
Dimension LimitsMINNOMMAXMINNOMMAX
1
α
A
c
UnitsINCHES*MILLIMETERS
n
p
A2
c
eB
α
β
.115.130.1452.923.303.68
.008.012.0150.200.290.38
.310.370.4307.879.4010.92
A1
B1
B
88
.1002.54
5101551015
5101551015
A2
L
p
DS11195C-page 24 2003 Microchip Technology Inc.
Page 25
8-Lead Plastic Small Outline (SN) – Narrow, 150 mil (SOIC)
E
E1
p
D
2
MCP41XXX/42XXX
B
Number of Pins
Pitch
Molded Package Thickness
Foot Angle
Lead Thickness
Mold Draft Angle Top
Mold Draft Angle Bottom
* Controlling Parameter
§ Significant Characteristic
Notes:
Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed
.010” (0.254mm) per side.
JEDEC Equivalent: MS-012
Drawing No. C04-057
Number of Pins
Pitch
Top to Seating PlaneA.140.155.1703.563.944.32
Molded Package ThicknessA2.115.130.1452.923.303.68
Base to Seating PlaneA1.0150.38
Shoulder to Shoulder WidthE.300.313.3257.627.948.26
Molded Package WidthE1.240.250.2606.106.356.60
Overall LengthD.740.750.76018.8019.0519.30
Tip to Seating PlaneL.125.130.1353.183.303.43
Lead Thickness
Upper Lead WidthB1.045.058.0701.141.461.78
Lower Lead WidthB.014.018.0220.360.460.56
Overall Row Spacing§eB.310.370.4307.879.4010.92
Mold Draft Angle Top
Mold Draft Angle Bottom
* Controlling Parameter
§ Significant Characteristic
Notes:
Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed
.010” (0.254mm) per side.
JEDEC Equivalent: MS-001
Drawing No. C04-005
1
A
c
A1
Dimension LimitsMINNOMMAXMINNOMMAX
UnitsINCHES*MILLIMETERS
n
p
c
α
β
.008.012.0150.200.290.38
5101551015
5101551015
B1
B
1414
.1002.54
α
A2
L
p
DS11195C-page 26 2003 Microchip Technology Inc.
Page 27
14-Lead Plastic Small Outline (SL) – Narrow, 150 mil (SOIC)
E
E1
p
D
2
B
n
1
MCP41XXX/42XXX
45°
c
β
Number of Pins
Pitch
Foot Angle
Lead Thickness
Mold Draft Angle Top
Mold Draft Angle Bottom
* Controlling Parameter
§ Significant Characteristic
Notes:
Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed
.010” (0.254mm) per side.
JEDEC Equivalent: MS-012
Drawing No. C04-065
14-Lead Plastic Thin Shrink Small Outline (ST) – 4.4 mm (TSSOP)
E
E1
p
D
2
n
B
1
A
c
φ
β
Number of Pins
Pitch
Standoff §
Foot Angle
Lead Thickness
Mold Draft Angle Top
Mold Draft Angle Bottom
* Controlling Parameter
§ Significant Characteristic
Notes:
Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed
.005” (0.127mm) per side.
JEDEC Equivalent: MO-153
Drawing No. C04-087
Products supported by a preliminary Data Sheet may have an errata sheet describing minor operational differences and
recommended workarounds. To determine if an errata sheet exists for a particular device, please contact one of the following:
1.Your local Microchip sales office
2.The Microchip Corporate Literature Center U.S. FAX: (480) 792-7277
3.The Microchip Worldwide Site (www.microchip.com)
Please specify which device, revision of silicon and Data Sheet (include Literature #) you are using.
Customer Notification System
Register on our web site (www.microchip.com/cn) to receive the most current information on our products.
2003 Microchip Technology Inc.DS11195C-page 29
Page 30
MCP41XXX/42XXX
NOTES:
DS11195C-page 30 2003 Microchip Technology Inc.
Page 31
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 intended through suggestion only
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
No representation or warranty is given and no liability is
assumed by Microchip Technology Incorporated with respect
to the accuracy or use of such information, or infringement of
patents or other intellectual property rights arising from such
use or otherwise. Use of Microchip’s products as critical
components in life support systems is not authorized except
with express written approval by Microchip. No licenses are
conveyed, implicitly or otherwise, under any intellectual
property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
K
EELOQ
, MPLAB, PIC, PICmicro, PICSTART, PRO MATE and
PowerSmart are registered trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries.
FilterLab, microID, MXDEV, MXLAB, PICMASTER, SEEVAL
and The Embedded Control Solutions Company are
registered trademarks of Microchip Technology Incorporated
in the U.S.A.
Accuron, Application Maestro, dsPICDEM, dsPICDEM.net,
ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, InCircuit Serial Programming, ICSP, ICEPIC, microPort,
Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM,
PICC, PICkit, PICDEM, PICDEM.net, PowerCal, PowerInfo,
PowerMate, PowerTool, rfLAB, rfPIC, Select Mode,
SmartSensor, SmartShunt, SmartTel and Total Endurance are
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
Serialized Quick Turn Programming (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 QS-9000 quality system
certification for its worldwide headquarters,
design and wafer fabrication facilities in
Chandler and Tempe, Arizona in July 1999
and Mountain View, California in March 2002.
The Company’s quality system processes and
procedures are QS-9000 compliant for its
PICmicro
devices, Serial EEPROMs, microperipherals,
non-volatile memory and analog products. In
addition, Microchip’s quality system for the
design and manufacture of development
systems is ISO 9001 certified.
®
8-bit MCUs, KEEL
®
code hopping
OQ
2003 Microchip Technology Inc.DS11195C-page 31
Page 32
M
WORLDWIDE SALESAND SERVICE
AMERICAS
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support: 480-792-7627
Web Address: http://www.microchip.com
Atlanta
3780 Mansell Road, Suite 130
Alpharetta, GA 30022
Tel: 770-640-0034
Fax: 770-640-0307
Boston
2 Lan Drive, Suite 120
Westford, MA 01886
Tel: 978-692-3848
Fax: 978-692-3821
Chicago
333 Pierce Road, Suite 180
Itasca, IL 60143
Tel: 630-285-0071
Fax: 630-285-0075