MCP413X/415X/423X/425X
7.8.1
SINGLE DECREMENT
7.8
Decrement Wiper
Normal and High Voltage
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.
Note:
The High Voltage Decrement Wiper
command is supported for compatability
with system that also support MCP414X/
416X/424X/426X devices.
Figure 6-7 through Figure 6-8 show possible
waveforms for a single Decrement. The decrement
operation requires that the CS pin be in the active state
(VILor VIHH). Typically the CS pin will be in the inactive
state (VIH) and is driven to the active state (VILor VIHH).
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 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.
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 provide a quick and easy
method to modify the value of the wiper location by -1
with minimal overhead.
COMMAND BYTE
(DECR COMMAND (n+1))
The Decrement commands only require the Decrement
A
D
3
A
D
2
A
D
1
A
D
0
1
0
X
X
command byte, while the CS pin is active (VILor VIHH
)
SDI
for a single decrement.
After the wiper is decremented to the desired position,
the CS pin should be forced to VIH to ensure that
unexpected transitions on the SCK pin do not cause
the wiper setting to change. Driving the CS pin to VIH
should occur as soon as possible (within device
specifications) after the last desired decrement occurs.
1
1
1
1
1
1
1
1
1
1
1
1
1*
0
1
0
Note 1, 2
Note 1, 3
SDO
Note 1: Only functions when writing the volatile
wiper registers (AD3:AD0) 0h and 1h.
2: Valid Address/Command combination.
TABLE 7-5:
DECREMENT OPERATION VS.
VOLATILE WIPER VALUE
3: Invalid Address/Command combination
all following SDO bits will be low until the
CMDERR condition is cleared.
(the CS pin is forced to the inactive
state).
Current Wiper
Setting
Decrement
Wiper (W)
Command
Operates?
Properties
7-bit
Pot
8-bit
Pot
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).
3FFh
081h
3FFh Reserved
101h (Full-Scale (W = A))
No
080h
100h Full-Scale (W = A)
Yes
FIGURE 7-8:
SDI and SDO States.
Decrement Command -
07Fh
041h
0FFh W = N
081
040h
080h W = N (Mid-Scale)
Yes
No
03Fh
001h
07Fh W = N
001
000h
000h Zero Scale (W = B)
© 2008 Microchip Technology Inc.
DS22060B-page 57