The KSZ8841-series single-port chip includes PCI and
non-PCI CPU interfaces, and are available in 8/16-bit and
32-bit bus designs (see
datasheet describes the KSZ8841M-series of non-PCI
CPU interface chips. For information on the KSZ8841 PCI
CPU interface chips, refer to the KSZ8841P datasheet.
The KSZ8841M is a single chip, mixed analog/digital
device offering Wake-on-LAN technology for effectively
addressing Fast Ethernet applications. It consists of a Fast
Ethernet MAC controller, an 8-bit, 16-bit, and 32-bit
generic host processor interface and incorporates a unique
dynamic memory pointer with 4-byte buffer boundary and
a fully utilizable 8KB for both TX and RX directions in host
buffer interface.
The KSZ8841M is designed to be fully compliant with the
appropriate IEEE 802.3 standards. An industrial
temperature-grade version of the KSZ8841M, the
KSZ8841MQLI, also can be ordered (see
Information).
Ordering Information). This
Ordering
Data Sheet Rev 1.3
Physical signal transmission and reception are enhanced
through the use of analog circuitry, making the design
more efficient and allowing for lower-power consumption.
The KSZ8841M is designed using a low-power CMOS
process that features a single 3.3V power supply with 5V
tolerant I/O. It has an extensive feature set that offers
management information base (MIB) counters and CPU
control/data interfaces.
The KSZ8841M includes a unique cable diagnostics
feature called LinkMD™. This feature determines the
length of the cabling plant and also ascertains if there is an
open or short condition in the cable. Accompanying
software enables the cable length and cable conditions to
be conveniently displayed. In addition, the KSZ8841M
supports Hewlett Packard (HP) Auto-MDIX thereby
eliminating the need to differentiate between straight or
crossover cables in applications.
Functional Diagram
P1 HP Auto
MDI/MDI-X
Non-PCI
Em bedded Processor
In te rfa c e
8,16, or 32-bit G eneric
H o s t In te rfa c e
P1 LED[3:0]
EEPROM I/F
November 2005 1
CPU
Bus
In te rfa c e
Unit
Figure 1. KSZ8841M Functional Diagram
Base-T/TX
LED
Driver
10/100
PHY
Channel
QMU
DMA
Host MAC
RXQ
4KB
TXQ
4KB
Control
Registers
MIB
Counters
EEPROM
In te rfa c e
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Features
• Single chip Ethernet controller with IEEE802.3u
support
• Supports 10BASE-T/100BASE-TX
• Supports IEEE 802.3x full-duplex flow control and
half-duplex backpressure collision flow control
• Supports burst data transfers
• 8KB internal memory for RX/TX FIFO buffers
• Early TX/RX functions to minimize latency through the
device
• Optional to use external serial EEPROM configuration
for both KSZ8841-16MQL and KSZ8841-32MQL
• Single 25MHz reference clock for both PHY and MAC
Network Features
• Fully integrated to comply with IEEE802.3u standards
• 10BASE-T and 100BASE-TX physical layer support
• Auto-negotiation: 10/100Mbps full and half duplex
• Adaptive equalizer
• Baseline wander correction
Power Modes, Power Supplies, and Packaging
• Single power supply (3.3V) with 5V tolerant I/O
buffers
• Enhanced power management feature with powerdown feature to ensure low-power dissipation during
device idle periods
• Comprehensive LED indicator support for link,
activity, full/half duplex, and 10/100 speed (4 LEDs)
– User programmable
• Low-power CMOS design
• Commercial Temperature Range: 0
• Industrial Temperature Range: –40
Ordering Information)
• Available in 128-pin PQFP (128-pin LQFP optional).
Ordering Information.
See
o
C to +70oC
o
C to +85oC (see
Additional Features
In addition to offering all of the features of a Layer 2
controller, the KSZ8841M offers:
• Dynamic buffer memory scheme
– Essential for applications such as Video over IP
where image jitter is unacceptable
• Flexible 8-bit, 16-bit, and 32-bit generic host
processor interfaces
• Micrel LinkMD™ cable diagnostic capabilities to
determine cable length, diagnose faulty cables, and
determine distance to fault
• Wake-on-LAN functionality
– Incorporates Magic Packet™, network link state,
and wake-up frame technology
• HP Auto MDI-X™ crossover with disable/enable
option
• Ability to transmit and receive frames up to 1916
bytes
Applications
• Video Distribution Systems
• High-end Cable, Satellite, and IP set-top boxes
• Video over IP
• Voice over IP (VoIP) and Analog Telephone Adapters
(ATA)
• Industrial Control in Latency Critical Applications
• Motion Control
• Industrial Control Sensor Devices (Temperature,
Pressure, Levels, and Valves)
• Security and Surveillance Cameras
Markets
• Fast Ethernet
• Embedded Ethernet
• Industrial Ethernet
LinkMD is a trademark of Micrel, Inc.
Magic Packet is a trademark of Advanced Micro Devices, Inc.
Product names used in this datasheet are for identification purposes
only and may be trademarks of their respective companies.
November 2005 2
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Ordering Information
Part Number Junction Temp. Range
KSZ8841-16MQL 0oC to 70oC 128-Pin PQFP
KSZ8841-32MQL 0oC to 70oC 128-Pin PQFP
KSZ8841-16MVL 0oC to 70oC 128-Pin LQFP (Available Q1, 2006 Samples)
KSZ8841-32MVL 0oC to 70oC 128-Pin LQFP (Available Q1, 2006 Samples)
KSZ8841-16MVLI –40oC to +85oC 128-Pin LQFP- (Available Q1, 2006 Samples)
KSZ8841-16MQL-Eval Evaluation Board for the KSZ8841-16MQL
(1)
Package
Contacts
Location Address
City, State/Province,
Country
Corporate HQ 2180 Fortune Drive San Jose, CA 95131 USA +1 (408) 944-0800 +1 (408) 474-1000
Eastern USA 93 Branch Street Medford, NJ 08055 USA +1 (609) 654-0078 +1 (609) 546-0989
Central USA 2425 N.Central Expressway, Suite 351 Richardson, TX 75080 USA +1 (972) 393-2533 +1 (972) 393-2370
Western USA 2180 Fortune Drive San Jose, CA 95131 USA +1 (408) 944-0800 +1 (408) 914-7878
China Room 712, Block B, Intl. Chamber of
Korea 8F AnnJay Tower Bldg
Taiwan 4F, No. 18, Lane 321, Yang-Guang Street,
Singapore 300 Beach Road, #10-07 The Concourse Singapore 199555 +65-6291-1318 +65-6291-1332
Japan 2-3-1 Minato Mirai, Queen’s Tower A 14F,
Uk/EMEIA 1st Floor, 3 Lockside Place, Mill Lane Newbury, Berks RG14 5QS UK +44 1635 524455 +44 1635 524466
France/Southern
Europe
New Zealand Office 2, CML Building 2 Perry Street Masterton New Zealand + 64-6-378-9799 + 64-6-378-9599
Commerce Bldg., Fuhua Rd 1, Futian
718-2 Yeoksam-dong, Kangnam-ku
Nei-Hu Chu
Nishi-ku
10, avenue du Quebec, Villebon BP116 Courtaboeuf Cedex 91944 France +33 (0) 1-6092-4190 +33 (0) 1-6092-4189
Shenzhen, PR China 518026 +86 (755) 8302-
Seoul 135-080 Korea +82 (2) 538-2380 +82 (2) 538-2381
1.0 06/30/05 First released Preliminary Information.
1.1 08/08/05 Updated General Description, Functional Diagram, Pin Description and Features.
Added this Revision History Table and Loopback support sections.
1.2 10/04/05 Update Power Saving bit description in P1PHYCTRL and P1SCSLMD registers.
General Description............................................................................................................................................1
Network Features .........................................................................................................................................................2
Power Modes, Power Supplies, and Packaging........................................................................................................2
Revision History .................................................................................................................................................3
List of Figures.....................................................................................................................................................7
List of Tables.......................................................................................................................................................8
Pin Configuration for KSZ8841-16 Chip (8/16-Bit)...........................................................................................9
Pin Description for KSZ8841-16 Chip (8/16-Bit).............................................................................................10
Pin Configuration for KSZ8841-32 Chip (32-Bit)............................................................................................15
Pin Description for KSZ8841-32 Chip (32-Bit)................................................................................................16
Power Management....................................................................................................................................................21
Power down....................................................................................................................................................................................21
Link Change....................................................................................................................................................................................21
MDI/MDI-X Auto Crossover.............................................................................................................................................................23
Auto Negotiation .............................................................................................................................................................................25
Media Access Control (MAC) Operation..................................................................................................................26
Inter Packet Gap (IPG) ...................................................................................................................................................................26
Late Collision ..................................................................................................................................................................................26
Bus Interface Unit (BIU).............................................................................................................................................27
Physical Data Bus Size...................................................................................................................................................................28
Queue Management Unit (QMU)................................................................................................................................32
CPU Interface I/O Registers............................................................................................................................. 37
Internal I/O Space Mapping ............................................................................................................................................................38
Register Map: MAC and PHY...........................................................................................................................46
Bit Type Definition...........................................................................................................................................................................46
Bank 0-63 Bank Select Register (0x0E): BSR (same location in all Banks)....................................................................................46
Bank 0 Base Address Register (0x00): BAR...................................................................................................................................46
Bank 0 Bus Error Status Register (0x06): BESR ............................................................................................................................47
Bank 0 Bus Burst Length Register (0x08): BBLR............................................................................................................................47
Bank 1: Reserved ...........................................................................................................................................................................47
Bank 2 Host MAC Address Register Low (0x00): MARL ................................................................................................................48
Bank 2 Host MAC Address Register Middle (0x02): MARM............................................................................................................48
Bank 2 Host MAC Address Register High (0x04): MARH...............................................................................................................48
Bank 3 On-Chip Bus Control Register (0x00): OBCR.....................................................................................................................49
Bank 3 EEPROM Control Register (0x02): EEPCR........................................................................................................................49
Bank 3 Memory BIST Info Register (0x04): MBIR...........................................................................................................................50
Bank 3 Global Reset Register (0x06): GRR....................................................................................................................................50
Bank 3 Power Management Capabilities Register (0x08): PMCR ..................................................................................................50
Bank 3 Wakeup Frame Control Register (0x0A): WFCR................................................................................................................ 52
Bank 4 Wakeup Frame 0 CRC0 Register (0x00): WF0CRC0.........................................................................................................52
Bank 4 Wakeup Frame 0 CRC1 Register (0x02): WF0CRC1.........................................................................................................53
Bank 8 – 15: Reserved ...................................................................................................................................................................57
November 2005 5
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Bank 16 Transmit Control Register (0x00): TXCR..........................................................................................................................57
Bank 16 Transmit Status Register (0x02): TXSR............................................................................................................................58
Bank 16 Receive Control Register (0x04): RXCR...........................................................................................................................58
Bank 16 TXQ Memory Information Register (0x08): TXMIR...........................................................................................................59
Bank 16 RXQ Memory Information Register (0x0A): RXMIR..........................................................................................................59
Bank 17 TXQ Command Register (0x00): TXQCR.........................................................................................................................60
Bank 17 RXQ Command Register (0x02): RXQCR........................................................................................................................60
Bank 17 TX Frame Data Pointer Register (0x04): TXFDPR...........................................................................................................60
Bank 17 RX Frame Data Pointer Register (0x06): RXFDPR...........................................................................................................61
Bank 17 QMU Data Register Low (0x08): QDRL............................................................................................................................61
Bank 17 QMU Data Register High (0x0A): QDRH..........................................................................................................................61
Bank 18 Interrupt Enable Register (0x00): IER...............................................................................................................................62
Bank 18 Interrupt Status Register (0x02): ISR................................................................................................................................62
Bank 18 Receive Status Register (0x04): RXSR ............................................................................................................................63
Bank 18 Receive Byte Count Register (0x06): RXBC.....................................................................................................................64
Bank 18 Early Transmit Register (0x08): ETXR..............................................................................................................................64
Bank 18 Early Receive Register (0x0A): ERXR..............................................................................................................................65
Bank 19 Multicast Table Register 0 (0x00): MTR0..........................................................................................................................65
Bank 19 Multicast Table Register 1 (0x02): MTR1..........................................................................................................................65
Bank 19 Multicast Table Register 2 (0x04): MTR2..........................................................................................................................65
Bank 19 Multicast Table Register 3 (0x06): MTR3..........................................................................................................................66
Bank 19 Power Management Control and Status Register (0x08): PMCS .....................................................................................66
Bank 32 Chip ID and Enable Register (0x00): CIDER....................................................................................................................67
Bank 32 Chip Global Control Register (0x0A): CGCR ....................................................................................................................67
Bank 42 Indirect Access Control Register (0x00): IACR.................................................................................................................68
Bank 42 Indirect Access Data Register 1 (0x02): IADR1................................................................................................................68
Bank 42 Indirect Access Data Register 2 (0x04): IADR2................................................................................................................68
Bank 42 Indirect Access Data Register 3 (0x06): IADR3................................................................................................................68
Bank 42 Indirect Access Data Register 4 (0x08): IADR4................................................................................................................68
Bank 42 Indirect Access Data Register 5 (0x0A): IADR5................................................................................................................68
Bank 43 – 44: Reserved .................................................................................................................................................................69
Bank 45 PHY 1 MII-Register Basic Control Register (0x00): P1MBCR ..........................................................................................69
Bank 45 PHY 1 MII-Register Basic Status Register (0x02): P1MBSR............................................................................................70
Bank 45 PHY 1 PHYID Low Register (0x04): PHY1ILR..................................................................................................................71
Bank 45 PHY 1 PHYID High Register (0x06): PHY1IHR ................................................................................................................71
Bank 45 PHY 1 Auto-Negotiation Advertisement Register (0x08): P1ANAR ..................................................................................71
Bank 45 PHY 1 Auto-Negotiation Link Partner Ability Register (0x0A): P1ANLPR.........................................................................72
Bank 46: Reserved .........................................................................................................................................................................72
Bank 47 PHY1 LinkMD Control/Status (0x00): P1VCT...................................................................................................................72
Bank 47 PHY1 Special Control/Status Register (0x02): P1PHYCTRL............................................................................................73
Bank 48: Reserved .........................................................................................................................................................................73
Bank 49 Port 1 PHY Special Control/Status, LinkMD (0x00): P1SCSLMD.....................................................................................74
Bank 49 Port 1 Control Register 4 (0x02): P1CR4..........................................................................................................................75
Bank 49 Port 1 Status Register (0x04): P1SR ................................................................................................................................76
Asynchronous Timing without using Address Strobe (ADSN = 0)...................................................................................................82
November 2005 6
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Asynchronous Timing using Address Strobe (ADSN).....................................................................................................................83
Asynchronous Timing using DATACSN..........................................................................................................................................84
Address Latching Timing for All Modes...........................................................................................................................................85
Synchronous Timing in Burst Write (VLBUSN = 1).........................................................................................................................86
Synchronous Timing in Burst Read (VLBUSN = 1).........................................................................................................................87
Auto Negotiation Timing..................................................................................................................................................................90
Selection of Isolation Transformers ...............................................................................................................93
Selection of Reference Crystal........................................................................................................................93
Package Information ........................................................................................................................................94
Acronyms and Glossary ..................................................................................................................................96
Figure 8. Auto Negotiation and Parallel Operation ...................................................................................................................................25
Figure 9. Mapping from the ISA, EISA, and VLBus to the KSZ8841M Bus Interface...............................................................................31
Figure 10. KSZ8841M 8-Bit, 16-Bit, and 32-Bit Data Bus Connections....................................................................................................31
Figure 11. PHY Port 1 Near-end (Remote) Loopback Path......................................................................................................................36
Figure 13. Asynchronous Cycle – Using ADSN........................................................................................................................................83
Figure 14. Asynchronous Cycle – Using DATACSN ................................................................................................................................84
Figure 15. Address Latching Cycle for All Modes.....................................................................................................................................85
Figure 20. Auto Negotiation Timing..........................................................................................................................................................90
Table 2. Bus Interface Unit Signal Grouping ............................................................................................................................................29
Table 3. Frame Format in Transmit Queue ..............................................................................................................................................32
Table 4. Transmit Control Word Bit Fields................................................................................................................................................32
Table 5. Transmit Byte Count Format ......................................................................................................................................................33
Table 6. Frame Format in Receive Queue ...............................................................................................................................................33
Table 7. RXQ Receive Packet Status Word.............................................................................................................................................34
Table 10. ConfigParam Word in EEPROM Format ..................................................................................................................................35
Table 11. Format of MIB Counters ...........................................................................................................................................................78
Table 12. Port 1 MIB Counters Indirect Memory Offsets..........................................................................................................................79
Table 13. Maximum Ratings.....................................................................................................................................................................80
Table 28. Qualified Single Port Magnetics................................................................................................................................................93
For normal operation, pull-down this pin to ground.
For normal operation, pull-down this pin to ground.
Port 1 LED indicators
[0,0] Default [0,1]
P1LED32 — —
P1LED2 Link/Act 100Link/Act
P1LED1 Full duplex/Col 10Link/Act
P1LED0 Speed Full duplex
Reg. CGCR bit [15,9]
[1,0] [1,1]
P1LED32 Act —
P1LED2 Link —
P1LED1 Full duplex/Col —
P1LED0 Speed —
Notes:
1. Link = On; Activity = Blink; Link/Act = On/Blink; Full Dup/Col = On/Blink;
Full Duplex = On (Full duplex); Off (Half duplex)
Speed = On (100BASE-T); Off (10BASE-T)
2. P1LED3 is pin 27.
1
defined as follows:
Chip Global Control Register: CGCR
bit [15,9]
6 NC Opu No Connect.
7 NC Opu No Connect.
8 NC Opu No Connect.
9 DGND Gnd Digital ground
10 VDDIO P 3.3V digital V
11 RDYRTNN Ipd Ready Return Not:
For VLBus-like mode: Asserted by the host to complete synchronous read cycles. If
the host doesn’t connect to this pin, assert this pin.
For burst mode (32-bit interface only): Host drives this pin low to signal waiting
states.
12 BCLK Ipd Bus Interface Clock
Local bus clock for synchronous bus systems. Maximum frequency is 50MHz.
This pin should be tied Low or unconnected if it is in asynchronous mode.
13 NC Ipu No Connect.
14 PMEN Opu Power Management Event Not
When asserted (Low), this signal indicates that a power management event has
occurred in the system when a wake-up signal is detected by KSZ8841M.
15 SRDYN Opu Synchronous Ready Not
DDIO
November 2005 10
input power supply for IO with well decoupling capacitors.
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Pin
Number
16 INTRN Opd Interrupt
17 LDEVN Opd Local Device Not
18 RDN Ipd Read Strobe Not
19 EECS Opu EEPROM Chip Select
20 ARDY Opd Asynchronous Ready
21 CYCLEN Ipd Cycle Not
22 NC Opd No Connect
23 DGND Gnd Digital IO ground
24 VDDCO P 1.2V digital core voltage output (internal 1.2V LDO power supply output), this 1.2V
25 VLBUSN Ipd VLBus-like Mode
26 EEEN Ipd EEPROM Enable
27 P1LED3 Opd Port 1 LED indicator
28 EEDO Opd EEPROM Data Out
29 EESK Opd EEPROM Serial Clock
30 EEDI Ipd EEPROM Data In
Pin Name Type Pin Function
Ready signal to interface with synchronous bus for both EISA-like and VLBus-like
extend accesses.
For VLBus-like mode, the falling edge of this signal indicates ready. This signal is
synchronous to the bus clock signal BCLK.
For burst mode (32-bit interface only), the KSZ8841M drives this pin low to signal
wait states.
Active Low signal to host CPU to indicate an interrupt status bit is set, this pin need
an external 4.7K pull-up resistor.
Active Low output signal, asserted when AEN is Low and A15-A4 decode to the
KSZ8841M address programmed into the high byte of the base address register.
LDEVN is a combinational decode of the Address and AEN signal.
Asynchronous read strobe, active Low.
This signal is used to select an external EEPROM device.
ARDY may be used when interfacing asynchronous buses to extend bus access
cycles. It is asynchronous to the host CPU or bus clock.
For VLBus-like mode cycle signal; this pin follows the addressing cycle to signal the
command cycle.
For burst mode (32-bit interface only), this pin stays High for read cycles and Low for
write cycles.
output pin provides power to VDDC, VDDA and VDDAP pins.
Note: Internally generated power voltage. Do not connect an external power supply
to this pin. This pin is used for connecting external filter (Ferrite bead and
capacitors).
Pull-down or float: Bus interface is configured for synchronous mode.
Pull-up: Bus interface is configured for 8-bit or 16-bit asynchronous mode or EISA-
like burst mode.
EEPROM is enabled and connected when this pin is pull-up.
EEPROM is disabled when this pin is pull-down or no connect.
See the description in pins 3, 4, and 5.
This pin is connected to DI input of the serial EEPROM.
A 4
µs serial output clock to load configuration data from the serial EEPROM.
November 2005 11
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Pin
Number
31 SWR Ipd Synchronous Write/Read
32 AEN Ipd Address Enable
33 WRN Ipd Write Strobe Not
34 DGND Gnd Digital IO ground
35 ADSN Ipd Address Strobe Not
36 PWRDN I Full-chip power-down. Active Low (Low = Power down; High = Normal operation).
37 AGND Gnd Analog ground
38 VDDA P 1.2V analog V
39 AGND Gnd Analog ground
40 NC — No Connect
41 NC — No Connect
42 AGND Gnd Analog ground
43 VDDA P 1.2V analog V
44 NC — No Connect
45 RXP1 I/O Port 1 physical receive (MDI) or transmit (MDIX) signal (+ differential)
46 RXM1 I/O Port 1 physical receive (MDI) or transmit (MDIX) signal (– differential)
47 AGND Gnd Analog ground
48 TXP1 I/O Port 1 physical transmit (MDI) or receive (MDIX) signal (+ differential)
49 TXM1 I/O Port 1 physical transmit (MDI) or receive (MDIX) signal (– differential)
50 VDDATX P 3.3V analog V
51 VDDARX P 3.3V analog V
52 NC — No Connect
53 NC — No Connect
54 AGND Gnd Analog ground
55 NC — No Connect
56 NC — No Connect
57 VDDA P 1.2 analog V
58 AGND Gnd Analog ground
59 NC Ipu No connect
60 NC Ipu No connect
61 ISET O Set physical transmits output current.
62 AGND Gnd Analog ground
Pin Name Type Pin Function
This pin is connected to DO output of the serial EEPROM when EEEN is pull-up.
This pin can be pull-down for 8-bit bus mode, pull-up for 16-bus mode or don’t care
for 32-bus mode when EEEN is pull-down (without EEPROM).
Write/Read signal for synchronous bus accesses. Write cycles when high and Read
cycles when low.
Address qualifier for the address decoding, active Low.
Asynchronous write strobe, active Low.
For systems that require address latching, the rising edge of ADSN indicates the
latching moment of A15-A1 and AEN.
bead and capacitor.
bead and capacitor.
bead and capacitor.
Pull-down this pin with a 3.01K 1% resistor to ground.
input power supply from VDDCO (pin24) through external Ferrite
DD
input power supply from VDDCO (pin24) through external Ferrite
DD
input power supply with well decoupling capacitors.
DD
input power supply with well decoupling capacitors.
DD
input power supply from VDDCO (pin24) through external Ferrite
DD
November 2005 12
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Pin
Number
63 VDDAP P 1.2V analog VDD for PLL input power supply from VDDCO (pin24) through external
64 AGND Gnd Analog ground
65 X1 I
66 X2 O
67 RSTN Ipu Reset Not
68 A15 I Address 15
69 A14 I Address 14
70 A13 I Address 13
71 A12 I Address 12
72 A11 I Address 11
73 A10 I Address 10
74 A9 I Address 9
75 A8 I Address 8
76 A7 I Address 7
77 A6 I Address 6
78 DGND Gnd Digital IO ground
79 VDDIO P 3.3V digital V
80 A5 I Address 5
81 A4 I Address 4
82 A3 I Address 3
83 A2 I Address 2
84 A1 I Address 1
85 NC I No Connect
86 NC I No Connect
87 BE1N I Byte Enable 1 Not, Active low for Data byte 1 enable (don’t care in 8-bit bus mode).
88 BE0N I Byte Enable 0 Not, Active low for Data byte 0 enable (there is an internal inverter
89 NC I No Connect
90 DGND Gnd Digital core ground
91 VDDC P
92 VDDIO P 3.3V digital V
93 NC I No Connect
94 NC I No Connect
95 NC I No Connect
96 NC I No Connect
97 NC I No Connect
98 NC I No Connect
99 NC I No Connect
Pin Name Type Pin Function
Ferrite bead and capacitor.
25MHz crystal or oscillator clock connection.
Pins (X1, X2) connect to a crystal. If an oscillator is used, X1 connects to a 3.3V
tolerant oscillator and X2 is a no connect.
Note: Clock requirement is ± 50ppm for either crystal or oscillator.
Hardware reset pin (active Low). This reset input is required minimum of 10ms low
after stable supply voltage 3.3V.
enabled and connected to the BE1N for 8-bit bus mode).
1.2V digital core V
Ferrite bead and capacitor.
input power supply for IO with well decoupling capacitors.
DDIO
input power supply from VDDCO (pin24) through external
DD
input power supply for IO with well decoupling capacitors.
DDIO
November 2005 13
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Pin
Number
100 NC I No Connect
101 NC I No Connect
102 NC I No Connect
103 NC I No Connect
104 NC I No Connect
105 NC I No Connect
106 NC I No Connect
107 DGND Gnd Digital IO ground
108 VDDIO P
109 NC I No Connect
110 D15 I/O Data 15
111 D14 I/O Data 14
112 D13 I/O Data 13
113 D12 I/O Data 12
114 D11 I/O Data 11
115 D10 I/O Data 10
116 D9 I/O Data 9
117 D8 I/O Data 8
118 D7 I/O Data 7
119 D6 I/O Data 6
120 D5 I/O Data 5
121 D4 I/O Data 4
122 D3 I/O Data 3
123 DGND Gnd Digital IO ground
124 DGND Gnd Digital core ground
125 VDDIO P 3.3V digital V
126 D2 I/O Data 2
127 D1 I/O Data 1
128 D0 I/O Data 0
Pin Name Type Pin Function
3.3V digital V
input power supply for IO with well decoupling capacitors.
DDIO
input power supply for IO with well decoupling capacitors.
DDIO
Legend:
P = Power supply Gnd = Ground
I/O = Bi-directional I = Input O = Output.
Ipd = Input with internal pull-down.
Ipu = Input with internal pull-up.
Opd = Output with internal pull-down.
Opu = Output with internal pull-up.
For normal operation, pull-down this pin to ground.
For normal operation, pull-down this pin to ground.
Port 1 LED indicators
[0,0] Default [0,1]
P1LED32 — —
P1LED2 Link/Act 100Link/Act
P1LED1 Full duplex/Col 10Link/Act
P1LED0 Speed Full duplex
Reg. CGCR bit [15,9]
[1,0] [1,1]
P1LED32 Act —
P1LED2 Link —
P1LED1 Full duplex/Col —
P1LED0 Speed —
Notes:
1. Link = On; Activity = Blink; Link/Act = On/Blink; Full Dup/Col = On/Blink;
Full Duplex = On (Full duplex); Off (Half duplex)
Speed = On (100BASE-T); Off (10BASE-T)
2. P1LED3 is pin 27.
1
defined as follows:
Chip Global Control Register: CGCR
bit [15,9]
6 NC Opu No Connect.
7 NC Opu No Connect.
8 NC Opu No Connect.
9 DGND Gnd Digital ground
10 VDDIO P 3.3V digital V
11 RDYRTNN Ipd Ready Return Not:
For VLBus-like mode: Asserted by the host to complete synchronous read cycles. If
the host doesn’t connect to this pin, assert this pin.
For burst mode (32-bit interface only): Host drives this pin low to signal waiting
states.
12 BCLK Ipd Bus Interface Clock
Local bus clock for synchronous bus systems. Maximum frequency is 50MHz.
This pin should be tied Low or unconnected if it is in asynchronous mode.
13 DATACSN Ipu DATA Chip Select Not (For KSZ8841-32 Mode only)
Chip select signal for QMU data register (QDRH, QDRL), active Low.
When DATACSN is Low, the data
input power supply for IO with well decoupling capacitors.
DDIO
ath can be accessed regardless of the value of
November 2005 16
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Pin
Number
14 PMEN Opu Power Management Event Not
15 pu
16 INTRN Opd Interrupt
17 LDEVN Opd Local Device Not
18 RDN Ipd Read Strobe Not
19 EECS Opu EEPROM Chip Select
20 ARDY Opd Aus Ready
21 CYCLEN Ipd ot
22 NC Opd No Connect
23 D nd DGNGnd Digital IO grou
24 CO re voltage output (internal 1.2V LDO power supply output), this 1.2V
25 VLBUSN Ipd VLBus-like Mode
26 EEEN Ipd EEPROM Enable
27 P1LED3 Opd Port 1 LED indicator
28 EEDO Opd EEPROM Data Out
Pin Name Type Pin Function
AEN, A15-A1, and the content of the BANK select register.
When asserte
occurred in the system when a wake-up signal is de
SRDYN OSynchronous Ready Not
Ready signal to interface with synchronous bus for b
extend accesses.
F
or VLBus-like mode, the falling edge of this signal indicates ready. This signal is
sy
nchronous to the bus clock signal BCLK.
oce only), the KSZ8841M drives this pin low
F r burst mode (32-bit interfa to signal
a
w it states.
Active Low ignal to host CPUte an interrupt status bit is set, this pin need
n external
a 4.7K pull-up resis
ctive Lowerted whow and A15-
A output signal, assen AEN is LA4 decode to the
K
SZ8841M address programmed into the high byte of the base address register.
L
DEVN is a combinational decode of the Address and AEN signal.
Asynchronous read strobe, active Low.
T is used to select arnal EEPROMice.
his signaln exte dev
synchrono
ARDY may be used when interfacing asy
ycles. It is
c asynchronous to the host CPU or bus clock.
Cycle N
For VLBus-like mode cycle signal; this pin follows the addressing cycle to si
command cycle.
For burst mode (32-bit interface only), this pin
write cycles.
VDDP 1.2V digital co
output pin pro
Note: Internally
to this pin. Thiin is used for connecting external filter (Ferrite bead and
capacitors).
Pull-down or float: Bus interface is configured for synchronous mode.
Pull-up: Bus interface is configured for 32-bit asynchronous mode or EISA-like b
mode.
EEPROM is enabled and connected when this pin is pull-up.
EEPROM is disabled when this pin is pull-down or no connect.
See the description in pins 3, 4, and 5.
d (Low), this signal indicates that a power management event has
s to indica
vides power to VDDC, VDDA and VDDAP pins.
generated power voltage. Do not connect an external power supply
p
s
tected by KSZ8841M.
oth EISA-like and VLBus-like
tor
nchronous buses to extend bus access
gnal the
stays High for read cycles and Low for
urst
November 2005 17
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Pin
Number
29 EESK Opd EEPROM Serial Clock
30 EEDI Ipd EEPROM Data In
31 SWR Ipd d Synchronous Write/Read
32 AEN Ipd Address Enable
33 WRN Ipd
34 DGND Gnd Digital IO ground
35 ADSN Ipd
36 PWRDN I Power down; High = Normal operation). Full-chip power-down. Active Low (Low =
37 AGND Gnd Analog ground
38 VDDA P rough external Ferrite 1.2V analog V
39 AGND Gnd Analog ground
40 NC — No Connect
41 NC — No Connect
42 AGND Gnd Analog ground
43 VDDA P 1.2V analog V
44 NC — No Connect
45 RXP1 I/O Port 1 physical receive (MDI) or transmit (MDIX) signal (+ differential)
46 RXM1 I/O Port 1 physical receive (MDI) or transmit (MDIX) signal (– differential)
47 AGND Gnd Analog ground
48 TXP1 I/O Port 1 physical transmit (MDI) or receive (MDIX) signal (+ differential)
49 TXM1 I/O Port 1 physical transmit (MDI) or receive (MDIX) signal (– differential)
50 VDDATX P 3.3V analog V
51 VDDARX P 3.3V analog V
52 NC — No Connect
53 NC — No Connect
54 AGND Gnd Analog ground
55 NC — No Connect
56 NC — No Connect
57 VDDA P 1.2 analog V
58 AGND Gnd Analog ground
59 NC Ipu No connect
November 2005 18
Pin Name Type Pin Function
This pin is connected to DI input of the serial EEPROM.
A 4
µs serial output clock to load configuration data from the serial EEPROM.
This pin is connected to D
This pin can be pull-down for 8-bit bus mode, pull-up for 16-bus mode or don’t care
for 32-bus mode w
Write/Read signal for synchronous bus accesses. Write cycles when high and Rea
cycles when low.
Address qualifier for the address decoding, active Low.
Write Strobe Not
Asynchronous writ
Address Strobe Not
For systems that require address latching,
latching moment o
bead and capacitor.
bead and capacitor.
bead and capacitor.
O output of the serial EEPROM when EEEN is pull-up.
hen EEEN is pull-down (without EEPROM).
e strobe, active Low.
the rising edge of ADSN indicates the
f A15-A1 and AEN.
input power supply from VDDCO (pin24) th
DD
input power supply from VDDCO (pin24) through external Ferrite
DD
input power supply with well decoupling capacitors.
DD
input power supply with well decoupling capacitors.
DD
input power supply from VDDCO (pin24) through external Ferrite
DD
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Pin
Number
60 NC Ipu No connect
61 ISET O Set physical transmits output current.
62 AGND GndAnalog ground
63 VDDAP P 1.2V analog VDD for PLL input power supply from VDDCO (pin24) through external
64 AGND Gnd Analog ground
65 X1 I
66 X2 O
67 RSTN Ipu
68 A15 I Address 15
69 A14 I Address 14
70 A13 I Address 13
71 A12 I Address 12
72 A11 I Address 11
73 A10 I Address 10
74 A9 I Address 9
75 A8 I Address 8
76 A7 I Address 7
77 A6 I Address 6
78 DGND und GndDigital IO gro
79 VDDIO P 3.3V digital V
80 A5 I Address 5
81 A4 I Address 4
82 A3 I Address 3
83 A2 I Address 2
84 A1 I Address 1
85 BE3N I Byte Enable 3 Not, Active low for Data byte 3 enable
86 BE2N I Byte Enable 2 Not, Active low for Data byte 2 enable
87 BE1N I Byte Enable 1 Not, Active low for Data byte 1 enable
88 BE0N I Byte Enable 0 Not, Active low for Data byte 0 enable
89 D31 I/O Data 31
90 DGND round GndDigital core g
91 VDDC P
92 VDDIO
93 D30 I/O Data 30
94 D29 I/O Data 29
95 D28 I/O Data 28
96 D27 I/O Data 27
Pin Name Type Pin Function
Pull-down this pin with a 3.01K 1% resistor to ground.
Ferrite bead and capacitor.
25MHz crystal or oscillator
Pins (X1, X2) connect to a crystal. If an oscillator is used, X1 connects to a 3.3V
tolerant oscillator a
Note: Clock requi
Reset Not
Hardware reset pi
after stable supply voltage 3.3V.
1.2V digital core
Ferrite bead and
clock connection.
nd X2 is a no connect.
rement is ± 50ppm for either crystal or oscillator.
n (active Low). This reset input is required minimum of 10ms low
input power supply for IO with well decoupling capacitors.
DDIO
input power supply from VDDCO (pin24) through external
V
DD
capacitor.
input power supply for IO with well decoupling capacitors. P 3.3V digital V
DDIO
November 2005 19
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Pin
Number
97 D26 I/O Data 26
98 D25 I/O Data 25
99 D24 I/O Data 24
100 D23 I/O Data 23
101 D22 I/OData 22
102 D21 I/O Data 21
103 D20 I/O Data 20
104 D19I/OData 19
105 D18I/OData 18
106 D17 I/O Data 17
107 DGND GndDigital IO ground
108 VDDIO P
input power supply for IO with well decoupling capacitors.
DDIO
input power supply for IO with well decoupling capacitors. VDDP 3.3V digital
DDIO
Legend:
P = Py Goun
ower supplnd = Grd
I/O =al O = O
Bi-directionI = Input utput.
Ipd = Input with internal pull-down.
Ipu =
Input with internal pull-up.
Opd th internaown.
= Output wil pull-d
Opu = Output with internal pull-up.
November 2005 20
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Funcnal Do
The KSZ8841M is a single-chip Fast Ethernet MAC controller consisting of a 10/100 physical layer transceiver (PHY), a
MAC, and a Bus Interface Unit (BIU) that controls the KSZ8841M via an 8-bit, 16-bit, or 32-bit host bus interface.
The KSZ8841M is fully compliant to IEEE802.3u standards.
tioescripti n
Functional Overview
Poweanaget
Powen
The KSZ8841M features a port power-down mode. To save power, the user can power-down the port that is not in use by
setting bit 11 in either P1CR4 or P1MBCR register for this port. To bring the port back up, reset bit 11 in these registers.
In addition, there is a full chip power-down mode PWRDN (pin 36). When this pin is pulled-down, the entire chip powers
down.sitioning fromdown
Wake-on-LAN
Wake-up frame events are used to wake em whenever meaningful data is presented to the system over the
network. Examples of meaningful data increception of a Magic Packet, a management request from a remote
administrator, or simply network traffic directly targeted to the local system. In all of these instances, the network device is
pre-programmed by the policy owner or othre with information on how to identify wake frames from other network
traffic.
A wak event equest ardwar software external to the network device to put the system into a
powered state (working).
A wake-up signal is caused by:
1. Det of a che in the nrk link
2. Receipt of a network wake-up frame
3. Receipt of a Magic Packet
There are also other types of wake-up events that are not listed here as manufacturers may choose to implement these in
their own way.
r Mmen
r dow
Tran this pin pull-to pull-up results in a power up and chip reset.
the syst
lude the
er softwa
e-upis a rfor hre and/o
ectionangetwo state
Link Change
Link status wake events are useful to indicate a change in the network’s availability, especially when this change may
impact the level at which the system should re-enter the sleeping state. For example, a change from link off to link on may
trigger system to re-enter sleep at a higher level (D2 versus D3
transition from link on to link off may trigger the system to re-enter sleep at a deeper level (D3 versus D2) since the
network is not currently available.
Wake
Wake-up packets are certain types of packets with specific CRC values that a system recognizes as a ‘wake up’ frame.
The KSZ8841M supports up to four users defined wake-up frames as below:
1. Wake-up frame 0 is defined in registers 0x00-0x0A of Bank 4 and is enabled by bit 0 in wakeup frame control register.
2
3. Wake-up frame 2 is defined in regist
4. Wake-up frame 4 is defined in registers 0x00-0x0A of Bank 7 and is enabled by bit 3 in wakeup frame control register.
1
more information, refer to the PCI specification at www.pcisi g.com/specifications/conventional/pcipm1.2.pdf.
November 2005 21
the
-up Packet
. Wake-up frame 1 is defined in registers 0x00-0x0A of Bank 5 and is enabled by bit 1 in wakeup frame control register.
ers 0x00-0x0A of Bank 6 and is enabled by bit 2 in wakeup frame control register.
References to D0, D1, D2, and D3 are power management states defined in a similar fashion to the way they are defined for PCI. For
1
) so that wake frames can be detected. Conversely, a
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Magic Packet
Magic Packet technology is used to remotely wake up a sleeping or powered off PC on a LAN. This is accomplished by
sending a specific packet of information, called a Magic Packet frame, to a node on the network. When a PC capable of
receiving the specific frame goes to sleep, it enables the Magic Packet RX mode in the LAN controller, and when t
controller receives a Magic Packet frame, it will alert the syst
em to wake up.
he LAN
Magic Packet is a standard feat
down modes including Magic Pa
Once the KSZ8841M has b
to the node for a specific data sequence, which indicates to
A Magic Packet frame must also meet the basic requirements for the LAN technology chosen, such as Source Address
(SA), Destination Address (DA), which may be the receiving station’s IEEE address or a multicast or broadcast address
and CRC.
The specific sequence consists of 16 duplications of the IEEE address of this node, with no breaks or interruptions. This
sequence can be located anywhere within the packet, but must be preceded by a synchronization stream. The
synchronization
6 bytes of FFh. The device will also accept a broadcast frame, as long as the 16 duplications of the IEEE address match
the address of the machine to be awakened.
EXAMPLE
If the IEEE address for a particular node on a network is 11h 22h, 33h, 44h, 55h, 66h, the LAN controller would be
scanning for the data sequence (assuming an Ethernet frame):
agic Packet frame. For instance, the sequence could be in a TCP/IP packet or an
network without affecting its ability to wake-up a node at the
If the LAN controller scans a frame and does not find the specific sequence shown above, it discards the frame and takes
no further actio
management circuitry (assert the PMEN pin) to wake up the system.
n. If the KSZ8841M controller detects the data sequence, however, it then alerts the PC’s power
Physical Layer Transceiver (PHY)
100BASE-TX Transmit
The 100BASE-TX transmit function performs parallel-to-serial conversion, 4B/5B coding, scrambling, NRZ-to-NRZI
conversion, and MLT3 encoding an
The circuitry starts
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. An external 1% 3.01KΩ resistor
for the 1:1 transformer ratio sets the output current.
The output signal has a typical rise/fall time of 4ns and complies with the ANSI TP-PMD standard regarding amplitude
balance, overshoot, and timing jitter. The wave-shaped 10BASE-T output driver is also incorporated into the 100BASE-TX
driver.
100BASE-TX Receive
The 100BASE-TX receiver function performs adaptive equalization, DC restoration, MLT3-to-NRZI conversion, data and
November 2005 22
with a parallel-to-serial conversion, which converts the MII data from the MAC into a 125MHz serial bit
d transmission.
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
clock recovery,
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 has to 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 characte
This is an ongoing process and self-adjusts against environmental changes such as temperature variations.
NRZI-to-NRZ conversion, de-scrambling, 4B/5B decoding, and serial-to-parallel conversion.
ristics, and then tunes itself for optimization.
Next, the equalized signal goes through a DC restoration and data conversion block. T
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 an MII format and provided as the input data to the MAC.
PLL Clock Synthesizer (Recovery)
The internal PLL clock synthesizer generates 125MHz, 62.5MHz, 41.66MHz, and 25MHz clocks by setting the on-chip
bus speed control register for KSZ8841M system timing. These internal clocks are generated from an external 25Mhz
crystal or oscillator.
Scramble
The purpose of the scrambler is to spread the power spectrum of the signal to reduce electromagnetic interference (EMI)
and baseline wander.
Transmitted data is scrambled through the use of an 11-bit wide linear feedback shift register (LFSR). The scrambler
generates a 2047-bit non-repetitive sequence. Then the receiver de-scrambles the incoming data stream using the same
sequence as at the transmitter.
10BASE-T Transmit
The 10BASE-T driver is incorporated with the 100BASE-TX driver to allow for transmission using the same magnetics.
They are internally wave-shaped and pre-emphasized into outputs with a typical 2.4V amplitude. The harmonic contents
are at least 27dB bel
r/De-scrambler (100BASE-TX Only)
ow the fundamental frequency when driven by an all-ones Manchester-encoded signal.
he DC restoration circuit is used to
10BASE-T Receive
On the receive side, input buffers and level detecting squelch circuits
a phase-locked loop (PLL) perform the decoding function.
The Manchester-encoded data stream is se
levels less than 400mV o
decoder. When the input exceeds the squelch limit, the PLL locks onto the incoming signal and the KSZ8841M decodes a
data frame.
The receiver clock is maintained active during idle periods in between data reception.
MDI/MDI-X Auto Crossover
To eliminate the need for crossover cables betwee
IEEE 802.3u standard MDI/MDI-X auto crossover. HP-Auto MDI/MDI-X is the default.
The auto-sense function detects remote transmit and receive pairs and correctly assigns the transmit and receive pairs for
the KSZ8841M device. This feature is extremely useful when end users are unaware of cable types in addition to saving
on an additional uplink configuration connection. The auto-crossover feature can be disabled through the port control
registers.
The IEEE 802.3u standard MDI and MDI-X definitions are:
November 2005 23
r with short pulse widths to prevent noise at the RXP-or-RXM input from falsely triggering the
parated into clock signal and NRZ data. A squelch circuit rejects signals with
n similar devices, the KSZ8841M supports HP-Auto MDI/MDI-X and
are employed. A differential input receiver circuit and
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
MDI MDI-X
RJ45 Pins Signals RJ45 Pins Signals
1 TD+ 1 RD+
2 TD- 2 RD3 RD+ 3 TD+
6 RD- 6 TD-
Table 1. MDI/MDI-X Pin Definitions
Straight Cable
A straight cable connects an MDI device to an MDI-X device or an MDI-X device to an MDI device. The following diagram
shows a typical straight cable connection between a network interface card (NIC) and a chip (MDI), or hub (MDI-X).
M
e d i a D e
1
0 / 1 0 0 E t h e r n
et
p e n d e n t I n te rfaceMe d ia D ependen t I nte rfa ce
10/100 E thernet
T r a n s m i t P a i r
ReceivePair
M
o d u
l a r C o n n e c to r
( R J - 4 5 )
N I C
1
2
3
4
5
6
7
8
S tra ig h t
Cab le
1
2
3
4
5
6
7
8
M o du
la r C onnecto r
(R J-4 5 )
HU B
(R e p
eater o r S w itch)
ReceiveP air
Tr a n smit P a ir
Figure 6. Typical Straight Cable Connection
Crossover Cable
A crossover cable connects an MDI device to another MDI device, or an MDI-X device to another MDI-X device. The
following diagram shows a typical crossover cable connection between two chips or hubs (two MDI-X devices).
10/100Ethernet
Media Dependent InterfaceMedia Dependent Interface
ReceivePair
Transmit Pair
1
2
3
4
5
6
7
8
Crossover
Cable
10/100Ethernet
1
ReceivePair
2
3
4
Transmit Pair
5
6
7
8
ModularConnector(RJ-45)
HUB
(RepeaterorSwitch)
Figure 7. Typical Cros
November 2005 24
Modular Connector(RJ-45)
HUB
(RepeaterorSwitch)
sover Cable Connection
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
A
Auto Negotiation
The KSZ8841M conforms to the atcol d02.3 committee to allow the port to
auto negoti ion protoas describe by the 8
operate at either 10Base-T or 100Base-TX.
Auto negotiation allows unshielded twisted pair (UTP) link partners select tht common mode of operation. In auto
negotiation, the link partners advertise cabilities a the link tach otheuto negotiation is not supported or the
link partner to the KSZ8841M is forced to auto the mode is set by observing the signal at the receiver.
This is known as parallel mode becaushile the titter is sing auto tiation advertisements, the receiver is
listening for advertisements or a fixed signal
The link setup is
shown in the following flow diagram (Figure 8).
apcrosso er. If a
bypass
e w
negotiation,
ransmendnego
protocol.
toe bes
Start Auto Negotiation
Force Link Setting
YES
B y p a s s
A u t o N e g o t i a t i o n
and Set Link Mode
NO
Parallel
Operation
ttempt Auto
Negotiation
Listen for100BASE-TX
Idles
Listen for 10BASE-T L i n k
Pulse s
Figure 8. Auto Negotiation and Parallel Operation
November 2005 25
Join Flow
LinkMode Set ?
YES
Link Mode Set
NO
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
LinkMD Cable Diag
The KSZ8841M LinkMD uses time domain reflectometry (TDR) to analyze the cabling plant for common cabling problems
such as open circuits, short circuits, and imp
LinkMD works by sending a pulse of known amplitude and duration down the MDI and MDI-X pairs and then analyzes the
shape of the reflected signal. Timing the pulse duration gives an indication of the distance to the cabling fault with a
maximum distance of 200m and an accuracy of +/–2m. Internal circuitry displays the TDR information in a user-readable
digital format in register P1VCT[8:0].
Note: cable diagnostics are only valid for copper connections – fib
Access
LinkMD is initiated by accessing register P1VCT, the LinkMD Control/Status register, in conjunction with register P1CR4,
the 100BASE-TX PHY Controller register.
Usage
LinkMD can be run at any time by making sure Auto-MDIX has been disabled. To disable Auto-MDIX, write a ‘1’ to
P1CR4[10] to enable manual control over the pair used to transmit the LinkMD pulse. The self-clearing cable diagnostic
test enable bit, P1VCT[15], is set to ‘1’ to start the test on this pair.
When bit P1VCT[15] returns to ‘0’, the test is complete. The test result is returned in bits P1VCT[14:13] and the distance
is returned in bits P1VCT[8:0]. The cable diagnostic test results are as follows:
If P1VCT[14:13]=11, this indicates an invalid test, and occurs when the KSZ8841M is unable to shut down the link partner.
In this instance, the test is not run, as it is not possible for the KSZ8841M to determine if the detected signal is a reflection
of the signal generated or a signal from another source.
nostics
edance mismatches.
er-optic operation is not supported.
00 = Valid test, normal condition
01 = Valid test, open circuit in cable
10 = Valid test, short circuit in cable
11 = Invalid test, LinkMD failed
Cable distance can be approximated by the following formula:
P1VCT[8:0] x 0.4m for port 1 cable distance
This constant may be calibrated for different cabling conditions, including cables with a velocity of propagation that varies
significantly from the norm.
Media Access Control (MAC) Operation
The KSZ8841M strictly abides by IEEE 802.3 standards to maximize compatibility.
Inter Packet Gap (IPG)
If a frame is successfully transmitted, the minimum 96-bit time for IPG is measured between two consecutive packets. If
the current packet is experiencing collisions, the minimum 96-bit time for IPG is measured from carrier sense (CRS) to the
next transmit packet.
Back-Off Algorithm
The KSZ8841M implements the IEEE standard 802.3 binary exponential back-off algorithm in half-duplex mode. After 16
collisions, the packet is dropped.
ate Collision
L
If a transmit packet experiences collisions after 512 bit times of the transmission, the packet is dropped.
November 2005 26
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
Flow Control
The KSZ8841M supports standard 802.3x flow control frames on both transmit and receive sides.
On the receive side, if the KSZ8841M receives a pause control fr
frame until the timer, specified in the pause control frame, expires. If another pause frame is received before the current
timer expires, the timer will be updated with the new value in the second pause frame. During this period (while it is flow
controlled), only flow control packets from the KSZ8841M are transmitted.
On the transmit side, the KSZ8841M
control is based on availability of the system resources.
The KSZ8841M issues a flow control frame (Xoff, or transmitter off), containing the maximum pause time defined in IEEE
standard
transmitter on) with zero pause time to turn off the flow control (turn on transmission to the port). A hysteresis feature is
provided to prevent the flow control mechanism from being constantly activated and deactivated.
Half-Du
A half-duplex backpressure option (non-IEEE 802.3 standards) is also provided. The activation and deactivation
conditions are the same as in full-duplex mode. If backpressure is required, the KSZ8841M sends preambles to defer the
other stations' transmission (carrier sense deference).
To avoid jabber and excessive deference (as defined in the 802.3 standard), after a certain time, the KSZ8841M
discontinues the carrier sense and then raises it again quickly. This short silent time (no carrier sense) prevents other
stations from sending out packets thus keeping other stations in a carrier sens
send during a rier sense type backpressure is interrupted and those packets are
transmitted instead. If there are no additional packets to send, carrier sense type backpressure is reactivated again until
chip resources free up. If a collision occurs, the binary exponential back-off algorithm is skipped and carrier sense is
generated immece of further collision and carrier sense is maintained to prevent packet
reception.
802.3x. Once the resource is freed up, the KSZ8841M sends out the another flow control frame (Xon, or
plex Backpressure
backpressure situation, the car
diately, thus reducing the chan
has intelligent and efficient ways to determine when to invoke flow control. The flow
ame, the KSZ8841M will not transmit the next normal
e deferred state. If the port has packets to
Clock Generator
The X1 and X2 pins are connected to a 25MHz crystal. X1 ca
(as described in the pin description).
The bus interface unit (BIU) uses BCLK (Bus Clock) for synchronous accesses. The maximum frequency is 50MHz for
VLBus-like and EISA-like slave direct memory access (DMA).
n also serve as the connector to a 3.3V, 25MHz oscillator
Bus Interface Unit (BIU)
The BIU host interface is a generic bus interface, designed to communicate with e
logic may be required when it talks to various standard buses and processors.
Supported Transfers
In terms of transfer type, the BIU can support two transfers: asynchronous transfer and synchronous transfer. To support
these transfers (async
1. Synchronous
2. Asynchronous
3. Common signals are used for both synchronous and asynchronous transfers.
Since both synchronous and asynchronous signals ar
asynchronous transfer can be mixed or interleaved but cannot be overlapped (due to the sharing of common signals).
hronous and synchronous), the BIU provides three groups of signals:
signals
signals
e independent of each other, synchronous transfer and
mbedded processors. The use of glue
November 2005 27
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
g
Physical Data
Bus Size
The BIU supports an 8-bit, 16-bit, or 32-bit host standard data bus. Depending on the size of the
physical data bus, the
KSZ8841M supports 8-bit, 16-bit, or 32-bit data transfers
For example,
For a 32-bit system/host data bus, the KSZ8841M allows an 8-bit, 16-bit, and 32-bit data transfer (KSZ8841-32MQL).
For a 16-bit system/host data bus, the KSZ8841M allows an 8-bit and 16-bit data transfer (KSZ8841-16MQL).
For an 8-bit system/host data bus, the KSZ8841M only a
llows an 8-bit data transfer (KSZ8841-16MQL).
The KSZ8841M does not support internal data byte-swap but it does support internal data word-swap. This means that
the system/host data bus HD[7:0] must connect to both D[7:0] and D[15:8] for an 8-bit data bus interface. For a 16-bit data
bus, the system/host data bus HD[15:8] and HD[7:0] only need to connect to D[15:8] and D[7:0] respectively, and there is
no need to connect HD[15:8] and HD[7:0] to D[31:24] and D[23:16].
Table 2 describes the BIU sig
nal grouping.
Signal Type
Common Signals
A[15:1] I
AEN I
BE3N, BE2N,
BE1N, BE0N
(1)
Function
Address
Address Enable
Address Enable asserted indicates memory address on the bus for DMA
access and since the device is an I/O device, address decoding is only
enabled when AEN is Low.
Note 1: BE3N, BE2N, BE1N and BE0N are ignored when DATACSN is low
because 32 bit transfers are assumed.
Note 2: BE2N and BE3N are valid only for the KSZ
No Connect for the KSZ8841-16 mode.
D[31:16] I/O Data
For KSZ8841M-32 mode only.
D[15:0] I/O Data
For both KSZ8841-32 and KSZ8841-16 Modes
ADSN I Address Strobe
The rising edge of ADSN is used to latch A[15:1], AEN, BE3N, BE2N, BE1N
and BE0N.
LDEVN O Local Device
This signal is a combinatorial decode of AEN and A[15:4]. This A[15:4] is
used to compare against the Base Address Register.
DATACSN I Data Register Chip Select (For KSZ8841-32MQL Mode only)
This si
nal is used for central decoding architecture (mostly for embedded
November 2005 28
8841-32 mode, and are
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
INTR O
Synchronous Transfer Signals
VLBUSN I VLBUS
CYCLEN I CYCLEN
SWR I Write/Read
SRDYN O
RDYRTNN I
BCLK I
Asynchronous Transfer Signals
RDN I
WRN I
ARDY O
Note 1: I = Input. O = Output. I/O = Bi-direction al.
ype
(1)
Function Signal T
application). When asserted, the device’s local decoding logic is ignored
and the 32-bit access to QMU Data Register is assumed.
Interrupt
VLBUSN = 0, VLBus-like cycle.
VLBUSN = 1, burst cycle (both host/system and KSZ8841M can insert wait
state)
For VLBus-like access: used to sample SWR when asserted.
For burst access: used to connect to IOWC# bus signal to indicate burst
write.
F
or VLBus-like access: used to indicate
F
or burst access: used to connect to IORC# bus signal to indicate burst
read.
Synchronous Ready
For VLBus
VLBus.
For burst a
during the Data Re
Ready Return
For VLBus-like access: exactly like RDYRTNN signal in VLBus to end the
cycle.
For burst acce
ote tha
Nt th
KM
SZ8841
Bck
us Clo
A nchronous Read
sy
A nchronous Write
sy
A nchronous Read
syy
T) to insert wait states.
his signal is asserted (Low
-like access: exactly the same signal definition of nSRDY in
ccess: insert wait state by KSZ8841M whenever necessary
gister access.
ss: exactly like EXRDY signal in EISA to insert wait states.
tatse) not by
e wait s. es are in rted by system logic (memory
write (High) or read (Low) transfer.
Tab. Bus Irface U Signaouping
le 2ntenitl Gr
Regardless of whether the transfer is synchronous or asynchronous, if the address la
ADSN to latch the incoming signals A[15:1
Note: If the local device decoder is usedasserted to
indicate that the KSZ8841M is successfullybinatorial decode of AEN and A[15:4].
], AEN, BE3N, BE2N, BE1N, and BE0N.
in either synchronous or asynchronous transfers, LDEVN will be
targeted. The signal LDEVN is a com
tch is required, use the rising edge of
Asynchronous Interface
For asnous trans, the asynchror WRN (for write) toggle, but the
synchdedicated ignals CYCLENYRTNN are de-asserted and stay at the same logic level
througe entire asy chronous transfe
ynchrofersonous dedicated signals RDN (for read)
ronous
hout th
s
n
, SWR, and RD
r.
There is no data burst support for asynchronous transfer. All asynchronous transfers are single-data transfers. The BIU,
however, provides flexible asynchronous interfacing to communicate with various
major ways of interfacing with the system (
1. Interfacing with the system/host relyinughout the whole
transfer: The typical example for this a shown
host) are.
g on local device decoding and having stable address thro
pplication is ISA-like bus interface using latched address signals as
November 2005 29
applications and architectures. Three
Rev 1.3
Micrel Confidential KSZ8841-16/32 MQL/MVL
in Figure 12. No additional address latch is required, therefore ADSN should be connected Low. The BIU decodes
A[15:4] and qualifies with AEN (Addrerget. The
host utilizes the rising edge of RDN to RN to latch write data.
2. Interfacing with the system/host relyin device decoding but not having stable address throughout the entire
transfer: The typical example for this application is EISA-like bus (non-burst) interface as shown in the Figure 13. This
type of interface requires ADSN to latch the address on the rising edge. The BIU decodes latched A[15:4] and
qualifies with AEN to determine if the nded target. The data transfer is the same as the
first case.
3. Interfacing with the system/host relying on central decoding (KSZ8841-32MQL only).
Thexample or this applicatior on the system board
e typical fn is for an embedded processor having a central decode
or within the processor. Connecting t local device
decoder. When the DATACSN is asserted, it only allows access to the Data Register in 32 bits and BE3N, BE2N,
BE1N, and BE0N are ignored as shown in the Figure 14. No other registers can be accessed by asserting DATACSN.
The data transfer is the same as in theTo insert a
wait state, the BIU will assert ARDY to
SynchInterface
ronous
ss Enable) to determine if the KSZ8841M device is the intended ta
latch read data and the BIU will use rising edge of W
g on local
KSZ8841M device is the inte
he chip select (CS) from system/host to DATACSN bypasses the
first case. Independent of the type of asynchronous interface used.
prolong the cycle.
For synchronous transfers, the synchrontoggle but the
asynchronous dedicated signals RDN and WRN are de-asserted and stay at the same logic level throughout the entire
synchronous transfer.
The sy interfa mainly supportus-like and the other for EISA-like (DMA type C)
burst transfers. The VLBus-like interface sines if it is a
VLBus-like or EISA-like burst transfer – N = 1, the
interface is for EISA-like burst transfer.
BIU Summation
nchronousces two applications, one for VLB
• For VLBus-like transfer interface
This interface is used in an architecture in which the
ed A[15:4] d qualifies withess Enable) to determine if the KSZ8841M device is the intended
latchan AEN (Addr
target. No burst is supported
LEN in thisplication is use signal when it is asserted. Usually, CYCLEN is one clock
CYC apd to sample the SWR
of ADSN. ere is a handshthe cycle of VLBus-like transfers. When the KSZ8841M is
delayThaking process to end
to finish the cycle, it asserts
ready SRDYN
the system/host has latched the re until RDYRTNN is asserted. The
timing waveform is shown in Figure 18
• For EISA-like burst transfer in
The SWR is connected to IORC# in EISA to indicate the burst read and CYCLEN is connected to IOWC# in EISA
to indicate the burst write. Note that in this application, both the system/host/memory and KSZ8841M are capable
of inserting wait states. For system/host/memory to insert a
KSZ8841M to insert the wait state, assert the SRDYN signal. The timing waveform is shown in Figure 16 and
Figure 17.
ous dedicated signals CYCLEN, SWR, and RDYRTNN will
upports only single-data transfer. The pin option VLBUSN determ
if VLBUSN = 0, the interface is for VLBus-like transfer; if VLBUS
(VLBUSN = 0):
device’s local decoder is utilized; that is, the BIU decodes
in this application. The M/nIO signal connection in VLBus is routed to AEN. The
. The system/h
ad data. The KSZ8841M holds the read data
and Figure 19.
terface (VLBUSN = 1):
ost acknowledges SRDYN by asserting RDYRTNN after
wait state,
assert the RDYRTNN signal; for the
Figure 9 shows the mappin
Figure 10 shows the connection for different data bus sizes.
Note: For the 8-bit data bus mode, the interna
address will enable the BE0N and an odd address will enable the BE1N.
November 2005 30
g from ISA-like, EISA-like and VLBus-like transactions to the chip’s BIU.
l inverter is enabled and connected between BE0N and BE1N, so an even
Rev 1.3
Loading...
+ 67 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.