May 2005
35
M9999-051305
KS8995MA
Micrel, Inc.
I2C Master Serial Bus Configuration
If a 2-wire EEPROM exists, the KS8995MA can perform more advanced features like broadcast storm protection and rate
control. The EEPROM should have the entire valid configuration data from Register 0 to Register 109 defined in the “Memory
Map,” except the status registers. After reset, the KS8995MA will start to read all 110 registers sequentially from the EEPROM.
The configuration access time (t
prgm) is less than 15ms as shown in Figure 7.
....
RST_N
SCL
SDA
t
prgm<15 ms
Figure 7. KS8995MA EEPROM
Configuration Timing Diagram
To configure the KS8995MA with a pre-configured EEPROM use the following steps:
1. At the board level, connect pin 110 on the KS8995MA to the SCL pin on the EEPROM. Connect pin 111 on the
KS8995MA to the SDA pin on the EEPROM.
2. Set the input signals PS[1:0] (pins 113 and 114, respectively) to “00.” This puts the KS8995MA serial bus
configuration into I2C master mode.
3. Be sure the board-level reset signal is connected to the KS8995MA reset signal on pin 115 (RST_N).
4. Program the contents of the EEPROM before placing it on the board with the desired configuration data. Note that
the first byte in the EEPROM must be “95” for the loading to occur properly. If this value is not correct, all other data
will be ignored.
5. Place EEPROM on the board and power up the board. Assert the active-low board level reset to RST_N on the
KS8995MA. After the reset is de-asserted, the KS8995MA will begin reading configuration data from the EEPROM.
The configuration access time (t
prgm) is less than 15ms.
Note: For proper operation, make sure that pin 47 (PWRDN_N) is not asserted during the reset operation.
SPI Slave Serial Bus Configuration
The KS8995MA 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 master device can access any register from Register 0 to Register 127
randomly. The system should configure all the desired settings before enabling the switch in the KS8995MA. To enable the
switch, write a "1" 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 KS8995MA also supports multiple reads or writes. After a byte is written to or read from the KS8995MA,
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, 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 KS8995MA is able to support a 5MHz SPI bus. A high performance SPI master is recommended to prevent internal counter
overflow.