
CAT5132
http://onsemi.com
9
Wiper Control Register (WCR) Description
The CAT5132 contains a 7-bit Wiper Control Register
which is decoded to select one of the 128 switches along its
resistor array. The WCR is a volatile register and is written
with the contents of the nonvolatile Data Register (DR) on
power-up. The Wiper Control Register loses its contents
when the CAT5132 is powered-down. The contents of the
WCR may be read or changed directly by the host using a
READ/WRITE command after addressing the WCR (see
Table 12 to access WCR). Since the CAT5132 will only
make use of the 7 LSB bits (The first data bit, or MSB, is
ignored) on write instructions and will always come back as
a “0” on read commands.
A write operation (see Table 14) requires a Start condition,
followed by a valid slave address byte, a valid address byte
00h, a data byte and a STOP condition. After each of the
three bytes the CAT5132 responds with an acknowledge. At
this time the data is written only to volatile registers, then the
device enters its standby state.
Table 14. WCR WRITE OPERATION
000000ST 11A00000010A ASP10000000
ACK
STOP
ACK
ACK
START
ID4
ID3
ID2
ID1
ID0
A1
A0
Wb
1st byte 2nd byte
AR address − 02h
3rd byte
WCR(80h) selection
000000ST 11A00000000A ASPxxxxxxxx
ACK
STOP
ACK
ACK
START
slave address byte WCR address − 00h data byte
An increment operation (see Table 15) requires a Start
condition, followed by a valid increment address byte
(01011), a valid address byte 00h. After each of the two
bytes, the CAT5132 responds with an acknowledge. At this
time if the data is high then the wiper is incremented or if the
data is low the wiper is decremented at each clock. Once the
stop is issued then the device enters its standby state with the
WCR data as being the last inc/dec position. Also, the wiper
position does not roll over but is limited to min and max
positions.
Table 15. WCR INCREMENT/DECREMENT OPERATION
000000ST 11A00000010A ASP10000000
ACK
STOP
ACK
ACK
START
ID4
ID3
ID2
ID1
ID0
A1
A0
Wb
1st byte 2nd byte
AR address − 02h
3rd byte
WCR(80h) selection
001000ST 11A00000000A SP11110000
STOP
ACK
ACK
START
slave address byte WCR address − 00h increment (1) / decrement (0) bits
A read operation (see Table 16) requires a Start condition,
followed by a valid slave address byte for write, a valid
address byte 00h, a second START and a second slave
address byte for read. After each of the three bytes, the
CAT5132 responds with an acknowledge and then the
device transmits the data byte. The master terminates the
read operation by issuing a STOP condition following the
last bit of Data byte.
Table 16. WCR READ OPERATION
000000ST 11A00000010A ASP10000000
ACK
STOP
ACK
ACK
START
ID4
ID3
ID2
ID1
ID0
A1
A0
Wb
1st byte 2nd byte
AR address − 02h
3rd byte
WCR(80h) selection
000000ST 11A00000000
ACK
START
slave address byte WCR address − 00h
000001ST 11A0XXXXXXXSP
STOP
START
slave address byte data byte