- No category
advertisement
Micrel, Inc. KSZ8873MLL/FLL/RLL
The MII operates in either PHY mode or MAC mode. The data interface is a nibble wide and runs at ¼ the network bit rate
(not encoded). Additional signals on the transmit side indicate when data is valid or when an error occurs during transmission. Similarly, the receive side has signals that convey when the data is valid and without physical layer errors.
For half duplex operation, the SCOL signal indicates if a collision has occurred during transmission.
The KSZ8873MLL/FLL does not provide the MRXER signal for PHY mode operation and the MTXER signal for MAC mode operation. Normally, MRXER indicates a receive error coming from the physical layer device and MTXER indicates a transmit error from the MAC device. Since the switch filters error frames, these MII error signals are not used by the
KSZ8873MLL/FLL. So, for PHY mode operation, if the device interfacing with the KSZ8873MLL/FLL has an MRXER input pin, it needs to be tied low. And, for MAC mode operation, if the device interfacing with the KSZ8873MLL/FLL has an
MTXER input pin, it also needs to be tied low.
The KSZ8873MLL/FLL provides a bypass feature in the MII PHY mode. Pin SMTXER3/MII_LINK is used for MII link status. If the host is power down, pin MII_LINK will go to high. In this case, no new ingress frames from port1 or port 2 will be sent out through port 3, and the frames for port 3 already in packet memory will be flushed out.
Turbo MII Interface Operation
The switch MII interface also supports the turbo MII mode with 200Mbps rate (200Base-TX) by setting the register 2 bit[6]=1. When use the Turbo MII mode, the other side of the MII should also support 200Mbps rate. The Turbo MII can be configured to PHY mode or MAC mode by the configuration pins. In PHY mode, the pins SMTXC and SMRXC will be 50
MHz clock output. In MAC mode, the pins SMTXC and SMRXC should be 50 MHz clock input.
RMII Interface Operation
The Reduced Media Independent Interface (RMII) specifies a low pin count Media Independent Interface (MII). RMII provides a common interface between physical layer and MAC layer devices, and has the following key characteristics:
1. ports 10Mbps and 100Mbps data rates.
2. Uses a single 50 MHz clock reference (provided internally or externally).
3. Provides independent 2-bit wide (di-bit) transmit and receive data paths.
4. Contains two distinct groups of signals: one for transmission and the other for reception
When EN_REFCLKO_3 is high, KSZ8873RLL will output a 50MHz in REFCLKO_3. Register 198 bit[3] is used to select internal or external reference clock. Internal reference clock means that the clock for the RMII of KSZ8873RLL will be provided by the KSZ8873RLL internally and the REFCLKI_3 pin is unconnected. For the external reference clock, the clock will provide to KSZ8873RLL via REFCLKI_3.
Note: If the reference clock is not provided by the KSZ8873RLL, this 50MHz reference clock has to be used in X1 pin instead of the 25MHz crystal since the clock skew of these two clock sources will impact on the RMII timing. The SPIQ clock selection strapping option pin is connected to low to select the 50MHz input.
0 0 External 50MHz OSC input to REFCLKI_3
Note
EN_REFCLKO_3 = 0 to Disable
REFCLKO_3 for better
EMI
0 1
1 1
1 0
Feedback to
REFCLKI_3
Internal Clock Source
REFCLKI_3 is unconnected to Enable
REFCLKO_3
EN_REFCLKO_3 = 1 to Enable
REFCLKO_3
Table 5. RMII Clock Setting
The RMII provided by the KSZ8873RLL is connected to the device’s third MAC. It complies with the RMII Specification.
The following table describes the signals used by the RMII bus. Refer to RMII Specification for full detail on the signal description.
September 2009 29
M9999-092309-1.2
Micrel, Inc.
RMII
Signal Name
Direction
(with respect to the PHY)
Direction
(with respect to the MAC)
RMII
Signal Description
REF_CLK Input
Input or
Output
CRS_DV Output Input
RXD1
RXD0
Output
Output
Input
Input
Synchronous 50 MHz clock reference for receive, transmit and control interface
Carrier sense/
Receive data valid
Receive data bit 1
Receive data bit 0
TXD1
TXD0
Input
Input
Output
Output
Input
RX_ER Output
(not required)
Transmit data bit 1
Transmit data bit 0
Receive error
KSZ8873MLL/FLL/RLL
KSZ8873RLL
RMII Signal (direction)
REFCLKI_3 (input)
SMRXDV3 (output)
SMRXD31 (output)
SMRXD30 (output)
SMTXEN3 (input)
SMTXD31 (input)
SMTXD30 (input)
(not used)
SMTXER3* (input)
* Connects to RX_ER signal of RMII PHY device
Table 6. RMII Signal Description
The KSZ8873RLL filters error frames, and thus does not implement the RX_ER output signal. To detect error frames from
RMII PHY devices, the SMTXER3 input signal of the KSZ8873RLL is connected to the RXER output signal of the RMII
PHY device.
Collision detection is implemented in accordance with the RMII Specification.
In RMII mode, tie MII signals, SMTXD3[3:2] and SMTXER3, to ground if they are not used.
The KSZ8873RLL RMII can interface with RMII PHY and RMII MAC devices. The latter allows two KSZ8873RLL devices to be connected back-to-back. The following table shows the KSZ8873RLL RMII pin connections with an external RMII
PHY and an external RMII MAC, such as another KSZ8873RLL device.
KSZ8873RLL
PHY-MAC Connections
External
PHY Signals
KSZ8873RLL
MAC Signals
REF_CLK
TX_EN
TXD1
TXD0
Pin
Descriptions
KSZ8873RLL
MAC-MAC Connections
KSZ8873RLL
MAC Signals
External
MAC Signals
REFCLKI_3 Reference REFCLKI_3 REF_CLK
SMRXDV3
SMRXD31
SMRXD30
Carrier sense/
Receive data valid
Receive data bit 1
Receive data bit 0
SMRXDV3 CRS_DV
SMRXD31 RXD1
SMRXD30 RXD0
CRS_DV
RXD1
RXD0
RX_ER
SMTXEN3 Transmit SMTXEN3 TX_EN
SMTXD31
SMTXD30
Transmit data bit 1
Transmit data bit 0
SMTXD31 TXD1
SMTXD30 TXD0
(not used) (not used)
Table 7. RMII Signal Connections
September 2009 30
M9999-092309-1.2
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 11 Pin Description and I/O Assignment
- 16 Pin Configuration
- 17 Functional Description
- 17 Functional Overview: Physical Layer Transceiver
- 17 100BASE-TX Transmit
- 17 100BASE-TX Receive
- 17 PLL Clock Synthesizer
- 17 Scrambler/De-scrambler (100BASE-TX Only)
- 17 100BASE-FX Operation
- 18 100BASE-FX Signal Detection
- 18 100BASE-FX Far-End Fault
- 18 10BASE-T Transmit
- 18 10BASE-T Receive
- 18 MDI/MDI-X Auto Crossover
- 19 Straight Cable
- 20 Crossover Cable
- 21 Auto-Negotiation
- 22 Cable Diagnostics
- 22 Access
- 22 Usage
- 22 Functional Overview: Power Management
- 23 Normal Operation Mode
- 23 Energy Detect Mode
- 23 Soft Power Down Mode
- 23 Power Saving Mode
- 23 Port based Power Down Mode
- 24 Functional Overview: MAC and Switch
- 24 Address Lookup
- 24 Learning
- 24 Migration
- 24 Aging
- 24 Forwarding
- 27 Switching Engine
- 27 MAC Operation
- 27 Inter Packet Gap (IPG)
- 27 Back-Off Algorithm
- 27 Late Collision
- 27 Illegal Frames
- 27 Full Duplex Flow Control
- 27 Half-Duplex Backpressure
- 28 Broadcast Storm Protection
- 28 Port Individual MAC address and Source Port Filtering
- 28 MII Interface Operation
- 29 Turbo MII Interface Operation
- 29 RMII Interface Operation
- 31 MII Management (MIIM) Interface
- 31 Serial Management Interface (SMI)
- 32 Advanced Switch Functions
- 32 Bypass Mode
- 32 IEEE 802.1Q VLAN Support
- 33 QoS Priority Support
- 33 Port-Based Priority
- 33 802.1p-Based Priority
- 34 DiffServ-Based Priority
- 34 Spanning Tree Support
- 35 Rapid Spanning Tree Support
- 35 Tail Tagging Mode
- 36 IGMP Support
- 36 IGMP Snooping
- 36 Multicast Address Insertion in the Static MAC Table
- 36 Port Mirroring Support
- 37 Rate Limiting Support
- 37 Unicast MAC Address Filtering
- 37 Configuration Interface
- 37 C Master Serial Bus Configuration
- 38 I2C Slave Serial Bus Configuration
- 39 SPI Slave Serial Bus Configuration
- 42 Loopback Support
- 42 Far-end Loopback
- 43 Near-end (Remote) Loopback
- 44 MII Management (MIIM) Registers
- 45 PHY1 Register 0 (PHYAD = 0x1, REGAD = 0x0): MII Basic Control
- 45 PHY2 Register 0 (PHYAD = 0x2, REGAD = 0x0): MII Basic Control
- 46 PHY1 Register 1 (PHYAD = 0x1, REGAD = 0x1): MII Basic Status
- 46 PHY2 Register 1 (PHYAD = 0x2, REGAD = 0x1): MII Basic Status
- 46 PHY1 Register 2 (PHYAD = 0x1, REGAD = 0x2): PHYID High
- 46 PHY2 Register 2 (PHYAD = 0x2, REGAD = 0x2): PHYID High
- 46 PHY1 Register 3 (PHYAD = 0x1, REGAD = 0x3): PHYID Low
- 46 PHY2 Register 3 (PHYAD = 0x2, REGAD = 0x3): PHYID Low
- 47 PHY1 Register 4 (PHYAD = 0x1, REGAD = 0x4): Auto-Negotiation Advertisement Ability
- 47 PHY2 Register 4 (PHYAD = 0x2, REGAD = 0x4): Auto-Negotiation Advertisement Ability
- 47 PHY1 Register 5 (PHYAD = 0x1, REGAD = 0x5): Auto-Negotiation Link Partner Ability
- 47 PHY2 Register 5 (PHYAD = 0x2, REGAD = 0x5): Auto-Negotiation Link Partner Ability
- 48 PHY1 Register 29 (PHYAD = 0x1, REGAD = 0x1D): Not supported
- 48 PHY2 Register 29 (PHYAD = 0x2, REGAD = 0x1D): LinkMD Control/Status
- 48 PHY1 Register 31 (PHYAD = 0x1, REGAD = 0x1F): PHY Special Control/Status
- 48 PHY2 Register 31 (PHYAD = 0x2, REGAD = 0x1F): PHY Special Control/Status
- 49 Memory Map (8-bit Registers)
- 49 Global Registers
- 49 Port Registers
- 49 Advanced Control Registers
- 50 Register Description
- 50 Global Registers (Registers 0 – 15)
- 50 Register 0 (0x00): Chip ID
- 50 Register 1 (0x01): Chip ID1 / Start Switch
- 50 Register 2 (0x02): Global Control
- 51 Register 3 (0x03): Global Control
- 51 Register 4 (0x04): Global Control
- 52 Register 5 (0x05): Global Control
- 53 Register 6 (0x06): Global Control
- 53 Register 7 (0x07): Global Control
- 54 Register 8 (0x08): Global Control
- 54 Register 9 (0x09): Global Control
- 54 Register 10 (0x0A): Global Control
- 54 Register 11 (0x0B): Global Control
- 54 Register 12 (0x0C): Global Control
- 54 Register 13 (0x0D): Global Control
- 55 Register 14 (0x0E): Global Control
- 55 Register 15 (0x0F): Global Control
- 56 Port Registers (Registers 16 – 95)
- 56 Register 16 (0x10): Port 1 Control
- 56 Register 32 (0x20): Port 2 Control
- 56 Register 48 (0x30): Port 3 Control
- 57 Register 17 (0x11): Port 1 Control
- 57 Register 33 (0x21): Port 2 Control
- 57 Register 49 (0x31): Port 3 Control
- 57 Register 18 (0x12): Port 1 Control
- 57 Register 34 (0x22): Port 2 Control
- 57 Register 50 (0x32): Port 3 Control
- 58 Register 19 (0x13): Port 1 Control
- 58 Register 35 (0x23): Port 2 Control
- 58 Register 51 (0x33): Port 3 Control
- 58 Register 20 (0x14): Port 1 Control
- 58 Register 36 (0x24): Port 2 Control
- 58 Register 52 (0x34): Port 3 Control
- 58 Register 21 (0x15): Port 1 Control
- 58 Register 37 (0x25): Port 2 Control
- 58 Register 53 (0x35): Port 3 Control
- 59 Register 22[6:0] (0x16): Port 1 Q0 ingress data rate limit
- 59 Register 38[6:0] (0x26): Port 2 Q0 ingress data rate limit
- 59 Register 54[6:0] (0x36): Port 3 Q0 ingress data rate limit
- 60 Register 23[6:0] (0x17): Port 1 Q1 ingress data rate limit
- 60 Register 39[6:0] (0x27): Port 2 Q1 ingress data rate limit
- 60 Register 55[6:0] (0x37): Port 3 Q1 ingress data rate limit
- 60 Register 24[6:0] (0x18): Port 1 Q2 ingress data rate limit
- 60 Register 40[6:0] (0x28): Port 2 Q2 ingress data rate limit
- 60 Register 56[6:0] (0x38): Port 3 Q2 ingress data rate limit
- 60 Register 25[6:0] (0x19): Port 1 Q3 ingress data rate limit
- 60 Register 41[6:0] (0x29): Port 2 Q3 ingress data rate limit
- 60 Register 57[6:0] (0x39): Port 3 Q3 ingress data rate limit
- 62 Register 26 (0x1A): Port 1 PHY Special Control/Status
- 62 Register 42 (0x2A): Port 2 PHY Special Control/Status
- 62 Register 58 (0x3A): Reserved, not applied to port
- 62 Register 27 (0x1B): Port 1 Not Support
- 62 Register 43 (0x2B): LinkMD Result
- 62 Register 59 (0x3B): Reserved, not applied to port
- 63 Register 28 (0x1C): Port 1 Control
- 63 Register 44 (0x2C): Port 2 Control
- 63 Register 60 (0x3C): Reserved, not applied to port
- 63 Register 29 (0x1D): Port 1 Control
- 63 Register 45 (0x2D): Port 2 Control
- 63 Register 61 (0x3D): Reserved, not applied to port
- 64 Register 30 (0x1E): Port 1 Status
- 64 Register 46 (0x2E): Port 2 Status
- 64 Register 62 (0x3E): Reserved, not applied to port
- 65 Register 31 (0x1F): Port 1 Status
- 65 Register 47 (0x2F): Port 2 Status
- 65 Register 63 (0x3F): Port 3 Status
- 65 Register 67 (0x43): Reset
- 66 Advanced Control Registers (Registers 96-198)
- 66 Register 96 (0x60): TOS Priority Control Register
- 66 Register 97 (0x61): TOS Priority Control Register
- 66 Register 98 (0x62): TOS Priority Control Register
- 67 Register 99 (0x63): TOS Priority Control Register
- 67 Register 100 (0x64): TOS Priority Control Register
- 67 Register 101 (0x65): TOS Priority Control Register
- 68 Register 102 (0x66): TOS Priority Control Register
- 68 Register 103 (0x67): TOS Priority Control Register
- 68 Register 104 (0x68): TOS Priority Control Register
- 69 Register 105 (0x69): TOS Priority Control Register
- 69 Register 106 (0x6A): TOS Priority Control Register
- 69 Register 107 (0x6B): TOS Priority Control Register
- 70 Register 108 (0x6C): TOS Priority Control Register
- 70 Register 109 (0x6D): TOS Priority Control Register
- 71 Register 111 (0x6F): TOS Priority Control Register
- 71 Registers 112 to
- 71 Register 112 (0x70): MAC Address Register
- 71 Register 113 (0x71): MAC Address Register
- 71 Register 114 (0x72): MAC Address Register
- 71 Register 115 (0x73): MAC Address Register
- 71 Register 116 (0x74): MAC Address Register
- 71 Register 117 (0x75): MAC Address Register
- 72 Registers 118 to
- 72 Register 118 (0x76): User Defined Register
- 72 Register 119 (0x77): User Defined Register
- 72 Register 120 (0x78): User Defined Register
- 72 Registers 121 to
- 72 Register 121 (0x79): Indirect Access Control
- 72 Register 122 (0x7A): Indirect Access Control
- 72 Register 123 (0x7B): Indirect Data Register
- 72 Register 124 (0x7C): Indirect Data Register
- 73 Register 125 (0x7D): Indirect Data Register
- 73 Register 126 (0x7E): Indirect Data Register
- 73 Register 127 (0x7F): Indirect Data Register
- 73 Register 128 (0x80): Indirect Data Register
- 73 Register 129 (0x81): Indirect Data Register
- 73 Register 130 (0x82): Indirect Data Register
- 73 Register 131 (0x83): Indirect Data Register
- 73 Register 147~142(0x93~0x8E): Station Address 1 and
- 73 Register 153~148 (0x99~0x94): Station Address 1 and
- 74 Register 154[6:0] (0x9A): Port 1 Q0 Egress data rate limit
- 74 Register 158[6:0] (0x9E): Port 2 Q0 Egress data rate limit
- 74 Register 162[6:0] (0xA2): Port 3 Q0 Egress data rate limit
- 74 Register 155[6:0] (0x9B): Port 1 Q1 Egress data rate limit
- 74 Register 159[6:0] (0x9F): Port 2 Q1 Egress data rate limit
- 74 Register 163[6:0] (0xA3): Port 3 Q1 Egress data rate limit
- 74 Register 156[6:0] (0x9C): Port 1 Q2 Egress data rate limit
- 74 Register 160[6:0] (0xA0): Port 2 Q2 Egress data rate limit
- 74 Register 164[6:0] (0xA4): Port 3 Q2 Egress data rate limit
- 74 Register 157[6:0] (0x9D): Port 1 Q3 Egress data rate limit
- 74 Register 161[6:0] (0xA1): Port 2 Q3 Egress data rate limit
- 74 Register 165[6:0] (0xA5): Port 3 Q3 Egress data rate limit
- 75 Register 166 (0xA6): KSZ8873 mode indicator
- 75 Register 167 (0xA7): High Priority Packet Buffer Reserved for Q
- 75 Register 168 (0xA8): High Priority Packet Buffer Reserved for Q
- 75 Register 169 (0xA9): High Priority Packet Buffer Reserved for Q
- 75 Register 170 (0xAA): High Priority Packet Buffer Reserved for Q
- 75 Register 171 (0xAB): PM Usage Flow Control Select Mode
- 75 Register 172 (0xAC): PM Usage Flow Control Select Mode
- 75 Register 173 (0xAD): PM Usage Flow Control Select Mode
- 76 Register 174 (0xAE): PM Usage Flow Control Select Mode
- 76 Register 175 (0xAF): TXQ Split for Q0 in Port
- 76 Register 176 (0xB0): TXQ Split for Q1 in Port
- 76 Register 177 (0xB1): TXQ Split for Q2 in Port
- 76 Register 178 (0xB2): TXQ Split for Q3 in Port
- 76 Register 179 (0xB3): TXQ Split for Q0 in Port
- 76 Register 180 (0xB4): TXQ Split for Q1 in Port
- 77 Register 181 (0xB5): TXQ Split for Q2 in Port
- 77 Register 182 (0xB6): TXQ Split for Q3 in Port
- 77 Register 183 (0xB7): TXQ Split for Q0 Port
- 77 Register 184 (0xB8): TXQ Split for Q1 Port
- 77 Register 185 (0xB9): TXQ Split for Q2 in Port
- 77 Register 186 (0xBA): TXQ Split for Q3 in Port
- 77 Register 187 (0xBB): Interrupt enable register
- 78 Register 188 (0xBC): Link Change Interrupt
- 78 Register 189 (0xBD): Force Pause Off Iteration Limit Enable
- 78 Register 192 (0xC0): Fiber Signal Threshold
- 79 Register 194 (0xC2): Insert SRC PVID
- 79 Register 195 (0xC3): Power Management and LED Mode
- 80 Register 196(0xC4): Sleep Mode
- 80 Register 198 (0xC6): Forward Invalid VID Frame and Host Mode
- 81 Static MAC Address Table
- 83 VLAN Table
- 84 Dynamic MAC Address Table
- 85 MIB (Management Information Base) Counters
- 87 Additional MIB Counter Information
- 88 Absolute Maximum Ratings
- 88 Operating Ratings
- 88 Electrical Characteristics
- 90 EEPROM Timing
- 91 MII Timing
- 93 RMII Timing
- 94 C Slave Mode Timing
- 96 SPI Timing
- 98 Auto-Negotiation Timing
- 99 Reset Timing
- 100 Reset Circuit
- 101 Selection of Isolation Transformers
- 101 Selection of Reference Crystal
- 102 Package Information