Datasheet
© 2008 Microchip Technology Inc. DS22059B-page 53
MCP414X/416X/424X/426X
7.7 Increment Wiper
Normal and High Voltage
The Increment Command is an 8-bit command. The
Increment Command can only be issued to volatile
memory locations. The format of the command is
shown in Figure 7-6.
An Increment Command to the volatile 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 volatile wiper location
by +1 with minimal overhead.
FIGURE 7-6: Increment Command -
SDI and SDO States.
7.7.1 SINGLE INCREMENT
Typically, the CS pin starts at the inactive state (V
IH
),
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
pin be in the active state
(V
IL
or V
IHH
). Typically, the CS pin will be in the inactive
state (V
IH
) and is driven to the active state (V
IL
or V
IHH
).
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
pin is active (V
IL
or V
IHH
)
for a single increment.
After the wiper is incremented to the desired position,
the CS
pin should be forced to V
IH
to ensure that
unexpected transitions on the SCK pin do not cause
the wiper setting to change. Driving the CS
pin to V
IH
should occur as soon as possible (within device
specifications) after the last desired increment occurs.
TABLE 7-4: INCREMENT OPERATION VS.
VOLATILE WIPER VALUE
Note: Table 7-2 shows the valid addresses for
the Increment Wiper command. Other
addresses are invalid.
A
D
3
A
D
2
A
D
1
A
D
0
01XX
1111111*1Note 1, 2
111111
0 0 Note 1, 3
(INCR COMMAND (n+1) )
SDI
SDO
COMMAND BYTE
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
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 (V
IH
).
Current Wiper
Setting
Wiper (W)
Properties
Increment
Command
Operates?
7-bit
Pot
8-bit
Pot
3FFh
081h
3FFh
101h
Reserved
(Full-Scale (W = A))
No
080h 100h Full-Scale (W = A) No
07Fh
041h
0FFh
081
W = N
040h 080h W = N (Mid-Scale) Yes
03Fh
001h
07Fh
001
W = N
000h 000h Zero Scale (W = B) Yes