The KSZ8864 is Micrel Operations’ new generation integrated 4-port switch with a 64-pin small package. The KSZ8864 device consists of two PHYs and four MACs. Two of MACs support either MII or RMII interfaces for dual processor/DSP data transfer. Higher speed SPI and MDC/MDIO interfaces can fully manage the 4-port switch by the processor.
KSZ8864 Evaluation Board User’s Guide 4.0 Hardware Description The KSZ8864 evaluation board is in a compact form factor and can sit on a bench near a computer/laptop. There are three options for configuration: strap in mode; EEPROM mode; and SPI mode. Strap in mode configuration is easily done with on board jumper options. EEPROM mode and SPI mode are accomplished through a built in USB port interface.
Strap in configuration mode is the quickest and easiest way to get started. In this mode, the KSZ8864 acts as a standalone unmanaged 4-port switch. The user has to simply set the board’s configuration jumpers to the desired settings and apply power to the board. The user can also change jumper settings while power is applied to the board and press the convenient manual reset button for the new settings to take effect.
4.1.1 Feature Setting Jumpers The evaluation board provides jumpers to allow the user to easily set strap in configurations for the KSZ8864. Table 1 describes the jumpers and their function in the open or closed state. Table 1 Feature Setting Jumpers...
The evaluation board has an EEPROM to allow the user to explore more extensive capabilities of the KSZ8864. The user can conveniently program the EEPROM on board using the USB port from any computer with a WIN 2000/XP environment and the Micrel provided software. This makes it easy for the user to evaluate features like “broadcast storm protection”...
EEPROM. After reset, the KSZ8864 is ready for normal operation. 4.3 SPI Mode From SPI interface to the KSZ8864, use a USB to SPI converter that allows accessing all of the KSZ8864 features and registers. The user can easily access the SPI interface using a computer connected to the evaluation board’s USB port interface.
5.7 for details. 4.4 10/100 Ethernet Ports There are two 10/100 Ethernet ports on the KSZ8864 evaluation board. The ports J1 and J2 can be connected to a traffic generator/analyzer or a SmartBit via standard RJ45 connectors using CAT-5 cables.
KSZ8864 Evaluation Board User’s Guide connects to the port 3 MAC3 in the KSZ8864, and we refer to this as the port 3 Switch SW3-MII/RMII port. Both the SW4-MII and the SW3-MII are default available as PHY modes. SW4-MII can be configured to MAC mode by setting pin [47, 48] =11 and SW3-MII can be configured to MAC mode by setting bit 6 = ‘1’...
Pin 2-3 Close Pin 1-2 Close Mode with J8 (default for (default for PHY used SW3-MII) mode) Table 8 Configure for SW3-MII 4.6.3 Port 4 SW4-RMII Jumper Configuration for KSZ8864 Modes JP39 JP41 JP17 JP18 SW4-RMII Closed Open is clock mode...
From MDC/MDIO interface to the KSZ8864, use a USB to MDC/MDIO converter that allows accessing all of PHY related registers and all of the KSZ8864 registers. The user can easily access the MDC/MDIO interface using a computer connected to the evaluation board’s USB port interface.
Serial Bus Config. (PS1) Open 9. Connect the computer’s USB port to the KSZ8864 board with a USB port cable. 10. There are two ways to power up the evaluation board: a). Connect the 5 VDC power supply to the KSZ8864 when JP47 pin1-2 is closed.
3. In folder of Window SPI_I2C_MIIM Tools, there is a MicrelSwitchPhyTools_1.xx.msi file which is clicked to create two application files in the default folder of Micrel (or you selected folder) and two icons on desktop, they need window drivers supported first, see 5.2 section for detail.
Page 16
KSZ8864 Evaluation Board User’s Guide Found New Hardware Wizard window will pop-up and then follow the instructions step by step as below. . Choose ‘No, not this time’ radio button and click the ‘Next’ button. Micrel Inc. Page 16 5/9/2014...
Page 17
KSZ8864 Evaluation Board User’s Guide Choose the ‘Install from a list or specific location (Advanced)’ radio button and click the ‘Next’ button. Click the ‘Include this location in the search’ check box, and use ‘Browse’ button to select the ‘C:\MicrelEthernetChipConfig\D2XXDriver\CDM 2.02.04 WHQL Certified’ directory and click the ‘Next’...
KSZ8864 Evaluation Board User’s Guide 5.3 DOS SPI Tool This is a simple and powerful tool to access all register. The tool located in the folder of DOS SPI Tool in the Software tools folder. There is an USBSPI.exe file which can be executed directly by clicking its icon (the software tool support 8864 all registers also).
Micrel\MicrelSwitchPhyTools (default) or other assigned folder in the installation. The MDC/MDIO MIIM Software Tool can be executed directly by clicking its application file or icon with name of MicrelMDIOConfigWinApp on the desktop.
Page 20
KSZ8864 Evaluation Board User’s Guide Select ‘KSZ8864 4 port switch’ and click Next button, Pop up a MDIO MIIM Configuration window as follows: By this window, all of MIIM registers on 2 PHYs can be read and written directly. Click the mark of Down or Up, all MII registers will display for configuration.
5.5 MDC/MDIO SMI Software Tool 5.5.1 MDC/MDIO SMI software The software tool can be used to access all registers of KSZ8864 by MDC/MDIO interface. This tool locate in folder of MDC_MDIO SMI in the Design Kit, there is MicrelSMIIfApp.exe file which can be executed directly by clicking its icon.
Read register 1, display value with 0x40 and write bit1=1 to start switch with 0x41. 5.6 EEPROM Software Tool 5.6.1 EEPROM software installation Micrel provides EEPROM software tool can use a PC/Laptop via the on board USB port to program the KSZ8864 evaluation board’s EEPROM without the added expense of an external EEPROM programmer.
Page 23
KSZ8864 Evaluation Board User’s Guide Select the radio of I2C interface to do EEPROM configuration and press Continue button, pop up a window as follow. Click OK button, one of read/write EEPROM window will display as follow: Micrel Inc. Page 23...
Page 24
KSZ8864 Evaluation Board User’s Guide Note: Chip ID1 has to set to 0x00 or 0x01 for EEPROM contents to be downloaded to all registers in current device revision. The software tool can read/write all advanced and port control registers as followed pop-up Windows.
The default is SPI interface to do switch configuration. From the device selection window to select KSZ8864 device or/and press Continue button directly. A control window will be pop up as follow. The software tools also can do Auto detection and select a correct device function.
SPI. The software can save and open the configuration file. 6.0 Reference Documents KSZ8864 Data Sheet (Contact Micrel for Latest Datasheet), KSZ8864 Design Package includes all design information as a Design Kit (Contact Micrel for the updates).
Page 27
(a) are intended for surgical implant into the body or (b) support or sustain life, and whose failure to perform can be reasonably expected to result in a significant injury to the user. A Purchaser’s use or sale of Micrel Products for use in life support appliances, devices or systems is a Purchaser’s own risk and Purchaser agrees to fully indemnify Micrel for any damages...
Need help?
Do you have a question about the KSZ8864 and is the answer not in the manual?
Questions and answers