CAT5411
http://onsemi.com
9
The Wiper Control Register is a volatile register that loses
its contents when the CAT5411 is powered-down. Although
the register is automatically loaded with the value in DR0
upon power-up, this may be different from the value present
at power-down.
Data Registers (DR)
Each potentiometer has four 6-bit non-volatile Data
Registers. These can be read or written directly by the host.
Data can also be transferred between any of the four Data
Registers and the associated Wiper Control Register. Any
data changes in one of the Data Registers is a non-volatile
operation and will take a maximum of 5 ms.
Write in Process
The contents of the Data Registers are saved to
nonvolatile memory when the CS
input goes HIGH after a
write sequence is received. The status of the internal write
cycle can be monitored by issuing a Read Status command
to read the Write in Process (WIP) bit.
INSTRUCTIONS
Four of the ten instructions are three bytes in length. These
instructions are:
Read Wiper Control Register – read the current wiper
position of the selected potentiometer in the WCR
Write Wiper Control Register – change current wiper
position in the WCR of the selected potentiometer
Read Data Register – read the contents of the selected
Data Register
Write Data Register – write a new value to the
selected Data Register
Read Status – Read the status of the WIP bit which
when set to “1” signifies a write cycle is in progress.
Table 12. INSTRUCTION SET (Note: 1/0 = data is one or zero)
Instruction
Instruction Set
Operations
I3 I2 I1 I0 R1 R0 0 WCR
0
/ P0
Read Wiper Control Register 1 0 0 1 0 0 0 1/0 Read the contents of the Wiper Control
Register pointed to by P0
Write Wiper Control Register 1 0 1 0 0 0 0 1/0 Write new value to the Wiper Control Register
pointed to by P0
Read Data Register 1 0 1 1 1/0 1/0 0 1/0 Read the contents of the Data Register pointed
to by P0 and R1−R0
Write Data Register 1 1 0 0 1/0 1/0 0 1/0 Write new value to the Data Register pointed
to by P0 and R1−R0
XFR Data Register to Wiper
Control Register
1 1 0 1 1/0 1/0 0 1/0 Transfer the contents of the Data Register
pointed to by P0 and R1−R0 to its associated
Wiper Control Register
XFR Wiper Control Register
to Data Register
1 1 1 0 1/0 1/0 0 1/0 Transfer the contents of the Wiper Control
Register pointed to by P0 to the Data Register
pointed to by R1−R0
Global XFR Data Registers
to Wiper Control Registers
0 0 0 1 1/0 1/0 0 0 Transfer the contents of the Data Registers
pointed to by R1−R0 of all four pots to their
respective Wiper Control Registers
Global XFR Wiper Control
Registers to Data Register
1 0 0 0 1/0 1/0 0 0 Transfer the contents of both Wiper Control
Registers to their respective data Registers
pointed to by R1−R0 of all four pots
Increment/Decrement
Wiper Control Register
0 0 1 0 0 0 0 1/0 Enable Increment/decrement of the Control
Latch pointed to by P0
Read Status 0 1 0 1 0 0 0 1 Read WIP bit to check internal write cycle
status
The basic sequence of the three byte instructions is
illustrated in Figure 8. These three-byte instructions
exchange data between the WCR and one of the Data
Registers. The WCR controls the position of the wiper. The
response of the wiper to this action will be delayed by t
WRL
.
A transfer from the WCR (current wiper position), to a Data
Register is a write to non-volatile memory and takes a
minimum of t
WR
to complete. The transfer can occur
between one of the four potentiometers and one of its
associated registers; or the transfer can occur between all
potentiometers and one associated register.
Four instructions require a two-byte sequence to
complete, as illustrated in Figure 7. These instructions
transfer data between the host/processor and the CAT5411;
either between the host and one of the data registers or
directly between the host and the Wiper Control Register.
These instructions are: