|
CS3318 Datasheet, PDF (24/44 Pages) Cirrus Logic – 8-Channel Analog Volume Control | |||
|
◁ |
5.8.2
CS3318
Serial Control within a Multiple-CS3318 System
The CS3318 allows both independent and simultaneous control of up to 128 devices on a shared I²C or
SPI serial control bus. The address of each device is configured by the host controller via the shared serial
control bus. All serial communication, including the configuration of each deviceâs address, adheres to a
standard I²C or SPI bus protocol.
A deviceâs Individual device address, which provides read and write access to the deviceâs internal regis-
ters, should be set to a unique value, different from all other addresses recognized by devices on the serial
communication bus. This address facilitates independent control of each CS3318 on the serial control
bus.
A deviceâs Group 1 and Group 2 addresses, which provide write-only access to the deviceâs internal reg-
isters, may be set to the same value across multiple CS3318âs on the shared serial communication bus.
Assigning common Group addresses to multiple devices in a system allows system sub-master and sys-
tem master volume control. For instance, a system containing 8 CS3318âs may configure the Group 1 ad-
dress of the first set of 4 CS3318âs to 10h, the Group 1 address of the second set of 4 CS3318âs to 20h,
and the Group 2 address of all 8 CS3318âs to A0h. In this manner, a serial control data write to address
10h would act as a system sub-master control to the first set of 4 devices, a write to 20h would act as a
system sub-master control to the second set of 4 devices, and a write to A0h would act as a system mas-
ter control to all devices.
By default, the CS3318 will not respond to serial communication when addressed with its Group 1 or
Group 2 address. The CS3318 will only respond to one or both of these addresses if the corresponding
address has been enabled via the control port. To enable a Group address, its corresponding Enable bit,
located in the LSB of its respective Group address register, must be set.
The CS3318 implements an ENOut signal to facilitate the device address configuration process. This sig-
nal is used to hold all but one un-configured device in a reset state. After the Individual device address of
each device has been set, the ENOut signal is used to enable the ânextâ device in the chain, allowing its
Individual device address to be set. See âSPI Mode Serial Control Configurationâ section on page 24 and
âI²C Mode Control Configurationâ on page 26 for more information about system configuration in each
communication mode.
5.8.2.1 SPI Mode Serial Control Configuration
Up to 128 CS3318âs sharing the same CS signal may be connected to a common SPI serial control bus.
This shared serial bus is used to assign a unique device address to each device on the bus such that they
may be independently addressed. To implement this method of device address configuration, the devices
must be connected as shown in Figure 9.
CCLK
CS
μC
RST
CS CCLK
RESET Device 1 ENout
CS CCLK
RESET Device 2 ENout
CS CCLK
RESET Device 3 ENout
MOSI
MOSI
MOSI
MOSI
Figure 9. SPI Serial Control Connections
Note that the serial control signals CCLK, CS, and MOSI are connected in parallel to each CS3318. The
active low reset output of the system controller is connected to the RESET input of the first CS3318 in the
chain. The ENOut of the first device is connected to the RESET input of the second CS3318 whose ENOut
signal is connected to the third CS3318. This pattern of connecting the ENOut of device N to the RESET
24
DS693F1
|
▷ |