Single-Chip Multi-Function 10/100Mbps Ethernet Controller With Power Management
Single-Chip Multi-Function 10/100Mbps Ethernet Controller With Power Management
Single-Chip Multi-Function 10/100Mbps Ethernet Controller With Power Management
RTL8139DL
RTL8139D-LF
RTL8139DL-LF
RTL8139D-GR
RTL8139DL-GR
DATASHEET
Rev. 1.2
08 Aug 2005
Track ID: JATR-1076-21
RTL8139DL
Datasheet
COPYRIGHT
©2005 Realtek Semiconductor Corp. All rights reserved. No part of this document may be reproduced,
transmitted, transcribed, stored in a retrieval system, or translated into any language in any form or by any
means without the written permission of Realtek Semiconductor Corp.
DISCLAIMER
Realtek provides this document “as is”, without warranty of any kind, neither expressed nor implied,
including, but not limited to, the particular purpose. Realtek may make improvements and/or changes in
this document or in the product described in this document at any time. This document could include
technical inaccuracies or typographical errors.
TRADEMARKS
Realtek is a trademark of Realtek Semiconductor Corporation. Other names mentioned in this document are
trademarks/registered trademarks of their respective owners.
REVISION HISTORY
Revision Release Date Summary
1.2 2005/08/08 Added section 13 Ordering Information, on page 61.
Added lead (Pb)-free and version package identification information on
page 2 and page 3.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management ii Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Table of Contents
1. GENERAL DESCRIPTION...............................................................................................................1
2. FEATURES ..........................................................................................................................................2
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management iii Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
5.24. FALSE CARRIER SENSE COUNTER .........................................................................................28
5.25. NWAY TEST REGISTER .........................................................................................................29
5.26. RX_ER COUNTER ................................................................................................................29
5.27. CS CONFIGURATION REGISTER.............................................................................................29
5.28. CONFIG5: CONFIGURATION REGISTER 5 ...............................................................................30
6. EEPROM (93C46) CONTENTS ......................................................................................................31
6.1. SUMMARY OF RTL8139D(L) EEPROM REGISTERS ............................................................33
6.2. SUMMARY OF EEPROM POWER MANAGEMENT REGISTERS ................................................33
7. PCI CONFIGURATION SPACE REGISTERS.............................................................................34
7.1. PCI CONFIGURATION SPACE TABLE .....................................................................................34
7.2. PCI CONFIGURATION SPACE FUNCTIONS ..............................................................................36
7.3. DEFAULT VALUES AFTER POWER-ON (RSTB ASSERTED) ....................................................40
7.4. PCI POWER MANAGEMENT FUNCTIONS ...............................................................................41
8. BLOCK DIAGRAM ..........................................................................................................................45
9. FUNCTIONAL DESCRIPTION......................................................................................................46
9.1. TRANSMIT OPERATION .........................................................................................................46
9.2. RECEIVE OPERATION ............................................................................................................46
9.3. BASE LINE WANDER COMPENSATION...................................................................................46
9.4. LINE QUALITY MONITOR ......................................................................................................46
9.5. CLOCK RECOVERY MODULE.................................................................................................47
9.6. LOOPBACK OPERATION ........................................................................................................47
9.7. TX ENCAPSULATION .............................................................................................................47
9.8. COLLISION ............................................................................................................................47
9.9. RX DECAPSULATION .............................................................................................................48
9.10. FLOW CONTROL....................................................................................................................48
9.10.1. Control Frame Transmission...............................................................................................48
9.10.2. Control Frame Reception ....................................................................................................48
9.11. LED FUNCTIONS...................................................................................................................49
9.11.1. 10/100Mbps Link Monitor ...................................................................................................49
9.11.2. LED_RX...............................................................................................................................49
9.11.3. LED_TX ...............................................................................................................................50
9.11.4. LED_TX+LED_RX ..............................................................................................................50
10. APPLICATION DIAGRAM ............................................................................................51
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management iv Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
12. MECHANICAL DIMENSIONS ......................................................................................59
12.1. QFP ......................................................................................................................................59
12.2. LQFP....................................................................................................................................60
13. ORDERING INFORMATION.........................................................................................61
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management v Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
1. General Description
The Realtek RTL8139D(L) is a highly integrated and cost-effective single-chip Fast Ethernet controller
that provides 32-bit performance, PCI bus master capability, and full compliance with IEEE 802.3u
100Base-T specifications and IEEE 802.3x Full Duplex Flow Control. It also supports Advanced
Configuration Power management Interface (ACPI), PCI power management for modern operating
systems that are capable of Operating System Directed Power Management (OSPM) to achieve the most
efficient power management possible. The RTL8139D(L) also supports shared Boot ROM pins & clock run
pin.
In addition to the ACPI feature, the RTL8139D(L) also supports remote wake-up (including AMD Magic
Packet, LinkChg, and Microsoft® wake-up frame) in both ACPI and APM environments. The
RTL8139D(L) is capable of performing an internal reset through the application of auxiliary power. When
auxiliary power is applied and the main power remains off, the RTL8139D(L) is ready and is waiting for
the Magic Packet or Link Change to wake the system up. Also, the LWAKE pin provides 4 different output
signals including active high, active low, positive pulse, and negative pulse. The versatility of the
RTL8139D(L) LWAKE pin provides motherboards with Wake-On-LAN (WOL) functionality.
The RTL8139D(L) also supports Analog Auto-Power-down, that is, the analog part of the RTL8139D(L)
can be shut down temporarily according to user requirement or when the RTL8139D(L) is in a power down
state with the wakeup function disabled. In addition, when the analog part is shut down and the IsolateB pin
is low (i.e. the main power is off), then both the analog and digital parts stop functioning and the power
consumption of the RTL8139D(L) will be negligible. The RTL8139D(L) also supports an auxiliary power
auto-detect function, and will auto-configure related bits of their own PCI power management registers in
PCI configuration space.
PCI Vital Product Data (VPD) is also supported to provide the information that uniquely identifies
hardware (Ex., the OEM brand name of RTL8139D(L) LAN card). The information may consist of part
number, serial number, and other detailed information.
To provide cost down support, the RTL8139D(L) is capable of using a 25MHz crystal or OSC as its internal
clock source.
The RTL8139D(L) keeps network maintenance costs low and eliminates usage barriers. It is the easiest
way to upgrade a network from 10 to 100Mbps. It also supports full-duplex operation, making 200Mbps
bandwidth possible at no additional cost. To improve compatibility with other brands’ products, the
RTL8139D(L) is also capable of receiving packets with InterFrameGap no less than 40 Bit-Time. The
RTL8139D(L) is highly integrated and requires no “glue” logic or external memory.
The RTL8139D(L) provides a flexible multi-function mode (Realtek patent pending) to incorporate other
PCI master devices, like a hardware modem. When in multi-function mode, the RTL8139D(L) acts as an
arbiter to distinguish LAN signals from those of other devices. The second device recognizes no difference
between being connected to the RTL8139D or a regular PCI bus.
The RTL8139D(L) includes a PCI and Expansion Memory Share Interface (Realtek’s patent pending) for a
boot ROM and can be used in diskless workstations, providing maximum network security and ease of
management.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 1 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
2. Features
100 pin QFP/LQFP Supports 4 Wake-On-LAN (WOL) signals
(active high, active low, positive pulse, and
Integrated Fast Ethernet MAC, Physical chip
negative pulse)
and transceiver in one chip
Supports auxiliary power-on internal reset, to
10Mbps and 100Mbps operation
be ready for remote wake-up when main
Supports 10Mbps and 100Mbps N-way power remains off
Auto-negotiation operation
Supports auxiliary power auto-detect, and sets
Supports PCI multi-function capabilities the related capability of power management
PCI local bus single-chip Fast Ethernet registers in PCI configuration space
controller Includes a programmable, PCI burst size and
Complies with PCI Revision 2.2 early Tx/Rx threshold
Supports PCI VPD (Vital Product Uses 93C46 (64*16-bit EEPROM) to store
Data) resource configuration, ID parameter, and
VPD data
Supports ACPI, PCI power
management Supports LED pins for various network
activity indications
Supports PCI multi-function to
incorporate with other PCI master Supports loopback capability
device Half/Full duplex capability
Supports 25MHz crystal or 25MHz Supports Full Duplex Flow Control (IEEE
OSC as the internal clock source. The 802.3x)
frequency deviation of either crystal or
2.5/3.3V power supply with 5V tolerant I/Os
OSC must be within 50 PPM.
Up to 128K byte Boot ROM interface for both
Complies with PC99 and PC2001 standards
EPROM and Flash memory is supported
Supports Wake-On-LAN function and remote
0.25u CMOS process
wake-up (Magic Packet*, LinkChg and
Microsoft® wake-up frame)
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 2 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
3. Pin Assignments
66 GND 65 RTSET
67 RXIN- 64 LWAKE
68 RXIN+ 63 RTT3
69 NC 62 GND
70 AVDD 61 X1
71 TXD- 60 X2
72 TXD+ 59 AVDD
73 GND 58 AVDD25
74 ISOLATEB 57 PMEB
75 AVDD 56 GND
76 NC 55 VCTRL
77 LED2 54 GNTB2
78 IDSEL2 53 REQB2
79 LED1 52 CLKRUNB
80 LED0 51 VDD25
81 INTAB 50 AUX
82 RSTB 49 EECS
83 CLK 48 EESK
84 GNTB 47 EEDI
85 REQB 46 EEDO
86 AD31 45 AD0
87 AD30 44 AD1
88 GND 43 GND
RTL8139D QFP
89 AD29 42 AD2
90 VDD 41 AD3
91 AD28 40 NC
92 AD27 39 VDD
93 AD26 38 AD4
94 AD25 37 AD5
95
96
AD24
VDD25 LLLLLLL 36 AD6
35 ROMCS/OEB
97
98
VDD
CBE3B
TXXXX TAIWAN 34 VDD
33 AD7
99 IDSEL 32 CBE0B
100 AD23 31 GND
1 AD22 30 AD8
2 GND 29 AD9
3 AD21 28 AD10
4 AD20 27 AD11
5 AD19 26 AD12
6 VDD 25 AD13
7 NC 24 AD14
8 AD18 23 AD15
9 AD17 22 VDD
10 AD16 21 CBE1B
11 CBE2B 20 PAR
12 FRAMEB 19 SERRB
13 IRDYB 18 PERRB
14 TRDYB 17 STOPB
15 DEVSELB 16 GND
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 2 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
63 RTT3
64 LWAKE 62 GND
65 RTSET 61 X1
66 GND 60 X2
67 RXIN- 59 AVDD
68 RXIN+ 58 AVDD25
69 NC 57 PMEB
70 AVDD 56 GND
71 TXD- 55 VCTRL
72 TXD+ 54 GNTB2
73 GND 53 REQB2
74 ISOLATEB 52 CLKRUNB
75 AVDD 51 VDD25
76 NC 50 AUX
77 LED2 49 EECS
78 IDSEL2 48 EESK
79 LED1 47 EEDI
80 LED0 46 EEDO
81 INTAB 45 AD0
82 RSTB 44 AD1
83 CLK 43 GND
84 GNTB 42 AD2
85 REQB 41 AD3
86 AD31 40 NC
RTL8139DL LQFP
87 AD30 39 VDD
88 GND 38 AD4
89 AD29 37 AD5
90 VDD 36 AD6
91 AD28 35 ROMCS/OEB
92 AD27 34 VDD
93 AD26 33 AD7
94 AD25 LLLLLLL 32 CBE0B
95 AD24
96 VDD25 TXXXX TAIWAN 31 GND
30 AD8
97 VDD 29 AD9
98 CBE3B 28 AD10
99 IDSEL 27 AD11
100 AD23 26 AD12
1 AD22 25 AD13
2 GND 24 AD14
3 AD21 23 AD15
4 AD20 22 VDD
5 AD19 21 CBE1B
6 VDD 20 PAR
7 NC 19 SERRB
8 AD18 18 PERRB
9 AD17 17 STOPB
10 AD16 16 GND
11 CBE2B 15 DEVSELB
12 FRAMEB 14 TRDYB
13 IRDYB
Figure 2. Pin Assignments (100-Pin LQFP)
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 3 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
4. Pin Descriptions
Note that some pins have multiple functions. Refer to the Pin Assignment diagrams for a graphical
representation.
As a target, the device monitors this signal before decoding the address
to check if the current transaction is addressed to it.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 4 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Symbol Type Pin No Description
GNTB I 84 Grant: This signal is asserted low to indicate to the RTL8139D(L) that
the central arbiter has granted ownership of the bus to the
RTL8139D(L). This input is used when the RTL8139D(L) is acting as a
bus master.
REQB T/S 85 Request: The RTL8139D(L) will assert this signal low to request the
ownership of the bus from the central arbiter.
IDSEL I 99 Initialization Device Select: This pin allows the RTL8139D(L) to
identify when configuration read/write transactions are intended for it.
INTAB O/D 81 INTAB: Used to request an interrupt. It is asserted low when an
interrupt condition occurs, as defined by the Interrupt Status, Interrupt
Mask and Interrupt Enable registers.
IRDYB S/T/S 13 Initiator Ready: This indicates the initiating agent’s ability to complete
the current data phase of the transaction.
As a bus master, this signal will be asserted low when the RTL8139D(L)
is ready to complete the current data phase transaction. This signal is used
in conjunction with the TRDYB signal. Data transaction takes place at the
rising edge of CLK when both IRDYB and TRDYB are asserted low. As
a target, this signal indicates that the master has put data on the bus.
TRDYB S/T/S 14 Target Ready: This indicates the target agent’s ability to complete the
current phase of the transaction.
As a bus master, this signal indicates that the target is ready for the data
during write operations and with the data during read operations. As a
target, this signal will be asserted low when the (slave) device is ready
to complete the current data phase transaction. This signal is used in
conjunction with the IRDYB signal. Data transaction takes place at the
rising edge of CLK when both IRDYB and TRDYB are asserted low.
PAR T/S 20 Parity: This signal indicates even parity across AD31-0 and C/BE3-0
including the PAR pin. As a master, PAR is asserted during address and
write data phases. As a target, PAR is asserted during read data phases.
PERRB S/T/S 18 Parity Error: When the RTL8139D(L) is the bus master and a parity
error is detected, the RTL8139D(L) asserts both SERR bit in ISR and
Configuration Space command bit 8 (SERRB enable). Next, it
completes the current data burst transaction, then stops operation and
resets itself. After the host clears the system error, the RTL8139D(L)
continues its operation.
When the RTL8139D(L) is the bus target and a parity error is detected,
the RTL8139D(L) asserts this PERRB pin low.
SERRB O/D 19 System Error: If an address parity error is detected and Configuration
Space Status register bit 15 (detected parity error) is enabled,
RTL8139D(L) asserts both SERRB pin low and bit 14 of Status register
in Configuration Space.
STOPB S/T/S 17 Stop: Indicates the current target is requesting the master to stop the
current transaction.
RSTB I 82 Reset: When RSTB is asserted low, the RTL8139D(L) performs
internal system hardware reset. RSTB must be held for a minimum of
120 ns.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 5 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
EESK O 48 The MA2-0 pins are switched to EESK, EEDI, EEDO in 93C46
EEDI O 47 programming or auto-load mode.
EEDO O, I 46
EECS O 49 EEPROM chip select
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 6 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 7 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
5. Register Descriptions
The RTL8139D(L) provides the following set of operational registers mapped into PCI memory space or
I/O space.
Offset R/W Tag Description
0000h R/W IDR0 ID Register 0, The ID register0-5 are only permitted to read/write by
4-byte access. Read access can be byte, word, or double word access.
The initial value is autoloaded from EEPROM EthernetID field.
0001h R/W IDR1 ID Register 1
0002h R/W IDR2 ID Register 2
0003h R/W IDR3 ID Register 3
0004h R/W IDR4 ID Register 4
0005h R/W IDR5 ID Register 5
0006h-0007h - - Reserved
0008h R/W MAR0 Multicast Register 0, The MAR register0-7 are only permitted to
read/write by 4-byte access. Read access can be byte, word, or double
word access. Driver is responsible for initializing these registers.
0009h R/W MAR1 Multicast Register 1
000Ah R/W MAR2 Multicast Register 2
000Bh R/W MAR3 Multicast Register 3
000Ch R/W MAR4 Multicast Register 4
000Dh R/W MAR5 Multicast Register 5
000Eh R/W MAR6 Multicast Register 6
000Fh R/W MAR7 Multicast Register 7
0010h-0013h R/W TSD0 Transmit Status of Descriptor 0
0014h-0017h R/W TSD1 Transmit Status of Descriptor 1
0018h-001Bh R/W TSD2 Transmit Status of Descriptor 2
001Ch-001Fh R/W TSD3 Transmit Status of Descriptor 3
0020h-0023h R/W TSAD0 Transmit Start Address of Descriptor0
0024h-0027h R/W TSAD1 Transmit Start Address of Descriptor1
0028h-002Bh R/W TSAD2 Transmit Start Address of Descriptor2
002Ch-002Fh R/W TSAD3 Transmit Start Address of Descriptor3
0030h-0033h R/W RBSTART Receive (Rx) Buffer Start Address
0034h-0035h R ERBCR Early Receive (Rx) Byte Count Register
0036h R ERSR Early Rx Status Register
0037h R/W CR Command Register
0038h-0039h R/W CAPR Current Address of Packet Read
003Ah-003Bh R CBR Current Buffer Address: The initial value is 0000h. It reflects total
received byte-count in the rx buffer.
003Ch-003Dh R/W IMR Interrupt Mask Register
003Eh-003Fh R/W ISR Interrupt Status Register
0040h-0043h R/W TCR Transmit (Tx) Configuration Register
0044h-0047h R/W RCR Receive (Rx) Configuration Register
0048h-004Bh R/W TCTR Timer CounT Register: This register contains a 32-bit general-purpose
timer. Writing any value to this 32-bit register will reset the original
timer and begin to count from zero.
004Ch-004Fh R/W MPC Missed Packet Counter: Indicates the number of packets discarded due
to Rx FIFO overflow. It is a 24-bit counter. After s/w reset, MPC is
cleared. Only the lower 3 bytes are valid.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 8 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Offset R/W Tag Description
When written any value, MPC will be reset also.
0050h R/W 9346CR 93C46 Command Register
0051h R/W CONFIG0 Configuration Register 0
0052h R/W CONFIG1 Configuration Register 1
0053H - - Reserved
0054h-0057h R /W TimerInt Timer Interrupt Register. Once having written a nonzero value to this
register, the Timeout bit of ISR register will be set whenever the
TCTR reaches to this value. The Timeout bit will never be set as long
as TimerInt register is zero.
0058h R/W MSR Media Status Register
0059h R/W CONFIG3 Configuration register 3
005Ah R/W CONFIG4 Configuration register 4
005Bh - - Reserved
005Ch-005Dh R/W MULINT Multiple Interrupt Select
005Eh R RERID PCI Revision ID = 10h.
005Fh - - Reserved.
0060h-0061h R TSAD Transmit Status of All Descriptors
0062h-0063h R/W BMCR Basic Mode Control Register
0064h-0065h R BMSR Basic Mode Status Register
0066h-0067h R/W ANAR Auto-Negotiation Advertisement Register
0068h-0069h R ANLPAR Auto-Negotiation Link Partner Register
006Ah-006Bh R ANER Auto-Negotiation Expansion Register
006Ch-006Dh R DIS Disconnect Counter
006Eh-006Fh R FCSC False Carrier Sense Counter
0070h-0071h R/W NWAYTR N-way Test Register
0072h-0073h R REC RX_ER Counter
0074h-0075h R/W CSCR CS Configuration Register
0076-0077h - - Reserved.
0078h-007Bh R/W PHY1_PARM PHY parameter 1
007Ch-007Fh R/W TW_PARM Twister parameter
0080h R/W PHY2_PARM PHY parameter 2
0081-0083h - - Reserved
0084h R/W CRC0 Power Management CRC register0 for wakeup frame0
0085h R/W CRC1 Power Management CRC register1 for wakeup frame1
0086h R/W CRC2 Power Management CRC register2 for wakeup frame2
0087h R/W CRC3 Power Management CRC register3 for wakeup frame3
0088h R/W CRC4 Power Management CRC register4 for wakeup frame4
0089h R/W CRC5 Power Management CRC register5 for wakeup frame5
008Ah R/W CRC6 Power Management CRC register6 for wakeup frame6
008Bh R/W CRC7 Power Management CRC register7 for wakeup frame7
008Ch–0093h R/W Wakeup0 Power Management wakeup frame0 (64bit)
0094h–009Bh R/W Wakeup1 Power Management wakeup frame1 (64bit)
009Ch–00A3h R/W Wakeup2 Power Management wakeup frame2 (64bit)
00A4h–00ABh R/W Wakeup3 Power Management wakeup frame3 (64bit)
00ACh–00B3h R/W Wakeup4 Power Management wakeup frame4 (64bit)
00B4h–00BBh R/W Wakeup5 Power Management wakeup frame5 (64bit)
00BCh–00C3h R/W Wakeup6 Power Management wakeup frame6 (64bit)
00C4h–00CBh R/W Wakeup7 Power Management wakeup frame7 (64bit)
00CCh R/W LSBCRC0 LSB of the mask byte of wakeup frame0 within offset 12 to 75
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 9 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Offset R/W Tag Description
00CDh R/W LSBCRC1 LSB of the mask byte of wakeup frame1 within offset 12 to 75
00CEh R/W LSBCRC2 LSB of the mask byte of wakeup frame2 within offset 12 to 75
00CFh R/W LSBCRC3 LSB of the mask byte of wakeup frame3 within offset 12 to 75
00D0h R/W LSBCRC4 LSB of the mask byte of wakeup frame4 within offset 12 to 75
00D1h R/W LSBCRC5 LSB of the mask byte of wakeup frame5 within offset 12 to 75
00D2h R/W LSBCRC6 LSB of the mask byte of wakeup frame6 within offset 12 to 75
00D3h R/W LSBCRC7 LSB of the mask byte of wakeup frame7 within offset 12 to 75
00D4h-00D7h - - Reserved.
00D8h R/W Config5 Configuration register 5
00D9h-00FFh - - Reserved.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 10 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 11 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 12 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 13 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Bit R/W Symbol Description
frame alignment error (FAE). The collided frame will not be recognized
as CRC error if the length of this frame is shorter than 16 byte.
0 R/W ROK Receive (Rx) OK: In normal mode, indicates the successful completion
of a packet reception. In early mode, indicates that the Rx byte count of
the arriving packet exceeds the early Rx threshold.
25-24 R/W IFG1, 0 Interframe Gap Time: This field allows the user to adjust the
interframe gap time below the standard: 9.6 us for 10Mbps, 960 ns for
100Mbps. The time can be programmed from 9.6 us to 8.4 us (10Mbps)
and 960ns to 840ns (100Mbps). Note that any value other than (1, 1)
will violate the IEEE 802.3 standard.
The formula for the inter frame gap is:
10 Mbps 8.4us + 0.4(IFG(1:0)) us
100 Mbps 840ns + 40(IFG(1:0)) ns
23-22 R HWVERID_B Hardware Version ID B
21-19 - - Reserved
18, 17 R/W LBK1, LBK0 Loopback test: There will be no packet on the TX+/- lines under the
Loopback test condition. The loopback function must be independent of
the link state.
00 : normal operation
01 : Reserved
10 : Reserved
11 : Loopback mode
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 14 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Bit R/W Symbol Description
16 R/W CRC Append CRC: Setting to 1 means that there is no CRC appended at the
end of a packet. Setting to 0 means that there is CRC appended at the
end of a packet.
15-11 - - Reserved
10-8 R/W MXDMA2, 1, 0 Max DMA Burst Size per Tx DMA Burst: This field sets the
maximum size of transmit DMA data bursts according to the following
table:
000 = 16 bytes
001 = 32 bytes
010 = 64 bytes
011 = 128 bytes
100 = 256 bytes
101 = 512 bytes
110 = 1024 bytes
111 = 2048 bytes
7-4 R/W TXRR Tx Retry Count: These are used to specify additional transmission
retries in multiple of 16(IEEE 802.3 CSMA/CD retry count). If the
TXRR is set to 0, the transmitter will re-transmit 16 times before
aborting due to excessive collisions. If the TXRR is set to a value
greater than 0, the transmitter will re-transmit a number of times equals
to the following formula before aborting:
Total retries = 16 + (TXRR * 16)
The TER bit in the ISR register or transmit descriptor will be set when
the transmission fails and reaches to this specified retry count.
3-1 - - Reserved
0 W CLRABT Clear Abort: Setting this bit to 1 causes the RTL8139D(L) to
retransmit the packet at the last transmitted descriptor when this
transmission was aborted, Setting this bit is only permitted in the
transmit abort state.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 15 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Bit R/W Symbol Description
1110 = 14/16 1111 = 15/16
23-18 - - Reserved
17 R/W MulERINT Multiple early interrupt select: When this bit is set, any received
packet invokes early interrupt according to MULINT<MISR[11:0]>
setting in early mode. When this bit is reset, the packets of familiar
protocols (IPX, IP, NDIS, etc) invoke an early interrupt according to
RCR<ERTH[3:0]> setting in early mode. The packets of unfamiliar
protocols will invoke an early interrupt according to the setting of
MULINT<MISR[11:0]>.
16 R/W RER8 The RTL8139D(L) receives the error packet whose length is larger than
8 bytes after setting the RER8 bit to 1.
The RTL8139D(L) receives the error packet larger than 64-byte long
when the RER8 bit is cleared. The power-on default is zero.
If AER or AR is set, the RER will be set when the RTL8139D(L)
receives an error packet whose length is larger than 8 bytes. The RER8
is “ Don’t care “ in this situation.
15-13 R/W RXFTH2, 1, 0 Rx FIFO Threshold: Specifies Rx FIFO Threshold level. When the
number of the received data bytes from a packet, which is being received
into the RTL8139D(L)'s Rx FIFO, has reached to this level (or the FIFO
has contained a complete packet), the receive PCI bus master function
will begin to transfer the data from the FIFO to the host memory. This
field sets the threshold level according to the following table:
000 = 16 bytes
001 = 32 bytes
010 = 64 bytes
011 = 128 bytes
100 = 256 bytes
101 = 512 bytes
110 = 1024 bytes
111 = no rx threshold. The RTL8139D(L) begins the transfer of data
after having received a whole packet in the FIFO.
12-11 R/W RBLEN1, 0 Rx Buffer Length: This field indicates the size of the Rx ring buffer.
00 = 8k + 16 byte
01 = 16k + 16 byte
10 = 32K + 16 byte
11 = 64K + 16 byte
10-8 R/W MXDMA2, 1, 0 Max DMA Burst Size per Rx DMA Burst: This field sets the maximum
size of the receive DMA data bursts according to the following table:
000 = 16 bytes
001 = 32 bytes
010 = 64 bytes
011 = 128 bytes
100 = 256 bytes
101 = 512 bytes
110 = 1024 bytes
111 = unlimited
7 R/W WRAP When set to 0: The RTL8139D(L) will transfer the rest of the packet
data into the beginning of the Rx buffer if this packet has not been
completely moved into the Rx buffer and the transfer has arrived at the
end of the Rx buffer.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 16 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Bit R/W Symbol Description
When set to 1: The RTL8139D(L) will keep moving the rest of the
packet data into the memory immediately after the end of the Rx buffer,
if this packet has not been completely moved into the Rx buffer and the
transfer has arrived at the end of the Rx buffer. The software driver must
reserve at least 1.5K bytes buffer to accept the remainder of the packet.
We assume that the remainder of the packet is X bytes. The next packet
will be moved into the memory from the X byte offset at the top of the
Rx buffer.
This bit is invalid when Rx buffer is selected to 64K bytes.
6 - - Reserved
5 R/W AER Accept Error Packet: When set to 1, all packets with CRC error,
alignment error, and/or collided fragments will be accepted. When set to
0, all packets with CRC error, alignment error, and/or collided
fragments will be rejected.
4 R/W AR Accept Runt: This bit allows the receiver to accept packets that are
smaller than 64 bytes. The packet must be at least 8 bytes long to be
accepted as a runt. Set to 1 to accept runt packets.
3 R/W AB Accept Broadcast packets: Set to 1 to accept, 0 to reject.
2 R/W AM Accept Multicast packets: Set to 1 to accept, 0 to reject.
1 R/W APM Accept Physical Match packets: Set to 1 to accept, 0 to reject.
0 R/W AAP Accept All Packets: Set to 1 to accept all packets with a physical
destination address, 0 to reject.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 17 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
4-5 - - Reserved
3 R/W EECS These bits reflect the state of EECS, EESK, EEDI & EEDO pins in
2 R/W EESK auto-load or 93C46 programming mode.
1 R/W EEDI
0 R EEDO
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 18 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 19 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 20 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 21 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 22 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 23 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 24 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 25 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 26 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Bit Name Description/Usage Default/Attribute
7 TX 1 = 100Base-TX is supported by local node; 1, RW
0 = 100Base-TX not supported by local node.
6 10FD 1 = 10Base-T full duplex supported by local node; 1, RW
0 = 10Base-T full duplex not supported by local node.
5 10 1 = 10Base-T is supported by local node; 1, RW
0 = 10Base-T not supported by local node.
4-0 Selector Binary encoded selector supported by this node. Currently only <00001>, RW
CSMA/ CD <00001> is specified. No other protocols are supported.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 27 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 28 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 29 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 30 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
The 93C46 is a 1K-bit EEPROM. Although it is actually addressed by words, its contents are listed below
by bytes for convenience. After the valid duration of the RSTB pin or auto-load command in the 9346CR,
the RTL8139D(L) performs a series of EEPROM read operations from the 93C46 addresses 00H to 31H.
It is suggested to obtain Realtek approval before changing the default settings of the EEPROM.
Bytes Contents Description
00h 29h These 2 bytes contain the ID code word for the RTL8139D(L). The RTL8139D(L) will
01h 81h load the contents of EEPROM into the corresponding location if the ID word (8129h) is
right, otherwise, the RTL8139D(L) will not proceed with the EEPROM autoload
process.
02h-05h - Reserved. The RTL8139D(L) no longer supports autoload of Vender ID and Device ID.
The default values of VID and DID are hex 10EC and 8139, respectively.
06h-07h SVID PCI Subsystem Vendor ID, PCI configuration space offset 2Ch-2Dh.
08h-09h SMID PCI Subsystem ID, PCI configuration space offset 2Eh-2Fh.
0Ah MNGNT PCI Minimum Grant Timer, PCI configuration space offset 3Eh.
0Bh MXLAT PCI Maximum Latency Timer, PCI configuration space offset 3Fh.
0Ch MSRBMCR Bits 7-6 map to bits 7-6 of the Media Status register (MSR); Bits 5, 4, 0 map to bits 13,
12, 8 of the Basic Mode Control register (BMCR); Bits 3-2 are reserved. If the network
speed is set to Auto-Detect mode (i.e. Nway mode), then Bit 1=0 means the local
RTL8139D(L) supports flow control (IEEE 802.3x). In this case, Bit 10=1 in the
Auto-negotiation Advertisement Register (offset 66h-67h), and Bit 1=1 means the local
RTL8139D(L) does not support flow control. In this case, Bit 10=0 in Auto-negotiation
Advertisement. This is because there are Nway switch hubs which keep sending flow
control pause packets for no reason, if the link partner supports Nway flow control.
0Dh CONFIG3 RTL8139D(L) Configuration register 3, operational register offset 59H.
0Eh-13h Ethernet ID Ethernet ID, After auto-load command or hardware reset, RTL8139D(L) loads Ethernet
ID to IDR0-IDR5 of RTL8139D(L)'s I/O registers.
14h CONFIG0 RTL8139D(L) Configuration register 0, operational registers offset 51h.
15h CONFIG1 RTL8139D(L) Configuration register 1, operational registers offset 52h.
16h-17h PMC Reserved. Do not change this filed without Realtek approval.
Power Management Capabilities. PCI configuration space address 52h and 53h.
18h PMCSR Reserved. Do not change this filed without Realtek approval.
Power Management Control/Status. PCI configuration space address 55h.
19h CONFIG4 Reserved. Do not change this filed without Realtek approval.
RTL8139D(L) Configuration register 4, operational registers offset 5Ah.
1Ah-1Dh PHY1_PARM_U Reserved. Do not change this filed without Realtek approval.
PHY Parameter 1-U for RTL8139D(L). Operational registers of the RTL8139D(L) are
from 78h to 7Bh.
1Eh PHY2_PARM_U Reserved. Do not change this filed without Realtek approval.
PHY Parameter 2-U for RTL8139D(L). Operational register of the RTL8139D(L) is
80h.
1Fh CONFIG_5 Do not change this filed without Realtek approval.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 31 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Bytes Contents Description
Bit7-6,4-3: Reserved.
Bit5: PCI multi-function enable.
Set to 1: Enable PCI multi-function capability. The RTL8139D(L) can be a
multi-function device with an external master PCI device mode on the same PCB,
ex. an external hardware modem.
Set to 0: Disable PCI multi-function capability.
Bit2: Link Down Power Saving mode:
Set to 1: Disable.
Set to 0: Enable. When cable is disconnected(Link Down), the analog part will power
down itself (PHY Tx part & part of twister) automatically except PHY Rx part and
part of twister to monitor SD signal in case that cable is re-connected and Link should
be established again.
Bit1: LANWake signal Enable/Disable
Set to 1: Enable LANWake signal.
Set to 0: Disable LANWake signal.
Bit0: PME_Status bit property
Set to 1: The PME_Status bit can be reset by PCI reset or by software if
D3cold_support_PME is 0. If D3cold_support_PME=1, the PME_Status bit is a
sticky bit.
Set to 0: The PME_Status bit is always a sticky bit and can only be reset by software.
20h-23h TW_PARM_U Reserved. Do not change this filed without Realtek approval.
Twister Parameter U for RTL8139D(L). Operational registers of the RTL8139D(L) are
7Ch-7Fh.
24h-27h TW_PARM_T Reserved. Do not change this filed without Realtek approval.
Twister Parameter T for RTL8139D(L). Operational registers of the RTL8139D(L) are
7Ch-7Fh.
28h-2Bh PHY1_PARM_T Reserved. Do not change this filed without Realtek approval.
PHY Parameter 1-T for RTL8139D(L). Operational registers of the RTL8139D(L) are
from 78h to 7Bh.
2Ch PHY2_PARM_T Reserved. Do not change this filed without Realtek approval.
PHY Parameter 2-T for RTL8139D(L). Operational register of the RTL8139D(L) is
80h.
2Dh-31h - Reserved.
32h-33h CheckSum Reserved. Do not change this filed without Realtek approval.
Checksum of the EEPROM content.
34h-3Eh - Reserved. Do not change this filed without Realtek approval.
3Fh PXE_Para Reserved. Do not change this filed without Realtek approval.
PXE ROM code parameter.
40h-7Fh VPD_Data VPD data filed. Offset 40h is the start address of the VPD data.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 32 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
* Registers marked with type = 'W*' can be written only if bits EEM1=EEM0=1.
** Registers marked with type = 'W**' can be written only if bits EEM1=EEM0=1 and CONFIG3<PARM_EN> = 0.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 33 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 34 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
No. Name Type Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
3Ch ILR R/W IRL7 ILR6 ILR5 ILR4 ILR3 ILR2 ILR1 ILR0
3Dh IPR R 0 0 0 0 0 0 0 1
3Eh MNGNT R 0 0 1 0 0 0 0 0
3Fh MXLAT R 0 0 1 0 0 0 0 0
40h– RESERVED
4Fh
50h PMID R 0 0 0 0 0 0 0 1
51h NextPtr R 0 0 0 0 0 0 0 0
52h PMC R Aux_I_b1 Aux_I_b0 DSI Reserved PMECLK Version
53h R PME_D3cold PME_D3hot PME_D2 PME_D1 PME_D0 D2 D1 Aux_I_b2
54h PMCSR R 0 0 0 0 0 0 Power State
W - - - - - - Power State
55h R PME_Status - - - - - - PME_En
W PME_Status - - - - - - PME_En
56h– RESERVED
5Fh
60h VPDID R 0 0 0 0 0 0 1 1
61h NextPtr R 0 0 0 0 0 0 0 0
62h Flag VPD R/W VPDADDR VPDADDR VPDADD VPDADD VPDADD VPDADD VPDADD VPDADD
Address 7 6 R5 R4 R3 R2 R1 R0
63h R/W Flag VPDADDR VPDADD VPDADD VPDADD VPDADD VPDADD VPDADD
14 R13 R12 R11 R10 R9 R8
64h VPD Data R/W Data7 Data6 Data5 Data4 Data3 Data2 Data1 Data0
65h R/W Data15 Data14 Data13 Data12 Data11 Data10 Data9 Data8
66h R/W Data23 Data22 Data21 Data20 Data19 Data18 Data17 Data16
67h R/W Data31 Data30 Data29 Data28 Data27 Data26 Data25 Data24
68h-F RESERVED
Fh
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 35 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
VID: Vendor ID. This field will default to a value of 10ECh which is Realtek Semiconductor's PCI Vendor
ID.
Command: The command register is a 16-bit register used to provide coarse control over a device's ability
to generate and respond to PCI cycles.
Bit Symbol Description
15-10 - Reserved
9 FBTBEN Fast Back-To-Back Enable: Config3<FBtBEn>=0:Read as 0. Write operation has no effect. The
RTL8139D(L) will not generate Fast Back-to-back cycles. When Config3<FbtBEn>=1, This
read/write bit controls whether or not a master can do fast back-to-back transactions to different
devices. Initialization software will set the bit if all targets are fast back-to-back capable. A value of 1
means the master is allowed to generate fast back-to-back transaction to different agents. A value of 0
means fast back-to-back transactions are only allowed to the same agent. This bit’s state after RST# is
0.
8 SERREN System Error Enable: When set to 1, the RTL8139D(L) asserts the SERRB pin when it detects a
parity error on the address phase (AD<31:0> and CBEB<3:0> ).
7 ADSTEP Address/Data Stepping: Read as 0, write operation has no effect. The RTL8139D(L) never make
address/data stepping.
6 PERRSP Parity Error Response: When set to 1, the RTL8139D(L) will assert the PERRB pin on the detection
of a data parity error when acting as the target, and will sample the PERRB pin as the master. When set
to 0, any detected parity error is ignored and the RTL8139D(L) continues normal operation.
Parity checking is disabled after hardware reset (RSTB).
5 VGASNOO VGA palette SNOOP: Read as 0, write operation has no effect.
P
4 MWIEN Memory Write and Invalidate cycle Enable: Read as 0, write operation has no effect.
3 SCYCEN Special Cycle Enable: Read as 0, write operation has no effect. The RTL8139D(L) ignores all special
cycle operation.
2 BMEN Bus Master Enable: When set to 1, the RTL8139D(L) is capable of acting as a bus master. When set
to 0, it is prohibited from acting as a PCI bus master.
For the normal operation, this bit must be set by the system BIOS.
1 MEMEN Memory Space Access: When set to 1, the RTL8139D(L) responds to memory space accesses. When
set to 0, the RTL8139D(L) ignores memory space accesses.
0 IOEN I/O Space Access: When set to 1, the RTL8139D(L) responds to IO space access. When set to 0, the
RTL8139D(L) ignores I/O space accesses.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 36 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Status: The status register is a 16-bit register used to record status information for PCI bus related events.
Reads to this register behave normally. Writes are slightly different in that bits can be reset, but not set.
Bit Symbol Description
15 DPERR Detected Parity Error: When set indicates that the RTL8139D(L) detected a parity error, even if parity
error handling is disabled in command register PERRSP bit.
14 SSERR Signaled System Error: When set indicates that the RTL8139D(L) asserted the system error pin,
SERRB. Writing a 1 clears this bit to 0.
13 RMABT Received Master Abort: When set indicates that the RTL8139D(L) terminated a master transaction
with master abort. Writing a 1 clears this bit to 0.
12 RTABT Received Target Abort: When set indicates that the RTL8139D(L) master transaction was terminated
due to a target abort. Writing a 1 clears this bit to 0.
11 STABT Signaled Target Abort: Set to 1 whenever the RTL8139D(L) terminates a transaction with target abort.
Writing a 1 clears this bit to 0.
10-9 DST1-0 Device Select Timing: These bits encode the timing of DEVSELB. They are set to 01b (medium),
indicating the RTL8139D(L) will assert DEVSELB two clocks after FRAMEB is asserted.
8 DPD Data Parity error Detected:
This bit sets when the following conditions are met:
► The RTL8139D(L) asserts parity error(PERRB pin) or it senses the assertion of PERRB pin by another device.
► The RTL8139D(L) operates as a bus master for the operation that caused the error.
► The Command register PERRSP bit is set.
Writing a 1 clears this bit to 0.
7 FBBC Fast Back-To-Back Capable: Config3<FbtBEn>=0, Read as 0, write operation has no effect.
Config3<FbtBEn>=1, Read as 1.
6 UDF User Definable Features Supported: Read as 0, write operation has no effect. The RTL8139D(L) does
not support UDF.
5 66MHz 66 MHz Capable: Read as 0, write operation has no effect. The RTL8139D(L) has no 66MHz
capability.
4 NewCap New Capability: Config3<PMEn>=0, Read as 0, write operation has no effect. Config3<PMEn>=1,
Read as 1.
0-3 - Reserved
RID: Revision ID Register
The Revision ID register is an 8-bit register that specifies the RTL8139D(L) controller revision number.
PIFR: Programming Interface Register
The programming interface register is an 8-bit register that identifies the programming interface of the RTL8139D(L)
controller. Because the PCI version 2.1 specification does not define any specific value for network devices, PIFR = 00h.
SCR: Sub-Class Register
The Sub-class register is an 8-bit register that identifies the function of the RTL8139D(L). SCR = 00h indicates that the
RTL8139D(L) is an Ethernet controller.
BCR: Base-Class Register
The Base-class register is an 8-bit register that broadly classifies the function of the RTL8139D(L). BCR = 02h indicates
that the RTL8139D(L) is a network controller.
CLS: Cache Line Size
Reads will return a 0, writes are ignored.
LTR: Latency Timer Register
Specifies, in units of PCI bus clocks, the value of the latency timer of the RTL8139D(L).
When the RTL8139D(L) asserts FRAMEB, it enables its latency timer to count. If the RTL8139D(L)
deasserts FRAMEB prior to count expiration, the content of the latency timer is ignored. Otherwise,
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 37 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
after the count expires, the RTL8139D(L) initiates transaction termination as soon as its GNTB is
deasserted. Software is able to read or write, and the default value is 00H.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 38 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Bit Symbol Description
31-18 BMAR31-18 Boot ROM Base Address
17-11 ROMSIZE These bits indicate how many Boot ROM spaces to be supported.
The Relationship between Config 0 <BS2:0> and BMAR17-11 is the following:
BS2 BS1 BS0 Description
0 0 0 No Boot ROM, BROMEN=0 (R)
0 0 1 8K Boot ROM, BROMEN (R/W), BMAR12-11 = 0 (R), BMAR17-13 (R/W)
0 1 0 16K Boot ROM, BROMEN (R/W), BMAR13-11 = 0 (R), BMAR17-14 (R/W)
0 1 1 32K Boot ROM, BROMEN (R/W), BMAR14-11 = 0 (R), BMAR17-15 (R/W)
1 0 0 64K Boot ROM, BROMEN (R/W), BMAR15-11 = 0 (R), BMAR17-16 (R/W)
1 0 1 128K Boot ROM, BROMEN(R/W), BMAR16-11=0 (R), BMAR17 (R/W)
1 1 0 unused
1 1 1 unused
10-1 - Reserved (read back 0)
0 BROMEN Boot ROM Enable: This is used by the PCI BIOS to enable accesses to Boot ROM.
ILR: Interrupt Line Register
The Interrupt Line Register is an 8-bit register used to communicate with the routing of the interrupt. It is written by the
POST software to set interrupt line for the RTL8139D(L).
IPR: Interrupt Pin Register
The Interrupt Pin register is an 8-bit register indicating the interrupt pin used by the RTL8139D(L). The RTL8139D(L)
uses INTA interrupt pin. Read only. IPR = 01H.
MNGNT: Minimum Grant Timer: Read only
Specifies how long a burst period the RTL8139D(L) needs at 33 MHz clock rate in units of 1/4 microsecond. This
field will be set to a value from the external EEPROM. If there is no EEPROM, this field will default to a value of
20h.
MXLAT: Maximum Latency Timer: Read only
Specifies how often the RTL8139D(L) needs to gain access to the PCI bus in unit of 1/4 microsecond. This field
will be set to a value from the external EEPROM. If there is no EEPROM, this field will default to a value of 20h.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 39 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 40 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
No. Name Type Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
3Ch ILR R/W 0 0 0 0 0 0 0 0
3Dh IPR R 0 0 0 0 0 0 0 1
3Eh MNGNT R 0 0 1 0 0 0 0 0
3Fh MXLAT R 0 0 1 0 0 0 0 0
40h RESERVED(ALL 0)
| -
FFh
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 41 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
D3cold_support_PME bit(bit15, PMC register) & Aux_I_b2:0 (bit8:6, PMC register) in PCI configuration
space.
If 9346 D3cold_support_PME bit(bit15, PMC) = 1, the above 4 bits depend on the existence of Aux
power.
If 9346 D3cold_support_PME bit(bit15, PMC) = 0, the above 4 bits are all 0's.
Ex.:
1. If 9346 D3c_support_PME = 1,
¾ Aux. power exists, then PMC in PCI config space is the same as 9346 PMC, i.e. if 9346
PMC = C2 F7, then PCI PMC = C2 F7.
¾ Aux. power is absent, then PMC in PCI config space is the same as 9346 PMC except
the above 4 bits are all 0’s. I.e. if 9346 PMC = C2 F7, the PCI PMC = 02 76.
In this case, if wakeup support is desired when the main power is off, it is
suggested that the 9346 PMC be set to: C2 F7 (RT 9346 default value). It is not
recommended to set the D0_support_PME bit to “1”.
2. If 9346 D3c_support_PME = 0,
¾ Aux. power exists, then PMC in PCI config space is the same as 9346 PMC. I.e. if 9346
PMC = C2 77, then PCI PMC = C2 77.
¾ Aux. power is absent, then PMC in PCI config space is the same as 9346 PMC except
the above 4 bits are all 0’s. I.e. if 9346 PMC = C2 77, the PCI PMC = 02 76.
In this case, if wakeup support is not desired when the main power is off, it is
suggested that the 9346 PMC to be 02 76. It is not recommended to set the
D0_support_PME bit to “1”.
Link Wakeup occurs only when the following conditions are approved,
♦ The LinkUp bit (CONFIG3#4) is set to 1, the PMEn bit (CONFIG1#0) is set to 1, and the
RTL8139D(L) is in isolation state, or the PME# can be asserted in current power state.
♦ The Link status is re-established.
Magic Packet Wakeup occurs only when the following conditions are met:
♦ The destination address of the received Magic Packet matches.
♦ The received Magic Packet does not contain CRC error.
♦ The Magic bit (CONFIG3#5) is set to 1, the PMEn bit (CONFIG1#0) is set to 1, and the
RTL8139D(L) is in isolation state, or the PME# can be asserted in current power state.
♦ The Magic Packet pattern matches, i.e. 6 * FFh + MISC(can be none)+ 16 * DID(Destination ID) in
any part of a valid (Fast) Ethernet packet.
Wakeup Frame event occurs only when the following conditions are met:
♦ The destination address of the received Wakeup Frame matches.
♦ The received Wakeup Frame does not contain a CRC error.
♦ The PMEn bit (CONFIG1#0) is set to 1.
The 8-bit CRC* (or 16-bit CRC) of the received Wakeup Frame matches with the 8-bit CRC* (or
16-bit CRC) of the sample Wakeup Frame pattern received from the local machine’s OS.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 42 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
The last masked byte** of the received Wakeup Frame matches with the last masked byte** of the
sample Wakeup Frame pattern provided by the local machine’s OS. (In Long Wakeup Frame mode,
the last masked byte field is replaced with the high byte of the 16-bit CRC.)
z 8-bit CRC:
This 8-bit CRC logic is use to generate an 8-bit CRC from the masked bytes of the received
Wakeup Frame packet within offset 12 to 75. Software should calculate the 8-bit Power
Management CRC for each specific sample wakeup frame and store the calculated CRC in the
corresponding CRC register for the RTL8139D(L) to check if there is Wakeup Frame packet
coming in.
z 16-bit CRC: (Long Wakeup Frame mode, the mask bytes cover from offset 0 to 127)
Long Wakeup Frame: The RTL8139D(L) also supports 3 long Wakeup Frames. If the range of
mask bytes of the sample Wakeup Frame, passed down by the OS to the driver, exceeds the range
from offset 12 to 75, the related registers of wakeup frame 2 and 3 can be merged to support one
long wakeup frame by setting the LongWF (bit0, CONFIG4). Thus, the range of effective mask
bytes extends from offset 0 to 127. The low byte and high byte of calculated 16-bit CRC should
be put into register CRC2 and LSBCRC2 respectively. The mask bytes (16 bytes) should be store
to register Wakeup2 and Wakeup3. The CRC3 and LSBCRC3 have no meaning in this case and
should be reset to 0. So as the long Wakeup Frame pairs, wakeup frame 4 and 5, wakeup frame 6
and 7. The CRC5, CRC7, LSBCRC5, and LSBCRC7 have no meaning in this case and should be
reset to 0, if the RTL8139D(L) is set to support long Wakeup Frame. In this case, the
RTL8139D(L) support 5 wakeup frames, that are 2 normal wakeup frames and 3 long wakeup
frames.
** last masked byte:
The last byte of the masked bytes of the received Wakeup Frame packet within offset 12 to
75 (in 8-bit CRC mode) should matches with the last byte of the masked bytes of the sample
Wakeup Frame provided by the local machine’s OS.
The PME# signal is asserted only when the following are approved,
The PMEn bit (bit0, CONFIG1) is set to 1.
The PME_En bit (bit8, PMCSR) in PCI Configuration Space is set to 1.
The RTL8139D(L) may assert PME# in current power state, or the RTL8139D(L) is in isolation
state. Refer to PME_Support(bit15-11) of the PMC register in PCI Configuration Space.
Magic Packet, LinkUp, or Wakeup Frame has occurred.
* Writing a 1 to the PME_Status (bit15) of PMCSR register in the PCI Configuration Space will
clear this bit and cause the RTL8139D(L) to stop asserting a PME# (if enabled).
When the RTL8139D(L) is in power down mode, ex. D1-D3, the IO, MEM, and Boot ROM space are all
disabled. After RST# asserted, the power state must be changed to D0 if the original power state is D3cold.
There is no hardware enforced delays at RTL8139D(L)’s power state. When in ACPI mode, the
RTL8139D(L) does not support PME from D0 (owing to the setting of PMC register. This setting comes
from EEPROM).
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 43 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
The RTL8139D(L) also supports LAN WAKE-UP function. The LWAKE pin is used to notify the
motherboard to execute wake-up process whenever the RTL8139D(L) receives a wakeup event, such as
Magic Packet.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 44 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
8. Block Diagram
MAC EEPROM
LED Driver
Interface
Discriminator
Packet Length
Interface
Packet Type
Register
Register
Interrupt
2nd PCI
Device
Transmit/
FIFO Receive
FIFO Control Logic MII
Logic Interface Interface
PHY
100M
5B 4B Data
Descrambler
RXD
Decoder Alignment RXC 25M
10/100
MII half/full
Interface Switch TXD
4B 5B
Logic Encoder
Scrambler
TXC 25M
10/100M Auto-negotiation
Control Logic
Link pulse
10M
TXC10
TXD10 Manchester coded 10M Output waveform
waveform shaping
RXC10
RXD10 Data Recovery Receive low pass filter
Transceiver
TXC 25M Parrallel TD+ 3 Level TXO+
TXD to Serial Driver TXO -
Variable Current
Baseline Peak
wander Detect
Correction
25M
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 45 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
9. Functional Description
9.1. Transmit Operation
The host CPU initiates a transmit by storing an entire packet of data in one of the descriptors in the main
memory. When the entire packet has been transferred to the Tx buffer, the RTL8139D(L) is instructed to
move the data from the Tx buffer to the internal transmit FIFO in PCI bus master mode. When the transmit
FIFO contains a complete packet or is filled to the programmed threshold level, the RTL8139D(L) begins
packet transmission.
BLW is the change in the average DC content, over time, of an AC coupled digital transmission over a
given transmission medium. BLW is a result from the interaction between the low frequency components
of a transmitted bit stream and the frequency response of the AC coupling component(s) within the
transmission system. If the low frequency content of the digital bit stream goes below the low frequency
pole of the AC coupling transformers, then the droop characteristics of the transformers will dominate,
resulting in potentially serious BLW. If BLW is not compensated, packet loss can occur.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 46 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
9.7. Tx Encapsulation
While operating in 100Base-TX mode, the RTL8139D(L) encapsulates the frames that it transmits
according to the 4B/5B code-groups table. The changes of the original packet data are listed as follows:
1. The first byte of the preamble in the MAC frame is replaced with the JK symbol pair.
2. After the CRC, the TR symbol pair is inserted.
9.8. Collision
If the RTL8139D(L) is not in the full-duplex mode, a collision event occurs when the receive input is not
idle while the RTL8139D(L) transmits. If the collision was detected during the preamble transmission, the
jam pattern is transmitted after completing the preamble (including the JK symbol pair).
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 47 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
9.9. Rx Decapsulation
The RTL8139D(L) continuously monitors the network when reception is enabled. When activity is
recognized it starts to process the incoming data.
After detecting receive activity on the line, the RTL8139D(L) starts to process the preamble bytes based on
the mode of operation.
While operating in 100Base-Tx mode, the RTL8139D(L) expects the frame to start with the symbol pair JK
in the first byte of the 8-byte preamble.
The RTL8139D(L) checks the CRC bytes and checks if the packet data ends with the TR symbol pair, if
not, the RTL8139D(L) reports an CRC error RSR.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 48 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
9.11.2. LED_RX
In 10/100 Mbps mode, the LED function is the same as the RTL8139C(L).
Power On
LED = Low
No
Receiving Packet?
Yes
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 49 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
9.11.3. LED_TX
Power On
LED = Low
Transmitting Packet No
Yes
9.11.4. LED_TX+LED_RX
Power On
LED = Low
No
Tx or Rx Packet?
Yes
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 50 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
LED
EEPROM
REQB
GNTB
RJ45 Magetics RTL8102L 2nd PCI Device
IDSEL
CS/OE
PCI INTERFACE
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 51 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
11.2. DC Characteristics
11.2.1. Supply Voltage Vcc = 3.0V min. to 3.6V max.
Symbol Parameter Conditions Minimum Maximum Units
VOH Minimum High Level Output Voltage IOH= -8mA 0.9 * Vcc Vcc V
VOL Maximum Low Level Output Voltage IOL= 8mA 0.1 * Vcc V
VIH Minimum High Level Input Voltage 0.5 * Vcc Vcc+0.5 V
VIL Maximum Low Level Input Voltage -0.5 0.3 * Vcc V
IIN Input Current VIN=VCC or -1.0 1.0 uA
GND
IOZ Tri-State Output Leakage Current VOUT=VCC or -10 10 uA
GND
ICC Average Operating Supply Current IOUT=0mA, 330 mA
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 52 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
11.3. AC Characteristics
11.3.1. PCI Bus Operation Timing
Target Read
Target Write
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 53 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Configuration Read
Configuration Write
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 54 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
BUS Arbitration
Memory Read
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 55 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Memory Write
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 56 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 57 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 58 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Notes:
Symbol Dimension in mil Dimension in mm 1.Dimension D & E do not include interlead flash.
Min Typical Max Min Typical Max 2.Dimension b does not include dambar protrusion/intrusion.
A 106.3 118.1 129.9 2.70 3.00 3.30 3.Controlling dimension: Millimeter
A1 4.3 20.1 35.8 0.11 0.51 0.91 4.General appearance spec. should be based on final visual
A2 102.4 112.2 122.0 2.60 2.85 3.10 inspection spec.
b 7.1 11.8 16.5 0.18 0.30 0.42
c 1.6 5.9 10.2 0.04 0.15 0.26
D 541.3 551.2 561.0 13.75 14.00 14.25 TITLE : 100L QFP ( 14x20 mm**2 ) FOOTPRINT 4.8 mm
E 777.6 787.4 797.2 19.75 20.00 20.25 PACKAGE OUTLINE DRAWING
19.7 25.6 31.5 0.50 0.65 0.80 LEADFRAME MATERIAL:
HD 726.4 740.2 753.9 18.45 18.80 19.15 APPROVE DWG NO.
HE 962.6 976.4 990.2 24.45 24.80 25.15 REV NO.
L 39.4 47.2 55.1 1.00 1.20 1.40 SCALE
L1 88.6 94.5 104.3 2.25 2.40 2.65 CHECK Ricardo Chen DATE
Y - - 3.9 - - 0.10 SHT NO. 1 OF
θ 0° - 12° 0° - 12° REALTEK SEMICONDUCTOR CORP.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 59 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
12.2. LQFP
Notes:
1.To be determined at seating plane -c-
2.Dimensions D1 and E1 do not include mold protrusion.
Symbol Dimension in inch Dimension in mm D1 and E1 are maximum plastic body size dimensions
Min Nom Max Min Nom Max including mold mismatch.
A - - 0.067 - - 1.70 3.Dimension b does not include dambar protrusion.
A1 0.000 0.004 0.008 0.00 0.1 0.20 Dambar can not be located on the lower radius of the foot.
A2 0.051 0.055 0.059 1.30 1.40 1.50 4.Exact shape of each corner is optional.
b 0.006 0.009 0.011 0.15 0.22 0.29 5.These dimensions apply to the flat section of the lead
b1 0.006 0.008 0.010 0.15 0.20 0.25 between 0.10 mm and 0.25 mm from the lead tip.
c 0.004 - 0.008 0.09 - 0.20 6. A1 is defined as the distance from the seating plane
c1 0.004 - 0.006 0.09 - 0.16 to the lowest point of the package body.
D 0.630 BSC 16.00 BSC 7.Controlling dimension: millimeter.
D1 0.551 BSC 14.00 BSC 8. Reference document: JEDEC MS-026, BED.
E 0.630 BSC 16.00 BSC TITLE: 100LD LQFP ( 14x14x1.4mm)
E1 0.551 BSC 14.00 BSC PACKAGE OUTLINE DRAWING, FOOTPRINT 2.0mm
0.020 BSC 0.50 BSC LEADFRAME MATERIAL:
L 0.016 0.024 0.031 0.40 0.60 0.80 APPROVE DOC. NO.
L1 0.039 REF 1.00 REF VERSION 1
θ 0º 3.5º 9º 0º 3.5º 9º PAGE OF
θ1 0º - - 0º - - CHECK DWG NO. LQ100 - P1
θ2 12ºTYP 12ºTYP DATE
θ3 12ºTYP 12ºTYP REALTEK SEMICONDUCTOR CORP.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 60 Track ID: JATR-1076-21 Rev. 1.2
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management 61 Track ID: JATR-1076-21 Rev. 1.2