Datasheet
© 2006 Microchip Technology Inc. DS21978C-page 33
MCP4011/2/3/4
5.2.4 DECREMENT (FOR MCP402X
COMPATIBILITY)
This mode is achieved by initializing the U/D
pin to a
low state (V
IL
) prior to achieving a low state (V
IL
) on the
CS pin. Subsequent rising edges of the U/D pin
decrement the wiper setting toward terminal B. This is
shown in Figure 5-4.
After the wiper is decremented to the desired position,
the U/D
pin should remain high (V
IH
), and the CS pin
should be forced to V
IH
to ensure that “unexpected”
transitions on the U/D
pin do not cause the wiper
setting to increment. Driving the CS pin to V
IH
should
occur as soon as possible (within device specifications)
after the last desired increment occurs.
When the device voltage falls below the RAM retention
voltage of the device, the wiper state may be corrupted.
When the device returns to the operating range, the
wiper will be loaded with the default POR wiper setting.
After the CS
pin is driven to V
IH
(from V
IL
), any other
serial command may immediately be entered.
FIGURE 5-4: Decrement (For MCP402X Compatibility).
Note: This command allows compatibility with
the MCP402X family, which supports
updating of the non-volatile wiper setting.
Note: The wiper value will not underflow. That is,
once the wiper value equals 0x00,
subsequent decrement commands are
ignored.
U/D
CS
Wiper
X-1
X
X-2 X-3 X-4
1 2 3 4
V
IH
V
IH
5
6
V
IL
V
IL