X9221UPM XICOR [Xicor Inc.], X9221UPM Datasheet - Page 4

no-image

X9221UPM

Manufacturer Part Number
X9221UPM
Description
Manufacturer
XICOR [Xicor Inc.]
Datasheet
X9221
Instruction Structure
The next byte sent to the X9221 contains the instruction
and register pointer information. The four most signifi-
cant bits are the instruction. The next four bits point to
one of two pots and when applicable they point to one of
four associated registers. The format is shown below in
Figure 2.
Figure 2. Instruction Byte Format
The four high order bits define the instruction. The sixth
bit (P0) selects which one of the two potentiometers is
to be affected by the instruction. The last two bits (R1
and R0) select one of the four registers that is to be acted
upon when a register oriented instruction is issued.
Four of the nine instructions end with the transmission of
the instruction byte. The basic sequence is illustrated in
Figure 3. These two-byte instructions exchange data
between the WCR and one of the data registers. A
transfer from a data register to a WCR is essentially a
write to a static RAM. The response of the wiper to this
action will be delayed t
Figure 3. Two-Byte Command Sequence
I3
INSTRUCTIONS
I2
SCL
SDA
I1
R
S
A
T
T
I0
STPWV
POTENTIOMETER
0
0
SELECT
1
. A transfer from WCR’s
P0
0
REGISTER
R1
SELECT
1
A3 A2 A1 A0
R0
3079 ILL F09.1
A
C
K
4
current wiper position to a data register is a write to
nonvolatile memory and takes a minimum of t
complete. The transfer can occur between either poten-
tiometer and their associated registers or it may occur
between both of the potentiometers and one of their
associated registers.
Four instructions require a three-byte sequence to
complete. These instructions transfer data between the
host and the X9221; either between the host and one of
the data registers or directly between the host and the
WCR. These instructions are: Read WCR, read the
current wiper position of the selected pot; Write WCR,
change current wiper position of the selected pot; Read
Data Register, read the contents of the selected non-
volatile register; Write Data Register, write a new value
to the selected data register. The sequence of opera-
tions is shown in Figure 4.
The Increment/Decrement command is different from
the other commands. Once the command is issued and
the X9221 has responded with an acknowledge, the
master can clock the selected wiper up and/or down in
one segment steps; thereby, providing a fine tuning
capability to the host. For each SCL clock pulse (t
while SDA is HIGH, the selected wiper will move one
resistor segment towards the V
each SCL clock pulse while SDA is LOW, the selected
wiper will move one resistor segment towards the V
terminal. A detailed illustration of the sequence and
timing for this operation are shown in Figures 5 and 6
respectively.
I3
I2
I1
I0
0
P0 R1 R0
H
terminal. Similarly, for
A
C
K
3079 ILL F10
O
P
S
T
WR
HIGH
to
L
)

Related parts for X9221UPM