English
Language : 

KSZ8775CLX Datasheet, PDF (28/132 Pages) Microchip Technology – Integrated 5–Port 10/100 Managed Ethernet Switch with Port 4 RMII and Port 5 RGMII/MII/RMII Interfaces
KSZ8775CLX
3.5.3.1 Configuration Interface
3.5.3.1.1
SPI Slave Serial Bus Configuration
The KSZ8775CLX can also act as an SPI slave device. Through the SPI, the entire feature set can be enabled, including
“VLAN,” “IGMP snooping,” “MIB counters,” etc. The external SPI master device can access any registers randomly in
the datasheet shown. The SPI mode can configure all the desired settings including indirect registers and tables.
KSZ8775 default is in the ‘start switch’ mode with the register 1 bit [0] =’1’, to disable the switch, write a "0" to Register
1 bit [0].
Two standard SPI commands are supported (00000011 for “READ DATA,” and 00000010 for “WRITE DATA”). To speed
configuration time, the KSZ8775CLX also supports multiple reads or writes. After a byte is written to or read from the
KSZ8775CLX, the internal address counter automatically increments if the SPI slave select signal (SPIS_N) continues
to be driven low. If SPIS_N is kept low after the first byte is read, the next byte at the next address will be shifted out on
SPIQ. If SPIS_N is kept low after the first byte is written, then bits on the master out slave input (SPID) line will be written
to the next address. Asserting SPIS_N high terminates a read or write operation. This means that the SPIS_N signal
must be asserted high and then low again before issuing another command and address. The address counter wraps
back to zero once it reaches the highest address. Therefore, the entire register set can be written to or read from by
issuing a single command and address.
The KSZ8775CLX is able to support a SPI bus up to 50MHz. A high performance SPI master is recommended to pre-
vent internal counter overflow.
To use the KSZ8775CLX SPI:
1. At the board level, connect the KSZ8775CLX pins as shown in Table 3-5.
TABLE 3-5: SPI CONNECTIONS
KSZ8775CLX Signal Name
SPIS_N (S_CS)
SCL (S_CLK)
SDA (S_DI)
SPIQ (S_DO)
Microprocessor Signal Description
SPI slave select
SPI clock
Master out. Slave input.
Master input. Slave output.
2. Configure the serial communication to SPI slave mode by pulling down pin SPIQ with a pull-down resistor.
3. Write configuration data to registers using a typical SPI write data cycle as shown in Figure 3-7 or SPI multiple
write as shown in Figure 3-8. Note that data input on SDA is registered on the rising edge of SCL clock.
4. Registers can be read and the configuration can be verified with a typical SPI read data cycle as shown in
Figure 3-7 or a multiple read as shown in Figure 3-8. Note that read data is registered out of SPIQ on the falling
edge of SCL clock.
DS00002129C-page 28
 2015 Microchip Technology Inc.