ADGS1612 Data Sheet
Rev. 0 | Page 22 of 29
THEORY OF OPERATION
The ADGS1612 is a set of serially controlled, quad SPST switches
with error detection features. SPI Mode 0 and SPI Mode 3 can
be used with the device, and it operates with SCLK frequencies
of up to 50 MHz. The default mode for the ADGS1612 is address
mode, in which the registers of the device are accessed by a 16-bit
SPI command bounded by
CS
. The SPI command becomes 24-bit
if the user enables CRC error detection. Other error detection
features include SCLK count error and invalid read/write error. If
any of these SPI interface errors occur, they are detectable by
reading the error flags register. The ADGS1612 can also operate
in two other modes, namely burst mode and daisy-chain mode.
The interface pins of the ADGS1612 are
CS
, SCLK, SDI, and
SDO. Hold
CS
low when using the SPI interface. Data is captured
on the SDI pin on the rising edge of SCLK, and data is propagated
out on the SDO pin on the falling edge of SCLK. SDO has an
open-drain output; thus, connect a pull-up resistor to this
output. When not pulled low by the ADGS1612, SDO is in a
high impedance state.
ADDRESS MODE
Address mode is the default mode for the ADGS1612 on
power-up. A single SPI frame in address mode is bounded by a
CS
falling edge and the succeeding
CS
rising edge. The SPI frame
is composed of 16 SCLK cycles. The timing diagram for address
mode is shown in Figure 39. The first SDI bit indicates whether
the SPI command is a read or write command. When the first
bit is set to 0, a write command is issued, and if the first bit is set
to 1, a read command is issued. The next seven bits determine the
target register address. The remaining eight bits provide the data
to the addressed register. The last eight bits are ignored during a
read command, because during these clock cycles, SDO
propagates out the data contained in the addressed register.
The target register address of an SPI command is determined on
the eighth SCLK rising edge. Data from this register propagates out
on SDO from the ninth to the 16
th
SCLK falling edge during SPI
reads. A register write occurs on the 16
th
SCLK rising edge
during SPI writes.
During any SPI command, SDO sends out eight alignment bits
on the first eight SCLK falling edges. The alignment bits observed
at SDO are 0x25.
ERROR DETECTION FEATURES
Protocol and communication errors on the SPI interface are
detectable. There are three detectable errors: incorrect SCLK error
detection, invalid read and write address error detection, and
CRC error detection. Each of these errors has a corresponding
enable bit in the error configuration register. In addition, there
is an error flag bit for each of these errors in the error flags
register.
Cyclic Redundancy Check (CRC) Error Detection
The CRC error detection feature extends a valid SPI frame by
eight SCLK cycles. These eight extra cycles are needed to send the
CRC byte for that SPI frame. The CRC byte is calculated by the SPI
block using the 16-bit payload: the R/
W
bit, Address Bits[6:0], and
Data Bits[7:0]. The CRC polynomial used in the SPI block is
x
8
+ x
2
+ x
1
+ 1 with a seed value of 0. For a timing diagram with
CRC enabled, see Figure 40. Register writes occur at the 24
th
SCLK
rising edge with CRC error checking enabled.
During an SPI write, the microcontroller/CPU provides the
CRC byte through SDI. The SPI block checks the CRC byte just
before the 24
th
SCLK rising edge. On this same edge, the register
write is prevented if an incorrect CRC byte is received by the
SPI interface. The CRC error flag is asserted in the error flags
register in the case of the incorrect CRC byte being detected.
During an SPI read, the CRC byte is provided to the microcon-
troller through SDO.
The CRC error detection feature is disabled by default and can
be configured by the user through the error configuration register.
0 0 1 0 0 1 0 1 D7 D6 D5 D4 D3 D2 D1 D0SDO
R/W A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0
1 2 3 4 5 6 7 8 9 10111213141516
SDI
SCLK
CS
16054-039
Figure 39. Address Mode Timing Diagram
0 0 1 D7 D6 D0 C7 C6 C5 C4 C3 C2 C1 C0SDO
R/W A6 A0 D7 D6 D0 C7 C6 C5 C4 C3 C2 C1 C0
1 2 8 9 10 16 17 18 19 20 21 22 23 24
SDI
SCLK
CS
16054-040
Figure 40. Timing Diagram with CRC Enabled
Data Sheet ADGS1612
Rev. 0 | Page 23 of 29
SCLK Count Error Detection
SCLK count error detection allows the user to detect if an incorrect
number of SCLK cycles are sent by the microcontroller or CPU.
When in address mode, with CRC disabled, 16 SCLK cycles are
expected. If 16 SCLK cycles are not detected, the SCLK count
error flag asserts in the error flags register. When less than
16 SCLK cycles are received by the device, a write to the register
map never occurs. When the ADGS1612 receives more than
16 SCLK cycles, a write to the memory map still occurs at the
16
th
SCLK rising edge, and the flag asserts in the error flags
register. With CRC enabled, the expected number of SCLK
cycles is 24. SCLK count error detection is enabled by default
and can be configured by the user through the error
configuration register.
Invalid Read/Write Address Error
An invalid read/write address error detects when a nonexistent
register address is a target for a read or write. In addition, this
error asserts when a write to a read only register is attempted.
The invalid read/write address error flag asserts in the error
flags register when an invalid read/write address error occurs.
The invalid read/write address error is detected on the ninth
SCLK rising edge, which means a write to the register never
occurs when an invalid address is targeted. Invalid read/write
address error detection is enabled by default and can be
disabled by the user through the error configuration register.
CLEARING THE ERROR FLAGS REGISTER
To clear the error flags register, write the special 16-bit SPI
frame, 0x6CA9, to the device. This SPI command does not
trigger the invalid R/W address error. When CRC is enabled,
the user must also send the correct CRC byte to complete an
error clear command. At the 16
th
or 24
th
SCLK rising edge, the
error flags register resets to zero.
BURST MODE
The SPI interface can accept consecutive SPI commands
without the need to deassert the
CS
line, which is called burst
mode. Burst mode is enabled through the burst enable register.
This mode uses the same 16-bit command to communicate
with the device. In addition, the response of the device at SDO
is still aligned with the corresponding SPI command. Figure 41
shows an example of SDI and SDO during burst mode.
The invalid read/write address and CRC error checking functions
operate similarly during burst mode as they do during address
mode. However, SCLK count error detection operates in a
slightly different manner. The total number of SCLK cycles
within a given
CS
frame are counted, and if the total is not a
multiple of 16 or a multiple of 24 when CRC is enabled, the
SCLK count error flag asserts.
SDO
COMMAND 0[15:0]
RESPONSE 0[15:0]
COMMAND 1[15:0]
RESPONSE 1[15:0]
COMMAND 2[15:0]
RESPONSE 2[15:0]
COMMAND 3[15:0]
RESPONSE 3[15:0]
SDI
CS
16054-041
Figure 41. Burst Mode Frame
SOFTWARE RESET
When in address mode, the user can initiate a software reset. To
do so, write two consecutive SPI commands, namely 0xA3 fol-
lowed by 0x05, targeting Register 0x0B. After a software reset,
all register values are set to default.
DAISY-CHAIN MODE
The connection of several ADGS1612 devices in a daisy-chain
configuration is possible, and Figure 42 shows this setup. All
devices share the same
CS
and SCLK line, whereas the SDO pin of
a device forms a connection to the SDI pin of the next device,
creating a shift register. In daisy-chain mode, SDO is an eight-cycle
delayed version of SDI. When in daisy-chain mode, all commands
target the switch data register. Therefore, it is not possible to
make configuration changes while in daisy-chain mode.
S4
SDI
SCLK
CS
RESET/V
L
S3
S2
S1
D4
SDO
D3
D2
D1
ADGS1612
DEVICE 1
RESET/V
L
S4
S3
S2
S1
D4
SDO
D3
D2
D1
ADGS1612
DEVICE 2
SPI
INTERFACE
SPI
INTERFACE
16054-042
Figure 42. Two SPI Controlled Switches Connected in a Daisy-Chain Configuration
ADGS1612 Data Sheet
Rev. 0 | Page 24 of 29
The ADGS1612 can only enter daisy-chain mode when in
address mode by sending the 16-bit SPI command, 0x2500
(see Figure 43). When the ADGS1612 receives this command,
the SDO of the device sends out the same command because
the alignment bits at SDO are 0x25, which allows multiple
daisy-connected devices to enter daisy-chain mode in a single
SPI frame. A hardware reset is required to exit daisy-chain mode.
For the timing diagram of a typical daisy-chain SPI frame, see
Figure 44. When
CS
goes high, Device 1 writes Command 0,
Bits[7:0] to its switch data register, Device 2 writes Command 1,
Bits[7:0] to its switches, and so on. The SPI block uses the last
eight bits it received through SDI to update the switches. After
entering daisy-chain mode, the first eight bits sent out by SDO
on each device in the chain are 0x00. When
CS
goes high, the
internal shift register value does not reset back to zero.
An SCLK rising edge reads in data on SDI while data is
propagated out of SDO on an SCLK falling edge. The expected
number of SCLK cycles must be a multiple of eight before
CS
goes high; if this is not the case, the SPI interface sends the last
eight bits received to the switch data register.
POWER-ON RESET
The digital section of the ADGS1612 enters an initialization phase
during V
L
power-up. This initialization also occurs after a
hardware or software reset. After V
L
power-up or a reset, ensure
that a minimum of 120 μs from the time of power-up or reset
before any SPI command is issued. Ensure that V
L
does not
drop out during the 120 μs initialization phase because this may
result in incorrect operation of the ADGS1612.
0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0SDO
0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
SDI
SCL
K
CS
16054-043
Figure 43. SPI Command to Enter Daisy-Chain Mode
SDO
COMMAND 3[7:0]
8’h00
COMMAND 2[7:0]
COMMAND 3[7:0]
COMMAND 1[7:0]
COMMAND 2[7:0]
COMMAND 0[7:0]
COMMAND 1[7:0]
SDI
SDO3
8’h00
8’h00
8’h00
8’h00
COMMAND 3[7:0]
8’h00
COMMAND 2[7:0]
COMMAND 3[7:0]
SDO2
DEVICE 2
DEVICE 1
DEVICE 4
DEVICE 3
CS
NOTES
1. SDO2 AND SDO3 ARE THE OUTPUT COMMANDS FROM DEVICE 2 AND DEVICE 3, RESPECTIVELY.
16054-044
Figure 44. Example of an SPI Frame When Four ADGS1612 Devices Are Connected in Daisy-Chain Mode

ADGS1612BCPZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog Switch ICs SPI Low Ron 4xSPST
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet