KSZ8041NL: General Description
KSZ8041NL: General Description
KSZ8041NL: General Description
10Base-T/100Base-TX
Physical Layer Transceiver
Data Sheet Rev. 1.2
General Description
The KSZ8041NL is a single supply 10Base-T/100Base-TX
Physical Layer Transceiver, which provides MII/RMII
interfaces to transmit and receive data. An unique mixed
signal design extends signaling distance while reducing
power consumption.
HP Auto MDI/MDI-X provides the most robust solution for
eliminating the need to differentiate between crossover
and straight-through cables.
Functional Diagram
July 2008
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Features
Applications
Printer
LOM
Game Console
IPTV
IP Phone
IP Set-top Box
Ordering Information
Part Number
KSZ8041NL
KSZ8041NLI
Temp. Range
0C to 70C
(1)
-40C to 85C
(1)
KSZ8041NL AM
-40C to 85C
Package
Lead Finish
Description
32-Pin MLF
Pb-Free
32-Pin MLF
Pb-Free
32-Pin MLF
Pb-Free
Note:
1.
July 2008
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Revision History
Revision
Date
Summary of Changes
1.0
10/13/06
1.1
4/27/07
1.2
7/18/08
July 2008
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Contents
Pin Configuration .................................................................................................................................................................. 8
Pin Description ...................................................................................................................................................................... 9
Strapping Options ............................................................................................................................................................... 12
Functional Description ....................................................................................................................................................... 13
100Base-TX Transmit....................................................................................................................................................... 13
100Base-TX Receive........................................................................................................................................................ 13
PLL Clock Synthesizer...................................................................................................................................................... 13
Scrambler/De-scrambler (100Base-TX only).................................................................................................................... 13
10Base-T Transmit ........................................................................................................................................................... 13
10Base-T Receive ............................................................................................................................................................ 13
SQE and Jabber Function (10Base-T only)...................................................................................................................... 14
Auto-Negotiation ............................................................................................................................................................... 14
MII Management (MIIM) Interface .................................................................................................................................... 16
Interrupt (INTRP) .............................................................................................................................................................. 16
MII Data Interface ............................................................................................................................................................. 16
MII Signal Definition.......................................................................................................................................................... 17
Transmit Clock (TXC) ................................................................................................................................................... 17
Transmit Enable (TXEN) .............................................................................................................................................. 17
Transmit Data [3:0] (TXD[3:0]) ..................................................................................................................................... 17
Receive Clock (RXC).................................................................................................................................................... 17
Receive Data Valid (RXDV).......................................................................................................................................... 18
Receive Data [3:0] (RXD[3:0]) ...................................................................................................................................... 18
Receive Error (RXER) .................................................................................................................................................. 18
Carrier Sense (CRS) .................................................................................................................................................... 18
Collision (COL) ............................................................................................................................................................. 18
Reduced MII (RMII) Data Interface................................................................................................................................... 18
RMII Signal Definition ....................................................................................................................................................... 19
Reference Clock (REF_CLK) ....................................................................................................................................... 19
Transmit Enable (TX_EN) ............................................................................................................................................ 19
Transmit Data [1:0] (TXD[1:0]) ..................................................................................................................................... 19
Carrier Sense/Receive Data Valid (CRS_DV).............................................................................................................. 19
Receive Data [1:0] (RXD[1:0]) ...................................................................................................................................... 19
Receive Error (RX_ER) ................................................................................................................................................ 19
Collision Detection ........................................................................................................................................................ 20
HP Auto MDI/MDI-X.......................................................................................................................................................... 20
Straight Cable ............................................................................................................................................................... 20
Crossover Cable ........................................................................................................................................................... 21
Power Management.......................................................................................................................................................... 22
Power Saving Mode ..................................................................................................................................................... 22
Power Down Mode ....................................................................................................................................................... 22
Reference Clock Connection Options .............................................................................................................................. 22
July 2008
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
................................................................................................................................................ 31
(6)
................................................................................................................................................ 32
Electrical Characteristics
Electrical Characteristics
July 2008
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
List of Figures
Figure 1. Auto-Negotiation Flow Chart................................................................................................................................. 15
Figure 2. Typical Straight Cable Connection ....................................................................................................................... 20
Figure 3. Typical Crossover Cable Connection ................................................................................................................... 21
Figure 4. 25MHz Crystal / Oscillator Reference Clock for MII Mode ................................................................................... 22
Figure 5. 50MHz Oscillator Reference Clock for RMII Mode............................................................................................... 22
Figure 6. KSZ8041NL Power and Ground Connections ...................................................................................................... 23
Figure 7. MII SQE Timing (10Base-T) ................................................................................................................................. 33
Figure 8. MII Transmit Timing (10Base-T) ........................................................................................................................... 34
Figure 9. MII Receive Timing (10Base-T) ............................................................................................................................ 35
Figure 10. MII Transmit Timing (100Base-TX)..................................................................................................................... 36
Figure 11. MII Receive Timing (100Base-TX)...................................................................................................................... 37
Figure 12. RMII Timing Data Received from RMII ............................................................................................................ 38
Figure 13. RMII Timing Data Input to RMII ....................................................................................................................... 38
Figure 14. Auto-Negotiation Fast Link Pulse (FLP) Timing ................................................................................................. 39
Figure 15. MDC/MDIO Timing.............................................................................................................................................. 40
Figure 16. Reset Timing....................................................................................................................................................... 41
Figure 17. Recommended Reset Circuit.............................................................................................................................. 42
Figure 18. Recommended Reset Circuit for interfacing with CPU/FPGA Reset Output...................................................... 42
Figure 19. Reference Circuits for LED Strapping Pins......................................................................................................... 43
July 2008
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
List of Tables
Table 1. MII Management Frame Format ............................................................................................................................ 16
Table 2. MII Signal Definition ............................................................................................................................................... 17
Table 3. RMII Signal Description.......................................................................................................................................... 19
Table 4. MDI/MDI-X Pin Definition ....................................................................................................................................... 20
Table 5. KSZ8041NL Power Pin Description ....................................................................................................................... 23
Table 6. MII SQE Timing (10Base-T) Parameters ............................................................................................................... 33
Table 7. MII Transmit Timing (10Base-T) Parameters......................................................................................................... 34
Table 8. MII Receive Timing (10Base-T) Parameters.......................................................................................................... 35
Table 9. MII Transmit Timing (100Base-TX) Parameters .................................................................................................... 36
Table 10. MII Receive Timing (100Base-TX) Parameters ................................................................................................... 37
Table 11. RMII Timing Parameters ...................................................................................................................................... 38
Table 12. Auto-Negotiation Fast Link Pulse (FLP) Timing Parameters ............................................................................... 39
Table 13. MDC/MDIO Timing Parameters ........................................................................................................................... 40
Table 14. Reset Timing Parameters .................................................................................................................................... 41
Table 15. Transformer Selection Criteria ............................................................................................................................. 44
Table 16. Qualified Single Port Magnetics........................................................................................................................... 44
Table 17. Typical Reference Crystal Characteristics ........................................................................................................... 44
July 2008
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Pin Configuration
July 2008
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Pin Description
Pin Number
1
Pin Name
Type
(1)
Pin Function
GND
Gnd
Ground
VDDPLL_1.8
VDDA_3.3
RX-
I/O
RX+
I/O
TX-
I/O
TX+
I/O
XO
Crystal feedback
This pin is used only in MII mode when a 25 MHz crystal is used.
This pin is a no connect if oscillator or external clock source is used, or if RMII
mode is selected.
XI /
REFCLK
10
REXT
I/O
RMII Mode:
11
MDIO
I/O
12
MDC
13
RXD3 /
Ipu/O
PHYAD0
14
RXD2 /
Ipd/O
PHYAD1
15
16
RXD1 /
Ipd/O
Config Mode:
MII Mode:
Config Mode:
MII Mode:
(2)
(3)
(2)
RXD[1] /
RMII Mode:
PHYAD2
Config Mode:
MII Mode:
(2)
(3)
RXD0 /
Ipu/O
RXD[0] /
RMII Mode:
DUPLEX
Config Mode:
VDDIO_3.3
18
RXDV /
Ipd/O
MII Mode:
July 2008
17
19
(2)
MII Mode:
CRSDV /
RMII Mode:
CONFIG2
Config Mode:
MII Mode:
RXC
M9999-071808-1.2
Micrel, Inc.
Pin Number
20
21
KSZ8041NL
Pin Name
RXER /
Type
Pin Function
MII Mode:
RX_ER /
RMII Mode:
ISO
Config Mode:
INTRP
Ipd/O
(1)
Opu
22
TXC
MII Mode:
23
TXEN /
MII Mode:
RMII Mode:
MII Mode:
(4)
RMII Mode:
(5)
MII Mode:
(4)
RMII Mode:
(5)
MII Mode:
(4)
(4)
TX_EN
24
TXD0 /
TXD[0]
25
TXD1 /
TXD[1]
26
TXD2
27
TXD3
28
COL /
Ipd/O
CONFIG0
29
CRS /
Ipd/O
CONFIG1
30
LED0 /
NWAYEN
Ipu/O
MII Mode:
MII Mode:
Config Mode:
MII Mode:
Config Mode:
LED Output:
Config Mode:
The LED0 pin is programmable via register 1Eh bits [15:14], and is defined as
follows.
LED mode = [00]
Link/Activity
Pin State
LED Definition
No Link
OFF
Link
ON
Activity
Toggle
Blinking
Pin State
LED Definition
OFF
Link
ON
July 2008
10
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Pin Number
31
Pin Name
LED1 /
Type
(1)
Ipu/O
SPEED
Pin Function
LED Output:
Config Mode:
The LED1 pin is programmable via register 1Eh bits [15:14], and is defined as
follows.
LED mode = [00]
Speed
Pin State
LED Definition
10BT
OFF
100BT
ON
Pin State
LED Definition
No Activity
OFF
Activity
Toggle
Blinking
RST#
PADDLE
GND
Gnd
Ground
Notes:
1. P = Power supply.
Gnd = Ground.
I = Input.
O = Output.
I/O = Bi-directional.
Ipd = Input with internal pull-down (40K +/-30%).
Ipu = Input with internal pull-up (40K +/-30%).
Opu = Output with internal pull-up (40K +/-30%).
Ipu/O = Input with internal pull-up (40K +/-30%) during power-up/reset; output pin otherwise.
Ipd/O = Input with internal pull-down (40K +/-30%) during power-up/reset; output pin otherwise.
2. MII Rx Mode: The RXD[3..0] bits are synchronous with RXCLK. When RXDV is asserted, RXD[3..0] presents valid data to MAC through the MII.
RXD[3..0] is invalid when RXDV is de-asserted.
3. RMII Rx Mode: The RXD[1:0] bits are synchronous with REF_CLK. For each clock period in which CRS_DV is asserted, two bits of recovered
data are sent from the PHY.
4. MII Tx Mode: The TXD[3..0] bits are synchronous with TXCLK. When TXEN is asserted, TXD[3..0] presents valid data from the MAC through
the MII. TXD[3..0] has no effect when TXEN is de-asserted.
5. RMII Tx Mode: The TXD[1:0] bits are synchronous with REF_CLK. For each clock period in which TX_EN is asserted, two bits of data are
received by the PHY from the MAC.
July 2008
11
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Strapping Options
Pin Number
Pin Name
Type
(1)
Pin Function
15
PHYAD2
Ipd/O
14
PHYAD1
Ipd/O
The PHY Address is latched at power-up / reset and is configurable to any value from
1 to 7.
13
PHYAD0
Ipu/O
18
CONFIG2
Ipd/O
29
CONFIG1
Ipd/O
28
CONFIG0
Ipd/O
20
ISO
Ipd/O
The CONFIG[2:0] strap-in pins are latched at power-up / reset and are defined as
follows:
CONFIG[2:0]
Mode
000
MII (default)
001
RMII
010
011
100
PCS Loopback
101
110
111
ISOLATE mode
Pull-up = Enable
Pull-down (default) = Disable
During power-up / reset, this pin value is latched into register 0h bit 10.
31
SPEED
Ipu/O
SPEED mode
Pull-up (default) = 100Mbps
Pull-down = 10Mbps
During power-up / reset, this pin value is latched into register 0h bit 13 as the Speed
Select, and also is latched into register 4h (Auto-Negotiation Advertisement) as the
Speed capability support.
16
DUPLEX
Ipu/O
DUPLEX mode
Pull-up (default) = Half Duplex
Pull-down = Full Duplex
During power-up / reset, this pin value is latched into register 0h bit 8 as the Duplex
Mode.
30
NWAYEN
Ipu/O
Note:
1.
Ipu/O = Input with internal pull-up (40K +/-30%) during power-up/reset; output pin otherwise.
Ipd/O = Input with internal pull-down (40K +/-30%) during power-up/reset; output pin otherwise.
Pin strap-ins are latched during power-up or reset. In some systems, the MAC receive input pins may drive high during
power-up or reset, and consequently cause the PHY strap-in pins on the MII/RMII signals to be latched high. In this case,
it is recommended to add 1K pull-downs on these PHY strap-in pins to ensure the PHY does not strap-in to ISOLATE or
PCS Loopback mode, or is not configured with an incorrect PHY Address.
July 2008
12
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Functional Description
The KSZ8041NL is a single 3.3V supply Fast Ethernet transceiver. It is fully compliant with the IEEE 802.3u Specification.
On the media side, the KSZ8041NL supports 10Base-T and 100Base-TX with HP auto MDI/MDI-X for reliable detection of
and correction for straight-through and crossover cables.
The KSZ8041NL offers a choice of MII or RMII data interface connection with the MAC processor. The MII management
bus option gives the MAC processor complete access to the KSZ8041NL control and status registers. Additionally, an
interrupt pin eliminates the need for the processor to poll for PHY status change.
Physical signal transmission and reception are enhanced through the use of patented analog circuitries that make the
design more efficient and allow for lower power consumption and smaller chip die size.
100Base-TX Transmit
The 100Base-TX transmit function performs parallel-to-serial conversion, 4B/5B coding, scrambling, NRZ-to-NRZI
conversion, and MLT3 encoding and transmission.
The circuitry starts with a parallel-to-serial conversion, which converts the MII data from the MAC into a 125MHz serial bit
stream. The data and control stream is then converted into 4B/5B coding, followed by a scrambler. The serialized data is
further converted from NRZ-to-NRZI format, and then transmitted in MLT3 current output.
The output current is set by an external 6.49k 1% resistor for the 1:1 transformer ratio. It has typical rise/fall times of 4
ns and complies with the ANSI TP-PMD standard regarding amplitude balance, overshoot and timing jitter. The waveshaped 10Base-T output drivers are also incorporated into the 100Base-TX drivers.
100Base-TX Receive
The 100Base-TX receiver function performs adaptive equalization, DC restoration, MLT3-to-NRZI conversion, data and
clock recovery, NRZI-to-NRZ conversion, de-scrambling, 4B/5B decoding, and serial-to-parallel conversion.
The receiving side starts with the equalization filter to compensate for inter-symbol interference (ISI) over the twisted pair
cable. Since the amplitude loss and phase distortion is a function of the cable length, the equalizer must adjust its
characteristics to optimize performance. In this design, the variable equalizer makes an initial estimation based on
comparisons of incoming signal strength against some known cable characteristics, and then tunes itself for optimization.
This is an ongoing process and self-adjusts against environmental changes such as temperature variations.
Next, the equalized signal goes through a DC restoration and data conversion block. The DC restoration circuit is used to
compensate for the effect of baseline wander and to improve the dynamic range. The differential data conversion circuit
converts the MLT3 format back to NRZI. The slicing threshold is also adaptive.
The clock recovery circuit extracts the 125MHz clock from the edges of the NRZI signal. This recovered clock is then used
to convert the NRZI signal into the NRZ format. This signal is sent through the de-scrambler followed by the 4B/5B
decoder. Finally, the NRZ serial data is converted to the MII format and provided as the input data to the MAC.
PLL Clock Synthesizer
The KSZ8041NL generates 125Mz, 25Mz and 20Mz clocks for system timing. Internal clocks are generated from an
external 25MHz crystal or oscillator. In RMII mode, these internal clocks are generated from an external 50MHz oscillator
or system clock.
Scrambler/De-scrambler (100Base-TX only)
The purpose of the scrambler is to spread the power spectrum of the signal in order to reduce EMI and baseline wander.
10Base-T Transmit
The 10Base-T drivers are incorporated with the 100Base-TX drivers to allow for transmission using the same magnetic.
The drivers also perform internal wave-shaping and pre-emphasize, and output 10Base-T signals with a typical amplitude
of 2.5V peak. The 10Base-T signals have harmonic contents that are at least 27dB below the fundamental frequency
when driven by an all-ones Manchester-encoded signal.
10Base-T Receive
On the receive side, input buffer and level detecting squelch circuits are employed. A differential input receiver circuit and
a PLL performs the decoding function. The Manchester-encoded data stream is separated into clock signal and NRZ data.
A squelch circuit rejects signals with levels less than 400 mV or with short pulse widths to prevent noise at the RX+ and
RX- inputs from falsely trigger the decoder. When the input exceeds the squelch limit, the PLL locks onto the incoming
July 2008
13
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
signal and the KSZ8041NL decodes a data frame. The receive clock is kept active during idle periods in between data
reception.
SQE and Jabber Function (10Base-T only)
In 10Base-T operation, a short pulse is put out on the COL pin after each frame is transmitted. This SQE Test is required
as a test of the 10Base-T transmit/receive path. If transmit enable (TXEN) is high for more than 20 ms (jabbering), the
10Base-T transmitter is disabled and COL is asserted high. If TXEN is then driven low for more than 250 ms, the 10BaseT transmitter is re-enabled and COL is de-asserted (returns to low).
Auto-Negotiation
The KSZ8041NL conforms to the auto-negotiation protocol, defined in Clause 28 of the IEEE 802.3u specification. Autonegotiation is enabled by either hardware pin strapping (pin 30) or software (register 0h bit 12).
Auto-negotiation allows unshielded twisted pair (UTP) link partners to select the highest common mode of operation. Link
partners advertise their capabilities to each other, and then compare their own capabilities with those they received from
their link partners. The highest speed and duplex setting that is common to the two link partners is selected as the mode
of operation.
The following list shows the speed and duplex operation mode from highest to lowest.
July 2008
14
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
N
o
Parallel
Operation
Yes
Attempt Auto
Negotiation
No
Join
Flow
Yes
July 2008
15
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
A physical connection that incorporates the clock line (MDC) and the data line (MDIO).
A specific protocol that operates across the aforementioned physical connection that allows an external controller
to communicate with one or more KSZ8041NL devices. Each KSZ8041NL device is assigned a PHY address
between 1 and 7 by the PHYAD[2:0] strapping pins.
An internal addressable set of thirteen 16-bit MDIO registers. Register [0:6] are required, and their functions are
defined by the IEEE 802.3u Specification. The additional registers are provided for expanded functionality.
The KSZ8041NL supports MIIM in both MII mode and RMII mode.
The following table shows the MII Management frame format for the KSZ8041NL.
Preamble
Start of
Frame
Read/Write
PHY
REG
OP Code
Address
Address
Bits [4:0]
Bits [4:0]
TA
Data
Idle
Bits [15:0]
Read
32 1s
01
10
00AAA
RRRRR
Z0
DDDDDDDD_DDDDDDDD
Write
32 1s
01
01
00AAA
RRRRR
10
DDDDDDDD_DDDDDDDD
Interrupt (INTRP)
INTRP (pin 21) is an optional interrupt signal that is used to inform the external controller that there has been a status
update in the KSZ8041NL PHY register. Bits[15:8] of register 1Bh are the interrupt control bits, and are used to enable
and disable the conditions for asserting the INTRP signal. Bits[7:0] of register 1Bh are the interrupt status bits, and are
used to indicate which interrupt conditions have occurred. The interrupt status bits are cleared after reading register 1Bh.
Bit 9 of register 1Fh sets the interrupt level to active high or active low.
MII Data Interface
The Media Independent Interface (MII) is specified in Clause 22 of the IEEE 802.3u Specification. It provides a common
interface between physical layer and MAC layer devices, and has the following key characteristics:
Provides independent 4-bit wide (nibble) transmit and receive data paths.
Contains two distinct groups of signals: one for transmission and the other for reception.
By default, the KSZ8041NL is configured in MII mode after it is power-up or reset with the following:
A 25MHz crystal connected to XI, XO (pins 9, 8), or an external 25MHz clock source (oscillator) connected to XI.
July 2008
16
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
MII
Signal Name
Direction
(with respect to PHY,
KSZ8041NL signal)
Direction
(with respect to MAC)
TXC
Output
Input
Description
Transmit Clock
(2.5MHz for 10Mbps; 25MHz for 100Mbps)
TXEN
Input
Output
Transmit Enable
TXD[3:0]
Input
Output
RXC
Output
Input
Receive Clock
RXDV
Output
Input
RXD[3:0]
Output
Input
RXER
Output
Receive Error
CRS
Output
Input
Carrier Sense
COL
Output
Input
Collision Detection
In 10Mbps mode, RXC is recovered from the line while carrier is active. RXC is derived from the PHYs reference
clock when the line is idle, or link is down.
In 100Mbps mode, RXC is continuously recovered from the line. If link is down, RXC is derived from the PHYs
reference clock.
RXC is 2.5MHz for 10Mbps operation and 25MHz for 100Mbps operation.
July 2008
17
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
In 10Mbps mode, RXDV is asserted with the first nibble of the SFD (Start of Frame Delimiter), 5D, and remains
asserted until the end of the frame.
In 100Mbps mode, RXDV is asserted from the first nibble of the preamble to the last nibble of the frame.
RXDV transitions synchronously with respect to RXC.
Receive Data [3:0] (RXD[3:0])
RXD[3:0] transitions synchronously with respect to RXC. For each clock period in which RXDV is asserted, RXD[3:0]
transfers a nibble of recovered data from the PHY.
Receive Error (RXER)
RXER is asserted for one or more RXC periods to indicate that a Symbol Error (e.g. a coding error that a PHY is capable
of detecting, and that may otherwise be undetectable by the MAC sub-layer) was detected somewhere in the frame
presently being transferred from the PHY.
RXER transitions synchronously with respect to RXC. While RXDV is de-asserted, RXER has no effect on the MAC.
Carrier Sense (CRS)
CRS is asserted and de-asserted as follows:
In 10Mbps mode, CRS assertion is based on the reception of valid preambles. CRS de-assertion is based on the
reception of an end-of-frame (EOF) marker.
In 100Mbps mode, CRS is asserted when a start-of-stream delimiter, or /J/K symbol pair is detected. CRS is deasserted when an end-of-stream delimiter, or /T/R symbol pair is detected. Additionally, the PMA layer de-asserts
CRS if IDLE symbols are received without /T/R.
Collision (COL)
COL is asserted in half-duplex mode whenever the transmitter and receiver are simultaneously active on the line. This is
used to inform the MAC that a collision has occurred during its transmission to the PHY.
COL transitions asynchronously with respect to TXC and RXC.
Reduced MII (RMII) Data Interface
The Reduced Media Independent Interface (RMII) specifies a low pin count Media Independent Interface (MII). It provides
a common interface between physical layer and MAC layer devices, and has the following key characteristics:
Uses a single 50MHz reference clock provided by the MAC or the system board.
Provides independent 2-bit wide (di-bit) transmit and receive data paths.
Contains two distinct groups of signals: one for transmission and the other for reception.
The KSZ8041NL is configured in RMII mode after it is power-up or reset with the following:
In RMII mode, unused MII signals, TXD[3:2] (pins 27, 26), are tied to ground.
July 2008
18
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
RMII
Signal Name
Direction
(with respect to PHY,
KSZ8041NL signal)
Direction
(with respect to MAC)
REF_CLK
Input
Input, or Output
TX_EN
Input
Output
Transmit Enable
TXD[1:0]
Input
Output
CRS_DV
Output
Input
RXD[1:0]
Output
Input
RX_ER
Output
Receive Error
Description
July 2008
19
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Collision Detection
The MAC regenerates the COL signal of the MII from TX_EN and CRS_DV.
HP Auto MDI/MDI-X
HP Auto MDI/MDI-X configuration eliminates the confusion of whether to use a straight cable or a crossover cable
between the KSZ8041NL and its link partner. This feature allows the KSZ8041NL to use either type of cable to connect
with a link partner that is in either MDI or MDI-X mode. The auto-sense function detects transmit and receive pairs from
the link partner, and then assigns transmit and receive pairs of the KSZ8041NL accordingly.
HP Auto MDI/MDI-X is enabled by default. It is disabled by writing a one to register 1F bit 13. MDI and MDI-X mode is
selected by register 1F bit 14 if HP Auto MDI/MDI-X is disabled.
An isolation transformer with symmetrical transmit and receive data paths is recommended to support auto MDI/MDI-X.
The IEEE 802.3u Standard defines MDI and MDI-X as follow:
MDI
MDI-X
RJ-45 Pin
Signal
RJ-45 Pin
Signal
TD+
RD+
TD-
RD-
RD+
TD+
RD-
TD-
Straight Cable
A straight cable connects a MDI device to a MDI-X device, or a MDI-X device to a MDI device. The following diagram
depicts a typical straight cable connection between a NIC card (MDI) and a switch, or hub (MDI-X).
10/100 Ethernet
Media Dependent Interface
10/100 Ethernet
Media Dependent Interface
Transmit Pair
Receive Pair
Straight
Cable
Receive Pair
Transmit Pair
Modular Connector
(RJ-45)
HUB
(Repeater or Switch)
Modular Connector
(RJ-45)
NIC
July 2008
20
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Crossover Cable
A crossover cable connects a MDI device to another MDI device, or a MDI-X device to another MDI-X device. The
following diagram depicts a typical crossover cable connection between two switches or hubs (two MDI-X devices).
10/100 Ethernet
Media Dependent Interface
1
Receive Pair
10/100 Ethernet
Media Dependent Interface
Crossover
Cable
1
Receive Pair
Transmit Pair
Transmit Pair
July 2008
21
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Power Management
The KSZ8041NL offers the following power management modes:
Power Saving Mode
This mode is used to reduce power consumption when the cable is unplugged. It is in effect when auto-negotiation mode
is enabled, cable is disconnected, and register 1F bit 10 is set to 1. Under power saving mode, the KSZ8041NL shuts
down all transceiver blocks, except for transmitter, energy detect and PLL circuits. Additionally, in MII mode, the RXC
clock output is disabled. RXC clock is enabled after the cable is connected and link is established.
Power saving mode is disabled by writing a zero to register 1F bit 10.
Power Down Mode
This mode is used to power down the entire KSZ8041NL device when it is not in use. Power down mode is enabled by
writing a one to register 0 bit 11. In the power down state, the KSZ8041NL disables all internal functions, except for the
MII management interface.
Reference Clock Connection Options
A crystal or clock source, such as an oscillator, is used to provide the reference clock for the KSZ8041NL. The reference
clock is 25MHz for MII mode and 50MHz for RMII mode. The following two figures illustrate how to connect the reference
clock to XI / REFCLK (pin 9) and XO (pin 8) of the KSZ8041NL.
July 2008
22
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Power Pin
Pin Number
Description
VDDPLL_1.8
VDDA_3.3
VDDIO_3.3
17
July 2008
23
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Register Map
Register Number (Hex)
Description
0h
Basic Control
1h
Basic Status
2h
PHY Identifier 1
3h
PHY Identifier 2
4h
Auto-Negotiation Advertisement
5h
6h
Auto-Negotiation Expansion
7h
8h
9h 14h
Reserved
15h
RXER Counter
16h 1Ah
Reserved
1Bh
Interrupt Control/Status
1Ch 1Dh
Reserved
1Eh
PHY Control 1
1Fh
PHY Control 2
Register Description
Address
Name
(1)
Description
Mode
1 = Software reset
RW/SC
RW
RW
Default
Reset
0 = Normal operation
This bit is self-cleared after a 1 is written to it.
0.14
Loop-back
0.13
Speed Select
(LSB)
1 = Loop-back mode
0 = Normal operation
1 = 100Mbps
0 = 10Mbps
0.11
AutoNegotiation
Enable
Power Down
RW
RW
0 = Normal operation
0.10
Isolate
0 = Normal operation
0.9
Restart AutoNegotiation
RW/SC
0 = Normal operation.
This bit is self-cleared after a 1 is written to it.
July 2008
24
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Address
Name
Description
Mode
0.8
Duplex Mode
1 = Full-duplex
RW
(1)
0 = Half-duplex
0.7
Collision Test
Default
Set by DUPLEX strapping pin.
See Strapping Options section
for details.
RW
RO
000_000
RW
RO
RO
RO
RO
RO
RO
0000
RO
RO
RO/LH
RO
RO/LL
RO/LH
RO
RO
0022h
Reserved
Disable
0 = Enable transmitter
Transmitter
1 = Disable transmitter
100Base-T4
1 = T4 capable
0 = Not T4 capable
1.14
100Base-TX
Full Duplex
1.13
100Base-TX
Half Duplex
10Base-T Full
Duplex
1.11
10Base-T Half
Duplex
1.10:7
Reserved
1.6
No Preamble
1.5
AutoNegotiation
Complete
Remote Fault
1 = Remote fault
1.12
1.4
0 = No remote fault
1.3
1.2
AutoNegotiation
Ability
Link Status
1 = Link is up
0 = Link is down
1.1
Jabber Detect
1 = Jabber detected
0 = Jabber not detected (default is low)
1.0
Extended
Capability
July 2008
PHY ID
Number
25
M9999-071808-1.2
Micrel, Inc.
Address
KSZ8041NL
Name
Description
Mode
(1)
Default
PHY ID
Number
RO
0001_01
3.9:4
Model Number
RO
01_0001
3.3:0
Revision
Number
RO
0010
RW
RO
RW
RO
00
RW
RO
Next Page
4.14
Reserved
4.13
Remote Fault
4.12:11
Reserved
4.10
Pause
4.9
100Base-T4
4.8
4.7
4.6
4.5
4.4:0
100Base-TX
Full-Duplex
100Base-TX
Half-Duplex
10Base-T
Full-Duplex
10Base-T
Half-Duplex
Selector Field
RW
RW
RW
RW
RW
0_0001
RO
RO
RO
RO
RO
00
RO
Next Page
5.14
Acknowledge
5.13
Remote Fault
5.12
Reserved
5.11:10
Pause
[00] = No PAUSE
[10] = Asymmetric PAUSE
[01] = Symmetric PAUSE
[11] = Asymmetric & Symmetric PAUSE
5.9
100Base-T4
1 = T4 capable
0 = No T4 capability
July 2008
26
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
(1)
Address
Name
Description
Mode
5.8
100Base-TX
Full-Duplex
RO
5.7
100Base-TX
Half-Duplex
RO
10Base-T
Full-Duplex
RO
10Base-T
Half-Duplex
RO
Selector Field
RO
0_0001
RO
0000_0000_000
RO/LH
RO
RO
RO/LH
RO
RW
RO
RW
RW
RO
RW
000_0000_0001
RO
RO
RO
5.6
5.5
5.4:0
Default
Reserved
6.4
Parallel
Detection Fault
Link Partner
Next Page
Able
Next Page
Able
Page Received
6.3
6.2
6.1
6.0
Link Partner
AutoNegotiation
Able
Next Page
7.14
Reserved
7.13
Message Page
1 = Message page
0 = Unformatted page
7.12
Acknowledge2
7.11
Toggle
7.10:0
Message Field
0 = Logic zero
Next Page
8.14
Acknowledge
8.13
Message Page
1 = Message page
July 2008
27
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
(1)
Address
Name
Description
Mode
Default
8.12
Acknowledge2
RO
8.11
Toggle
RO
RO
000_0000_0000
RO/SC
0000h
RW
RW
RW
RW
RW
RW
RW
RW
RO/SC
RO/SC
RO/SC
RO/SC
RO/SC
RO/SC
Message Field
RXER Counter
Jabber
Interrupt
Enable
Receive Error
Interrupt
Enable
Page Received
Interrupt
Enable
Parallel Detect
Fault Interrupt
Enable
Link Partner
Acknowledge
Interrupt
Enable
Link Down
Interrupt
Enable
Remote Fault
Interrupt
Enable
Link Up
Interrupt
Enable
Jabber
Interrupt
1 = Jabber occurred
Receive Error
Interrupt
Page Receive
Interrupt
1b.4
Parallel Detect
Fault Interrupt
1b.3
Link Partner
Acknowledge
Interrupt
Link Down
Interrupt
1b.14
1b.13
1b.12
1b.11
1b.10
1b.9
1b.8
1b.7
1b.6
1b.5
1b.2
July 2008
28
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
(1)
Address
Name
Description
Mode
Default
1b.1
Remote Fault
Interrupt
RO/SC
1b.0
Link Up
Interrupt
1= Link Up occurred
RO/SC
RW
00
LED mode
[00] =
LED1 : Speed
LED0 : Link/Activity
[01] =
LED1 : Activity
LED0 : Link
[10] =
Reserved
[11] =
Reserved
1e.13
Polarity
1e.12
Reserved
1e.11
MDI/MDI-X
State
RO
1 = Polarity is reversed
1e:10:8
Reserved
1e:7
Remote
loopback
1e:6:0
RO
0 = MDI
RO
1 = MDI-X
0 = Normal mode
RW
RW
RW
RW
RO
Reserved
HP_MDIX
1f:14
MDI/MDI-X
Select
1f:13
Pairswap
Disable
1f.12
Energy Detect
July 2008
29
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
(1)
Address
Name
Description
Mode
Default
1f.11
Force Link
RW
RW
RW
RW
RW
RO
RO
RO
000
RW
RW
Power Saving
1f.9
Interrupt Level
1f.8
Enable Jabber
1f.7
AutoNegotiation
Complete
1f.6
Enable Pause
(Flow Control)
1f.5
PHY Isolate
1f.4:2
Operation
Mode
Indication
1f.1
Enable SQE
test
1f.0
Disable Data
Scrambling
1 = Disable scrambler
Note:
1.
RW = Read/Write.
RO = Read only.
SC = Self-cleared.
LH = Latch high.
LL = Latch low.
July 2008
30
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Operating Ratings(2)
Supply Voltage
(VDDPLL_1.8) ............................................... -0.5V to +2.4V
(VDDIO_3.3, VDDA_3.3) ................................... -0.5V to +4.0V
Input Voltage (all inputs) ............................... -0.5V to +4.0V
Output Voltage (all outputs) .......................... -0.5V to +4.0V
Lead Temperature (soldering, 10sec.) ....................... 260C
Storage Temperature (Ts) ..........................-55C to +150C
(3)
ESD Rating .................................................................. 6kV
Supply Voltage
(VDDIO_3.3, VDDA_3.3) .......................... +3.135V to +3.465V
Ambient Temperature (TA) .............................. 0C to +70C
Maximum Junction Temperature (TJ Max) ................. 125C
Maximum Case Temperature (TC Max)...................... 150C
Thermal Resistance (JA) .........................................34C/W
Thermal Resistance (JC) ...........................................6C/W
Electrical Characteristics(4)
Symbol
Parameter
Condition
Min
Typ
Max
Units
53
58.3
mA
38
41.8
mA
(5)
Supply Current
IDD1
100Base-TX
IDD2
10Base-T
IDD3
32
35.2
mA
IDD4
4.4
mA
TTL Inputs
VIH
VIL
IIN
Input Current
2.0
VIN = GND ~ VDDIO
V
0.8
10
-10
TTL Outputs
VOH
IOH = -4mA
VOL
IOL = 4mA
|Ioz|
2.4
V
0.4
10
VIMB
tr , tf
Rise/Fall Time
Rise/Fall Time Imbalance
0.95
1.05
ns
0.5
ns
+ 0.25
ns
0.65
0.7
Peak-to-peak
V
1.4
ns
Notes:
1. Exceeding the absolute maximum rating may damage the device. Stresses greater than the absolute maximum rating may cause permanent
damage to the device. Operation of the device at these or any other conditions above those specified in the operating sections of this specification
is not implied. Maximum conditions for extended periods may affect reliability.
2. The device is not guaranteed to function outside its operating rating.
3. Devices are ESD sensitive. Handling precautions recommended. Human body model, 1.5k in series with 100pF.
4. TA = 25C. Specification for packaged product only.
5. Current consumption is for the single 3.3V supply KSZ8041NL device only, and includes the 1.8V supply voltage (VDDPLL_1.8) that is provided by the
KSZ8041NL. The PHY ports transformer consumes an additional 45mA @ 3.3V for 100Base-TX and 70mA @ 3.3V for 10Base-T.
July 2008
31
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Electrical Characteristics(6)
10Base-T Transmit (measured differentially after 1:1 transformer)
VP
tr , tf
Jitter Added
Peak-to-peak
Rise/Fall Time
2.2
2.8
3.5
ns
25
ns
400
mV
10Base-T Receive
VSQ
Squelch Threshold
Notes:
July 2008
32
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Timing Diagrams
MII SQE Timing (10Base-T)
Timing Parameter
Description
Min
Typ
Max
Unit
tP
TXC period
400
ns
tWL
200
ns
tWH
200
ns
tSQE
2.5
us
tSQEP
1.0
us
July 2008
33
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Timing Parameter
Description
Min
Typ
Max
Unit
tP
TXC period
400
ns
tWL
200
ns
tWH
200
ns
tSU1
10
tSU2
10
ns
tHD1
ns
tHD2
ns
tCRS1
Bit
Time
tCRS2
Bit
Time
ns
July 2008
34
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Timing Parameter
Description
Min
Typ
tP
RXC period
400
ns
tWL
200
ns
tWH
200
ns
tOD
tRLAT
182
Max
225
6.5
Unit
ns
us
July 2008
35
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Timing Parameter
Description
Min
Typ
Max
Unit
tP
TXC period
40
ns
tWL
20
ns
tWH
20
ns
tSU1
10
ns
tSU2
10
ns
tHD1
ns
tHD2
ns
tCRS1
Bit
Time
tCRS2
Bit
Time
July 2008
36
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Timing Parameter
Description
tP
RXC period
Min
Typ
40
Max
ns
tWL
20
ns
tWH
tOD
19
tRLAT
20
Unit
ns
25
ns
Bit
Time
July 2008
37
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
RMII Timing
Timing Parameter
Description
Min
Typ
Max
tcyc
Clock cycle
t1
Setup time
ns
t2
Hold time
ns
tod
Output delay
20
2.8
Unit
ns
10
ns
July 2008
38
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Auto-Negotiation Timing
Timing Parameter
Description
Min
Typ
Max
Units
tBTB
16
24
ms
tFLPW
tPW
tCTD
55.5
64
69.5
tCTC
111
128
139
17
ms
100
ns
33
July 2008
39
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
MDC/MDIO Timing
Timing Parameter
Description
Min
tP
MDC period
t1MD1
10
tMD2
10
tMD3
Typ
400
Max
Unit
ns
ns
ns
222
ns
July 2008
40
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Reset Timing
The KSZ8041NL reset timing requirement is summarized in the following figure and table.
Parameter
Description
Min
Max
Units
tsr
10
ms
tcs
ns
tch
ns
trc
ns
After the de-assertion of reset, it is recommended to wait a minimum of 100 us before starting programming on the MIIM
(MDC/MDIO) Interface.
July 2008
41
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Reset Circuit
The following reset circuit is recommended for powering up the KSZ8041NL if reset is triggered by the power supply.
The following reset circuit is recommended for applications where reset is driven by another device (e.g., CPU or FPGA).
At power-on-reset, R, C and D1 provide the necessary ramp rise time to reset the KSZ8041NL device. The RST_OUT_n
from CPU/FPGA provides the warm reset after power up.
Figure 18. Recommended Reset Circuit for interfacing with CPU/FPGA Reset Output.
July 2008
42
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
July 2008
43
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Value
Turns ratio
1 CT : 1 CT
Test Condition
350H
0.4H
1MHz (min.)
12pF
0.9
1.0dB
HIPOT (min.)
1500Vrms
0MHz 65MHz
Magnetic Manufacturer
Part Number
Auto MDI-X
Number of Port
Bel Fuse
S558-5999-U7
Yes
SI-46001
Yes
SI-50170
Yes
Delta
LF8505
Yes
LanKom
LF-H41S
Yes
Pulse
H1102
Yes
H1260
Yes
Transpower
HB726
Yes
TLA-6T718
Yes
Value
Units
Frequency
25
MHz
50
ppm
20
pF
Series resistance
40
July 2008
44
M9999-071808-1.2
Micrel, Inc.
KSZ8041NL
Package Information
July 2008
45
M9999-071808-1.2