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.
Datasheet
USING THIS DOCUMENT
Though every effort has been made to ensure that this document is current and accurate, more information
may have become available subsequent to the production of this guide. In that event, please contact your
Realtek representative for additional information that may help in the development process.
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
Track ID: JATR-1076-21 Rev. 1.2
ii
RTL8139DL
Datasheet
Table of Contents
1. GENERAL DESCRIPTION...............................................................................................................1
2. FEATURES ..........................................................................................................................................2
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
v
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
Track ID: JATR-1076-21 Rev. 1.2
1
2. Features
RTL8139DL
Datasheet
100 pin QFP/LQFP
Integrated Fast Ethernet MAC, Physical chip
and transceiver in one chip
10Mbps and 100Mbps operation
Supports 10Mbps and 100Mbps N-way
Auto-negotiation operation
Supports PCI multi-function capabilities
PCI local bus single-chip Fast Ethernet
controller
Complies with PCI Revision 2.2
Supports PCI clock 16.75MHz-40MHz
Supports PCI target fast back-to-back
transaction
Provides PCI bus master data transfers
and PCI memory space or I/O space
mapped data transfers of
RTL8139D(L)'s operational registers
Supports PCI VPD (Vital Product
Data)
Supports ACPI, PCI power
management
Supports PCI multi-function to
incorporate with other PCI master
device
Supports 4 Wake-On-LAN (WOL) signals
(active high, active low, positive pulse, and
negative pulse)
Supports auxiliary power-on internal reset, to
be ready for remote wake-up when main
power remains off
Supports auxiliary power auto-detect, and sets
the related capability of power management
registers in PCI configuration space
Includes a programmable, PCI burst size and
early Tx/Rx threshold
Supports a 32-bit general-purpose timer with
the external PCI clock as clock source, to
generate timer-interrupt
Contains two large (2Kbyte) independent
receive and transmit FIFO’s
Advanced power saving mode when LAN
function or wakeup function is not used
Uses 93C46 (64*16-bit EEPROM) to store
resource configuration, ID parameter, and
VPD data
Supports LED pins for various network
activity indications
Supports loopback capability
Half/Full duplex capability
Supports 25MHz crystal or 25MHz
OSC as the internal clock source. The
frequency deviation of either crystal or
OSC must be within 50 PPM.
Complies with PC99 and PC2001 standards
Supports Wake-On-LAN function and remote
wake-up (Magic Packet*, LinkChg and
Supports Full Duplex Flow Control (IEEE
802.3x)
2.5/3.3V power supply with 5V tolerant I/Os
Up to 128K byte Boot ROM interface for both
EPROM and Flash memory is supported
0.25u CMOS process
Microsoft® wake-up frame)
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Lead (Pb)-free package is indicated by an ‘L’ in the location marked ‘T’ in Figure 2.
‘Green’ package is indicated by a ‘G’ in the location marked ‘T’ in Figure 2.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
3
RTL8139DL
Datasheet
4. Pin Descriptions
Note that some pins have multiple functions. Refer to the Pin Assignment diagrams for a graphical
representation.
4.1. Power Management/Isolation Interface
Symbol Type Pin No Description
PMEB
(PME#)
ISOLATEB
(ISOLATE#)
LWAKE O 64
O/D 57
I 74
Power Management Event: Open drain, active low. Used by the
RTL8139D(L) to request a change in its current power management
state and/or to indicate that a power management event has occurred.
Isolate pin: Active low. Used to isolate the RTL8139D(L) from the PCI
bus. The RTL8139D(L) does not drive its PCI outputs (excluding
PME#) and does not sample its PCI input (including RST# and
PCICLK) as long as the Isolate pin is asserted.
LAN WAKE-UP signal: This signal is used to inform the motherboard
to execute the wake-up process. The motherboard must support
Wake-On-LAN (WOL). There are 4 choices of output, including active
high, active low, positive pulse, and negative pulse, that may be asserted
from the LWAKE pin. Please refer to the LWACT bit in the CONFIG1
register and the LWPTN bit in the CONFIG4 register for the setting of
this output signal. The default output is an active high signal.
Once a PME event is received, the LWAKE and PMEB assert at the
same time when the LWPME (bit4, CONFIG4) is set to 0. If the
LWPME is set to 1, the LWAKE asserts only when the PMEB asserts
and the ISOLATEB is low.
This pin is a 3.3V signaling output pin.
4.2. PCI Interface
Symbol Type Pin No Description
AD31-0 T/S 86,87,89,91-95,100,
1,3-5,8-10,23-30,33,
36-38,41,42,44,45
C/BE3-0 T/S 98,11,21,32 PCI bus command and byte enables multiplexed pins.
CLK I 83
DEVSELB S/T/S 15
FRAMEB S/T/S 12
PCI address and data multiplexed pins.
Pins AD31-24 are shared with BootROM data pins, while AD16-0 are
shared with BootROM address pins.
Clock: This PCI Bus clock provides timing for all transactions and bus
phases, and is input to PCI devices. The rising edge defines the start of
each phase. The clock frequency ranges from 0 to 33MHz.
Device Select: As a bus master, the RTL8139D(L) samples this signal
to insure that a PCI target recognizes the destination address for the data
transfer. As a target, the RTL8139D(L) asserts this signal low when it
recognizes its target address after FRAMEB is asserted.
Cycle Frame: As a bus master, this pin indicates the beginning and
duration of an access. FRAMEB is asserted low to indicate the start of a
bus transaction. While FRAMEB is asserted, data transfer continues.
When FRAMEB is deasserted, the transaction is in the final data phase.
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
Track ID: JATR-1076-21 Rev. 1.2
4
Symbol Type Pin No Description
GNTB I 84
REQB T/S 85
IDSEL I 99
INTAB O/D 81
IRDYB S/T/S 13
TRDYB S/T/S 14
PAR T/S 20
PERRB S/T/S 18
SERRB O/D 19
STOPB S/T/S 17
RSTB I 82
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.
Request: The RTL8139D(L) will assert this signal low to request the
ownership of the bus from the central arbiter.
Initialization Device Select: This pin allows the RTL8139D(L) to
identify when configuration read/write transactions are intended for it.
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.
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.
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.
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.
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.
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.
Stop: Indicates the current target is requesting the master to stop the
current transaction.
Reset: When RSTB is asserted low, the RTL8139D(L) performs
internal system hardware reset. RSTB must be held for a minimum of
120 ns.
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
5
RTL8139DL
Datasheet
4.3. EEPROM Interface
Symbol Type Pin No Description
AUX
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
I
50
Aux. Power Detect: This pin is used to notify the RTL8139D(L) of the
existence of Aux. power during initial power-on or a PCI reset.
This pin should be pulled high to the Aux. power via a resistor to detect
the Aux. power. Doing so, will enable wakeup support from ACPI D3
cold or APM power-down. If this pin is not pulled high, the
RTL8139D(L) assumes that no Aux. power exists.
EEPROM chip select
4.4. Power Pins
Symbol Type Pin No Description
VDD P 6,22,34,39,90,97
AVDD P 59,70,75
VDD25 P 51,96
AVDD25 P 58
GND P 2,16,31,43,56,
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
6
4.6. Attachment Unit Interface
Symbol Type Pin No Description
TXD+
TXDRXIN+
RXINX1 I 61 25 MHz crystal/OSC. input.
X2 O 60
O
O
I
I
72
71
68
67
100/10BASE-T transmit (Tx) data.
100/10BASE-T receive (Rx) data.
Crystal feedback output: This output is used in crystal connection only.
It must be left open when X1 is driven with an external 25 MHz oscillator.
4.7. Multi-Function Interface
RTL8139DL
Datasheet
Symbol Type Pin No Description
REQB2 IN 53
GNTB2 T/S,O 54
IDSEL2 O 78
Request2: The 2
ownership of the PCI bus.
Grant2: This signal is asserted low to indicate that the central arbiter
has granted ownership of the bus to the 2
Initialization Device Select 2: Used as a chip-select during
configuration read and write transactions to the 2
nd
device will assert this pin low to request the
nd
device.
nd
device.
4.8. Test And Other Pins
Symbol Type Pin No Description
RTT3 TEST 63 Chip test pin.
RTSET I/O 65 This pin must be pulled low by a resistor. Please refer to the application
circuit for correct value.
VCTRL Analog 55 Use this pin and an external PNP type transistor to generate +2.5V for
the RTL8139D(L).
ROMCS/OEB O 35
CLKRUNB I/O 52
NC - 7,40,69,76
ROM Chip Select and Output Enable: This is the chip select signal
and output enable for the Boot PROM.
Clock Run: This signal is used by the RTL8139D(L) to request starting
(or speeding up) the clock, CLK. CLKRUNB also indicates the clock
status. For the RTL8139D(L), CLKRUNB is an open drain output as
well as an input. The RTL8139D(L) requests the central resource to
start, speed up, or maintain the interface clock by the assertion of
CLKRUNB. For the host system, it is an S/T/S signal. The host system
(central resource) is responsible for maintaining CLKRUNB asserted,
and for driving it high to the negated (deasserted) state.
Reserved
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
7
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
0000h R/W IDR0 ID Register 0, The ID register0-5 are only permitted to read/write by
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
0048h-004Bh R/W TCTR Timer CounT Register: This register contains a 32-bit general-purpose
004Ch-004Fh R/W MPC Missed Packet Counter: Indicates the number of packets discarded due
R/W Tag Description
4-byte access. Read access can be byte, word, or double word access.
The initial value is autoloaded from EEPROM EthernetID field.
read/write by 4-byte access. Read access can be byte, word, or double
word access. Driver is responsible for initializing these registers.
received byte-count in the rx buffer.
timer. Writing any value to this 32-bit register will reset the original
timer and begin to count from zero.
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
Track ID: JATR-1076-21 Rev. 1.2
8
RTL8139DL
Datasheet
Offset
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
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
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
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
R/W Tag Description
When written any value, MPC will be reset also.
R /W
R/W
TimerInt
CRC3 Power Management CRC register3 for wakeup frame3
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.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
9
RTL8139DL
Datasheet
Offset
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.
R/W Tag Description
5.1. Receive Status Register in Rx Packet Header
Bit R/W Symbol Description
15 R MAR
14 R PAM
13 R BAR
12-6 - -
5 R ISE
4 R RUNT
3 R LONG
2 R CRC
1 R FAE
0 R ROK
Multicast Address Received: This bit set to 1 indicates that a multicast
packet is received.
Physical Address Matched: This bit set to 1 indicates that the destination
address of this packet matches the value written in ID registers.
Broadcast Address Received: This bit set to 1 indicates that a broadcast
packet is received. BAR, MAR bit will not be set simultaneously.
Reserved
Invalid Symbol Error: (100BASE-TX only) This bit set to 1 indicates
that an invalid symbol was encountered during the reception of this packet.
Runt Packet Received: This bit set to 1 indicates that the received packet
length is smaller than 64 bytes ( i.e. media header + data + CRC < 64
bytes )
Long Packet: This bit set to 1 indicates that the size of the received
packet exceeds 4k bytes.
CRC Error: When set, indicates that a CRC error occurred on the
received packet.
Frame Alignment Error: When set, indicates that a frame alignment
error occurred on this received packet.
Receive OK: When set, indicates that a good packet is received.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
10
RTL8139DL
Datasheet
5.2. Transmit Status Register
(TSD0-3)(Offset 0010h-001Fh, R/W)
The read-only bits (CRS, TABT, OWC, CDH, NCC3-0, TOK, TUN) will be cleared by the RTL8139D(L)
when the Transmit Byte Count (bits 12-0) in the corresponding Tx descriptor is written. It is not affected
when software writes to these bits. These registers are only permitted to write by double-word access. After
software reset, all bits except OWN bit are reset to “0”.
BitR/WSymbolDescription
31 R CRS
30 R TABT
29 R OWC
28 R CDH
27-24 R NCC3-0
23-22 - 21-16 R/W ERTXTH5-0
15 R TOK
14 R TUN
13 R/W OWN
12-0 R/W SIZE
Carrier Sense Lost: This bit is set to 1 when the carrier is lost during
transmission of a packet.
Transmit Abort: This bit is set to 1 if the transmission of a packet was
aborted. This bit is read only, writing to this bit is not affected.
Out of Window Collision: This bit is set to 1 if the RTL8139D(L)
encountered an "out of window" collision during the transmission of a
packet.
CD Heart Beat: The NIC watches for a collision signal (ie, CD
Heartbeat signal) during the first 6.4us of the interframe gap following a
transmission. This bit is set if the transceiver fails to send this signal.
This bit is cleared in the 100 Mbps mode.
Number of Collision Count: Indicates the number of collisions
encountered during the transmission of a packet.
Reserved
Early Tx Threshold: Specifies the threshold level in the Tx FIFO to
begin the transmission. When the byte count of the data in the Tx FIFO
reaches this level, (or the FIFO contains at least one complete packet)
the RTL8139D(L) will transmit this packet.
000000 = 8 bytes
These fields count from 000001 to 111111 in unit of 32 bytes.
This threshold must avoid exceeding 2K bytes.
Transmit OK: Set to 1 indicates that the transmission of a packet was
completed successfully and no transmit underrun has occurred.
Transmit FIFO Underrun: Set to 1 if the Tx FIFO was exhausted
during the transmission of a packet. The RTL8139D(L) can re-transfer
data if the Tx FIFO underruns and can also transmit the packet to the
wire successfully even though the Tx FIFO underruns. That is, when
TSD<TUN>=1, TSD<TOK>=0 and ISR<TOK>=1 (or ISR<TER>=1).
OWN: The RTL8139D(L) sets this bit to 1 when the Tx DMA
operation of this descriptor was completed. The driver must set this bit
to 0 when the Transmit Byte Count (bits 0-12) is written. The default
value is 1.
Descriptor Size: The total size in bytes of the data in this descriptor. If
the packet length is more than 1792 byte (0700h), the Tx queue will be
invalid, i.e. the next descriptor will be written only after the OWN bit of
that long packet's descriptor has been set.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
11
5.3. ERSR: Early Rx Status Register
(Offset 0036h, R)
Bit R/W Symbol Description
7-4 - -
3 R ERGood
2 R ERBad
1 R EROVW
0 R EROK
Reserved
Early Rx Good packet: This bit is set whenever a packet is completely
received and the packet is good. Writing a 1 to this bit will clear it.
Early Rx Bad packet: This bit is set whenever a packet is completely
received and the packet is bad. Writing a 1 to this bit will clear it.
Early Rx OverWrite: This bit is set when the RTL8139D(L)'s local
address pointer is equal to CAPR. In the early mode, this is different
from buffer overflow. It happens that the RTL8139D(L) detected an Rx
error and wanted to fill another packet data from the beginning address
of that error packet. Writing a 1 to this bit will clear it.
Early Rx OK: The power-on value is 0. It is set when the Rx byte count
of the arriving packet exceeds the Rx threshold. After the whole packet
is received, the RTL8139D(L) will set ROK or RER in ISR and clear
this bit simultaneously. Setting this bit will invoke a ROK interrupt.
RTL8139DL
Datasheet
5.4. Command Register
(Offset 0037h, R/W)
This register is used for issuing commands to the RTL8139D(L). These commands are issued by setting the
corresponding bits for the function. A global software reset along with individual reset and enable/disable
for transmitter and receiver are provided here.
BitR/WSymbolDescription
7-5 - -
4 R/W RST
3 R/W RE
2 R/W TE
1 - 0 R BUFE
Reserved
Reset: Setting to 1 forces the RTL8139D(L) to a software reset state
which disables the transmitter and receiver, reinitializes the FIFOs,
resets the system buffer pointer to the initial value (Tx buffer is at
TSAD0, Rx buffer is empty). The values of IDR0-5 and MAR0-7 and
PCI configuration space will have no changes. This bit is 1 during the
reset operation, and is cleared to 0 by the RTL8139D(L) when the reset
operation is complete.
Receiver Enable: When set to 1, and the receive state machine is idle,
the receive machine becomes active. This bit will read back as a 1
whenever the receive state machine is active. After initial power-up,
software must insure that the receiver has completely reset before
setting this bit.
Transmitter Enable: When set to 1, and the transmit state machine is
idle, then the transmit state machine becomes active. This bit will read
back as a 1 whenever the transmit state machine is active. After initial
power-up, software must insure that the transmitter has completely reset
before setting this bit.
Reserved
Buffer Empty: Rx Buffer Empty. There is no packet stored in the Rx
buffer ring.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
12
RTL8139DL
Datasheet
5.5. Interrupt Mask Register
(Offset 003Ch-003Dh, R/W)
This register masks the interrupts that can be generated from the Interrupt Status Register. A hardware reset
will clear all mask bits. Setting a mask bit allows the corresponding bit in the Interrupt Status Register to
cause an interrupt. The Interrupt Status Register bits are always set to 1 if the condition is present,
regardless of the state of the corresponding mask bit.
BitR/WSymbolDescription
15 R/W SERR
14 R/W TimeOut
13 R/W LenChg
12-7 - -
6 R/W FOVW
5 R/W PUN/LinkChg
4 R/W RXOVW
3 R/W TER
2 R/W TOK
1 R/W RER
0 R/W ROK
System Error Interrupt: 1 => Enable, 0 => Disable.
This register indicates the source of an interrupt when the INTA pin goes active. Enabling the
corresponding bits in the Interrupt Mask Register (IMR) allows bits in this register to produce an interrupt.
When an interrupt is active, one of more bits in this register are set to a “1”. The interrupt Status Register
reflects all current pending interrupts, regardless of the state of the corresponding mask bit in the IMR.
Reading the ISR clears all interrupts. Writing to the ISR has no effect.
BitR/WSymbolDescription
15 R/W SERR
14 R/W TimeOut
13 R/W LenChg
12 - 7 - -
6 R/W FOVW
5 R/W PUN/LinkChg
4 R/W RXOVW
3 R/W TER
2 R/W TOK
1 R/W RER
System Error: Set to 1 when the RTL8139D(L) signals a system error
on the PCI bus.
Time Out: Set to 1 when the TCTR register reaches to the value of the
TimerInt register.
Cable Length Change: Cable length is changed after Receiver is enabled.
Reserved
Rx FIFO Overflow: Set when an overflow occurs on the Rx status FIFO.
Packet Underrun/Link Change: Set to 1 when CAPR is written but
Rx buffer is empty, or when link status is changed.
Rx Buffer Overflow: Set when receive (Rx) buffer ring storage
resources have been exhausted.
Transmit (Tx) Error: Indicates that a packet transmission was
aborted, due to excessive collisions, according to the TXRR's setting.
Transmit (Tx) OK: Indicates that a packet transmission is completed
successfully.
Receive (Rx) Error: Indicates that a packet has either CRC error or
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
13
RTL8139DL
f
BitR/WSymbolDescription
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.
Datasheet
5.7. Transmit Configuration Register
(Offset 0040h-0043h, R/W)
This register defines the Transmit Configuration for the RTL8139D(L). It controls such functions as
Loopback, Heartbeat, Auto Transmit Padding, programmable Interframe Gap, Fill and Drain Thresholds,
and maximum DMA burst size.
BitR/WSymbolDescription
31 - -
30-26 R HWVERID_A
25-24 R/W IFG1, 0
23-22 R HWVERID_B
21-19 - -
18, 17 R/W LBK1, LBK0
Reserved
Hardware Version ID A:
Bit30 Bit29 Bit28 Bit27 Bit26 Bit23 Bit22
RTL8139 1 1 0 0 0 0 0
RTL8139A 1 1 1 0 0 0 0
RTL8139A-G1 1 1 0 1 0 0
RTL8139B 1 1 1 1 0 0 0
RTL8130 1 1 1 1 0 0 0
RTL8139C 1 1 1 0 1 0 0
RTL8100 1 1 1 1 0 1 0
RTL8100B/
8139D
RTL8139C+ 1 1 1 0 1 1 0
RTL8101 1 1 1 0 1 1 1
Reserved Other combination
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
Hardware Version ID B
Reserved
Loopback test: There will be no packet on the TX+/- lines under the
Loopback test condition. The loopback function must be independent o
the link state.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
14
Bit R/W Symbol Description
16 R/W CRC
15-11 - -
10-8 R/W MXDMA2, 1, 0
7-4 R/W TXRR
3-1 - -
0 W CLRABT
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.
Reserved
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
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.
Reserved
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.
RTL8139DL
Datasheet
5.8. Receive Configuration Register
(Offset 0044h-0047h, R/W)
This register is used to set the receive configuration for the RTL8139D(L). Receive properties such as
accepting error packets, runt packets, setting the receive drain threshold etc. are controlled here.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Reserved
Early Rx threshold bits: These bits are used to select the Rx threshold
multiplier of the whole packet that has been transferred to the system
buffer in early mode when the frame protocol is under the
RTL8139D(L)'s definition.
0000 = no early rx threshold 0001 = 1/16
0010 = 2/16 0011 = 3/16
0100 = 4/16 0101 = 5/16
0110 = 6/16 0111 = 7/16
1000 = 8/16 1001 = 9/16
1010 = 10/16 1011 = 11/16
1100 = 12/16 1101 = 13/16
Track ID: JATR-1076-21 Rev. 1.2
15
Bit R/W Symbol Description
1110 = 14/16 1111 = 15/16
RTL8139DL
Datasheet
23-18 - -
17 R/W MulERINT
16 R/W RER8 The RTL8139D(L) receives the error packet whose length is larger than
15-13 R/W RXFTH2, 1, 0
12-11 R/W RBLEN1, 0
10-8 R/W MXDMA2, 1, 0
7 R/W WRAP When set to 0: The RTL8139D(L) will transfer the rest of the packet
Reserved
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]>.
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.
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.
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
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
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
Track ID: JATR-1076-21 Rev. 1.2
16
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 - 5 R/W AER
4 R/W AR
3 R/W AB
2 R/W AM
1 R/W APM
0 R/W AAP
Reserved
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.
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.
Accept Broadcast packets: Set to 1 to accept, 0 to reject.
Accept Multicast packets: Set to 1 to accept, 0 to reject.
Accept Physical Match packets: Set to 1 to accept, 0 to reject.
Accept All Packets: Set to 1 to accept all packets with a physical
destination address, 0 to reject.
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
17
RTL8139DL
Datasheet
5.9. 9346CR: 93C46 Command Register
(Offset 0050h, R/W)
This register is used for issuing commands to the RTL8139D(L). These commands are issued by setting the
corresponding bits for the function. A warm software reset along with individual reset and enable/disable
for transmitter and receiver are provided as well.
Bit R/W Symbol Description
7-6 R/W EEM1-0
4-5 - -
3 R/W EECS
2 R/W EESK
1 R/W EEDI
0 R EEDO
Operating Mode: These 2 bits select the RTL8139D(L) operating
mode.
EEM1 EEM0 Operating Mode
0 0 Normal (RTL8139D(L) network/host communication
mode)
0 1 Auto-load: Entering this mode will make the
RTL8139D(L) load the contents of 93C46 like when the
RSTB signal is asserted. This auto-load operation will
take about 2 ms. After it is completed, the RTL8139D(L)
goes back to the normal mode automatically (EEM1 =
EEM0 = 0) and all the other registers are reset to default
values.
1 0 93C46 programming: In this mode, both network and host
bus master operations are disabled. The 93C46 can be
directly accessed via bit3-0 which now reflect the states of
EECS, EESK, EEDI, & EEDO pins respectively.
1 1 Config register write enable: Before writing to CONFIG0,
1, 3, 4 registers, and bit13, 12, 8 of BMCR(offset
62h-63h), the RTL8139D(L) must be placed in this mode.
This will prevent RTL8139D(L)'s configurations from
accidental change.
Reserved
These bits reflect the state of EECS, EESK, EEDI & EEDO pins in
auto-load or 93C46 programming mode.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
18
5.10. CONFIG 0: Configuration Register 0
(Offset 0051h, R/W)
Bit R/W Symbol Description
7 R SCR
6 R PCS
5 R T10
4-3 R PL1, PL0
2-0 R BS2, BS1, BS0
Scrambler Mode: Always 0.
PCS Mode: Always 0.
10Mbps Mode: Always 0.
Select 10Mbps medium type: Always (PL1, PL0) = (1, 0)
Select Boot ROM size (Autoloaded from EEPROM)
RTL8139DL
Datasheet
BS2 BS1 BS0 Description
0 0 0 No Boot ROM
0 0 1 8K Boot ROM
0 1 0 16K Boot ROM
0 1 1 32K Boot ROM
1 0 0 64K Boot ROM
1 0 1 128K Boot ROM
1 1 0 unused
1 1 1 unused
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
19
5.11. CONFIG 1: Configuration Register 1
(Offset 0052h, R/W)
Bit R/W Symbol Description
7-6 R/W LEDS1-0 Refer to LED PIN definition. These bits initial value come from 93C46.
5 R/W DVRLOAD
4 R/W LWACT
3 R MEMMAP
2 R IOMAP
1 R/W VPD
0 R/W PMEn
Driver Load: Software may use this bit to make sure that the driver has been
loaded. Writing 1 is 1. Writing 0 is 0. When the command register bits IOEN,
MEMEN, and BMEN of the PCI configuration space are written, the
RTL8139D(L) will clear this bit automatically.
LWAKE active mode: The LWACT bit and LWPTN bit in CONFIG4 register
are used to program the LWAKE pin’s output signal. According to the
combination of these two bits, there may be 4 choices of LWAKE signal, i.e.,
active high, active low, positive (high) pulse, and negative (low) pulse. The
output pulse width is about 150ms.
The default value of each of these two bits is 0, i.e., the default output signal of
LWAKE pin is an active high signal.
0 Active high* Active low
* Default value.
Memory Mapping: The operational registers are mapped into PCI memory space.
I/O Mapping: The operational registers are mapped into PCI I/O space.
Set to enable Vital Product Data: The VPD data is stored in 93C46 from within
offset 40h-7Fh.
Power Management Enable:
Writable only when 93C46CR register EEM1=EEM0=1
Let A denote the New_Cap bit (bit 4 of the Status Register) in the PCI
Configuration space offset 06H.
Let B denote the Cap_Ptr register in the PCI Configuration space offset 34H.
Let C denote the Cap_ID (power management) register in the PCI Configuration
space offset 50H.
Let D denote the power management registers in the PCI Configuration space
offset from 52H to 57H.
Let E denote the Next_Ptr (power management) register in the PCI Configuration
space offset 51H.
LWAKE output
LWPTN
LWACT
0 1
1 Positive pulse Negative pulse
RTL8139DL
Datasheet
PMEn Description
0 A=B=C=E=0, D not valid
1 A=1, B=50h, C=01h, D valid, E=0
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
20
RTL8139DL
Datasheet
5.12. Media Status Register
(Offset 0058h, R/W)
This register allows configuration of device and PHY options, and provides PHY status information.
Bit R/W Symbol Description
7 R/W TXFCE/
LdTXFCE
Tx Flow Control Enable: The flow control is valid in full-duplex
mode only. This register’s default value comes from 93C46.
6 R/W RXFCE
5 - 4 R Aux_Status
3 R SPEED_10
2 R LINKB Inverse of Link status. 0 = Link OK. 1 = Link Fail.
1 R TXPF
0 R RXPF
RTL8139D(L) Remote TXFCE/LdTXFCE
ANE = 1 NWAY FLY mode R/O
ANE = 1 NWAY mode only R/W
ANE = 1 No NWAY R/W
ANE = 0 &
full-duplex mode
ANE = 0 &
half-duplex mode
NWAY FLY mode: NWAY with flow control capability
NWAY mode only: NWAY without flow control capability
RX Flow control Enable: The flow control is enabled in full-duplex
mode only. The default value comes from 93C46.
Reserved
Aux. Power present Status:
1: The Aux. Power is present.
0: The Aux. Power is absent.
The value of this bit is fixed after each PCI reset.
Speed: Set, when current media is 10 Mbps mode. Reset, when current
media is 100 Mbps mode.
Transmit Pause Flag: Set, when RTL8139D(L) sends pause packet.
Reset, when RTL8139D(L) sends a timer done packet.
Receive Pause Flag: Set, when RTL8139D(L) is in backoff state
because a pause packet was received. Reset, when pause state is clear.
- R/W
- invalid
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
21
5.13. CONFIG 3: Configuration Register3
(Offset 0059h, R/W)
Bit R/W Symbol Description
7 R GNTSel
6 R/W PARM_En
5 R/W Magic
4 R/W LinkUp
3 - 2 R CLKRUN_En
1 - 0 R FBtBEn
Gnt Select: Select the Frame’s asserted time after the Grant signal has been
asserted. The Frame and Grant are the PCI signals.
0: No delay
1: delay one clock from GNT assertion.
Parameter Enable: (Used in 100Mbps mode only)
This set to 0 and the 9346CR register EEM1=EEM0=1 will enable the PHY1_PARM,
PHY2_PARM, and TW_PARM registers to be written via software.
This set to 1 will allow parameters to be auto-loaded from the 93C46 and
disable writing to the PHY1_PARM, PHY2_PARM and TW_PARM
registers via software.
The PHY1_PARM and PHY2_PARM can be auto-loaded from the
EEPROM in this mode. The parameter auto-load process is executed every
time the Link is OK in 100Mbps mode.
Magic Packet: This bit is valid when the PWEn bit of the CONFIG1
register is set. The RTL8139D(L) will assert the PMEB signal to wakeup the
operating system when the Magic Packet is received.
Once the RTL8139D(L) has been enabled for Magic Packet wakeup and
has been put into adequate state, it scans all incoming packets addressed to
the node for a specific data sequence, which indicates to the controller that
this is a Magic Packet frame. A Magic Packet frame must also meet the basic
requirements of:
Destination address + Source address + data + CRC
The destination address may be the node ID of the receiving station or a
multicast address, which includes the broadcast address.
The specific sequence consists of 16 duplications of 6 byte ID registers,
with no breaks or interrupts. This sequence can be located anywhere within
the packet, but must be preceded by a synchronization stream, 6 bytes of
FFh. The device will also accept a multicast address, as long as the 16
duplications of the IEEE address match the address of the ID registers.
If the Node ID is 11h 22h 33h 44h 55h 66h, then the magic frame’s format
is similar to the following:
Destination address + source address + MISC + FF FF FF FF FF FF +
MISC + 11 22 33 44 55 66 + 11 22 33 44 55 66 + 11 22 33 44 55 66 + 11 22
33 44 55 66 + 11 22 33 44 55 66 + 11 22 33 44 55 66 + 11 22 33 44 55 66 +
11 22 33 44 55 66 + 11 22 33 44 55 66 + 11 22 33 44 55 66 + 11 22 33 44 55
66 + 11 22 33 44 55 66 + 11 22 33 44 55 66 + 11 22 33 44 55 66 + 11 22 33
44 55 66 + 11 22 33 44 55 66 + MISC + CRC
Link Up: This bit is valid when the PWEn bit of CONFIG1 register is set.
The RTL8139D(L), in adequate power state, will assert the PMEB signal to
wakeup the operating system when the cable connection is re-established.
Reserved
CLKRUN Enable:
Set to 0 to disable CLKRUN
Set to 1 to enable CLKRUN
Reserved
Fast Back to Back Enable: Set to 1 to enable Fast Back to Back.
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
22
5.14. CONFIG 4: Configuration Register4
(Offset 005Ah, R/W)
Bit R/W Symbol Description
7 R/W RxFIFOAutoClr Set to 1, the RTL8139D(L) will clear the Rx FIFO overflow
automatically.
6 R/W AnaOff
5 R/W LongWF
4 R/W LWPME
3 - 2 R/W LWPTN
1 - 0 R/W PBWakeup
Analog Power Off: This bit can not be auto-loaded from EEPROM
(93C46).
1: Turn off the analog power of the RTL8139D(L) internally.
0: Normal working state. This is also power-on default value.
Long Wake-up Frame: The initial value comes from EEPROM
autoload.
Set to 1: The RTL8139D(L) supports up to 5 wake-up frames, each
with 16-bit CRC algorithm for MS Wakeup Frame, the low byte of
16-bit CRC should be placed at the correspondent CRC register, and
the high byte of 16-bit CRC should be placed at the correspondent
LSBCRC register. The wake-up frame 0 and 1 are the same as above,
except that the masked bytes start from offset 0 to 63. The wake-up
frame 2 and 3 are merged into one long wake-up frame respectively
with masked bytes selected from offset 0 to 127. The wake-up frame 4
and 5, 6 and 7 are merged respectively into another 2 long wake-up
frames. Refer to 7.4 PCI Power Management Functions, page 41 for a
detailed description.
Set to 0: The RTL8139D(L) supports up to 8 wake-up frames, each
with masked bytes selected from offset 12 to 75.
LANWAKE vs PMEB:
Set to 1: The LWAKE can only be asserted when the PMEB is
asserted and the ISOLATEB is low.
Set to 0: The LWAKE and PMEB are asserted at the same time.
Reserved
LWAKE pattern: Please refer to LWACT bit in CONFIG1 register.
Reserved
Pre-Boot Wakeup: The initial value comes from EEPROM autoload.
1: Pre-Boot Wakeup disabled. (suitable for CardBus and MiniPCI
applications)
0: Pre-Boot Wakeup enabled.
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
23
RTL8139DL
Datasheet
5.15. Multiple Interrupt Select Register
(Offset 005Ch-005Dh, R/W)
If the received packet data is not a familiar protocol (IPX, IP, NDIS, etc.) to the RTL8139D(L),
RCR<ERTH[3:0]> won't be used to transfer data in early mode. This register will be written to the received
data length in order to make an early Rx interrupt for the unfamiliar protocol.
BitR/WSymbolDescription
15-12 - -
11-0 R/W MISR11-0
Note: The above is true when MulERINT=0 (bit17, RCR). When MulERINT=1, any received packet
invokes early interrupt according to the MISR[11:0] setting in early mode.
Reserved
Multiple Interrupt Select: Indicates that the RTL8139D(L) makes an
rx interrupt after RTL8139D(L) has transferred the byte data into the
system memory. If the value of these bits is zero, there will be no early
interrupt as soon as the RTL8139D(L) prepares to execute the first PCI
transaction of the received data. Bit1, 0 must be zero.
The ERTH3-0 bits should not be set to 0 when the multiple interrupt
select register is used.
5.16. PCI Revision ID
(Offset 005Eh, R)
Bit R/W Symbol Description
7-0 R Revision ID The value in PCI Configuration Space offset 08h is 10h.
5.17. Transmit Status of All Descriptors (TSAD) Register
(Offset 0060h-0061h, R/W)
Bit R/W Symbol Description
15 R TOK3 TOK bit of Descriptor 3
14 R TOK2 TOK bit of Descriptor 2
13 R TOK1 TOK bit of Descriptor 1
12 R TOK0 TOK bit of Descriptor 0
11 R TUN3 TUN bit of Descriptor 3
10 R TUN2 TUN bit of Descriptor 2
9 R TUN1 TUN bit of Descriptor 1
8 R TUN0 TUN bit of Descriptor 0
7 R TABT3 TABT bit of Descriptor 3
6 R TABT2 TABT bit of Descriptor 2
5 R TABT1 TABT bit of Descriptor 1
4 R TABT0 TABT bit of Descriptor 0
3 R OWN3 OWN bit of Descriptor 3
2 R OWN2 OWN bit of Descriptor 2
1 R OWN1 OWN bit of Descriptor 1
0 R OWN0 OWN bit of Descriptor 0
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
24
RTL8139DL
Datasheet
5.18. Basic Mode Control Register
(Offset 0062h-0063h, R/W)
Bit Name Description/Usage Default/Attribute
15
14
13
12
11-10
9
8
7-0
Reset
- Reserved
Spd_Set
Auto Negotiation
Enable
(ANE)
- Reserved
Restart Auto
Negotiation
Duplex Mode
- Reserved
This bit sets the status and control registers of the PHY(register
0062-0074H) in a default state. This bit is self-clearing. 1 = software
reset; 0 = normal operation.
This bit sets the network speed. 1 = 100Mbps; 0 = 10Mbps. This bit‘s
initial value comes from 93C46.
This bit enables/disables the NWay auto-negotiation function.
Set to 1 to enable auto-negotiation, bit13 will be ignored.
Set to 0 disables auto-negotiation, bit13 and bit8 will determine the
link speed and the data transfer mode, respectively.
This bit‘s initial value comes from 93C46.
This bit allows the NWay auto-negotiation function to be reset.
1 = re-start auto-negotiation; 0 = normal operation.
This bit sets the duplex mode. 0 = normal operation ; 1 = full-duplex.
This bit‘s initial value comes from 93C46.
If bit12 = 1, read = status write = register value.
If bit12 = 0, read = write = register value.
0, RW
-
0, RW
0, RW
-
0, RW
0, RW
-
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
25
RTL8139DL
Datasheet
5.19. Basic Mode Status Register
(Offset 0064h-0065h, R)
Bit Name Description/Usage Default/Attribute
15
14
13
12
11
10-6
5
4
3
2
1
0
100Base-T4
100Base_TX_ FD
100BASE_TX_HD
10Base_T_FD
10_Base_T_HD
-
Auto Negotiation
Complete
Remote Fault
Auto Negotiation
Link Status
Jabber Detect
Extended
Capability
1 = enable 100Base-T4 support; 0 = suppress 100Base-T4 support. 0, RO
1 = enable 100Base-TX full duplex support;
0 = suppress 100Base-TX full duplex support.
1 = enable 100Base-TX half-duplex support;
0 = suppress 100Base-TX half-duplex support.
1 = enable 10Base-T full duplex support;
0 = suppress 10Base-T full duplex support.
1 = enable 10Base-T half-duplex support;
0 = suppress 10Base-T half-duplex support.
Reserved 1 = auto-negotiation process completed;
0 = auto-negotiation process not completed.
1 = remote fault condition detected (cleared on read);
0 = no remote fault condition detected.
1 = Link had not been experienced fail state.
0 = Link had been experienced fail state
1 = valid link established;
0 = no valid link established.
1 = jabber condition detected; 0 = no jabber condition detected. 0, RO
1 = extended register capability;
0 = basic register capability only.
1, RO
1, RO
1, RO
1, RO
0, RO
0, RO
1, RD
0, RO
1, RO
5.20. Auto-negotiation Advertisement Register
(Offset 0066h-0067h, R/W)
This register contains the advertised abilities of this device as they will be transmitted to its link partner
during Auto-negotiation.
Bit Name Description/Usage Default/Attribute
15
14
13
12-11
10
9
8
NP
ACK
RF
-
Pause
T4
TXFD
Next Page bit.
1 = transmitting the protocol specific data page;
0 = transmitting the primary capability data page
1 = acknowledge reception of link partner capability data word. 0, RO
1 = advertise remote fault detection capability;
0 = do not advertise remote fault detection capability.
Reserved 1 = flow control is supported by local node.
0 = flow control is not supported by local mode.
1 = 100Base-T4 is supported by local node;
0 = 100Base-T4 not supported by local node.
1 = 100Base-TX full duplex is supported by local node;
0 = 100Base-TX full duplex not supported by local node.
0, RO
0, RW
The default value
comes from
EEPROM, RO
0, RO
1, RW
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
26
RTL8139DL
Bit Name Description/Usage Default/Attribute
7
6
5
4-0
TX
10FD
10
Selector
1 = 100Base-TX is supported by local node;
0 = 100Base-TX not supported by local node.
1 = 10Base-T full duplex supported by local node;
0 = 10Base-T full duplex not supported by local node.
1 = 10Base-T is supported by local node;
0 = 10Base-T not supported by local node.
Binary encoded selector supported by this node. Currently only
CSMA/ CD <00001> is specified. No other protocols are supported.
Datasheet
1, RW
1, RW
1, RW
<00001>, RW
5.21. Auto-Negotiation Link Partner Ability Register
(Offset 0068h-0069h, R)
This register contains the advertised abilities of the Link Partner as received during Auto-negotiation. The
content changes after the successful Auto-negotiation if Next-pages are supported.
Bit Name Description/Usage Default/Attribute
15
14
13
12-11
10
9
8
7
6
5
4-0
NP
ACK
RF
-
Pause
T4
TXFD
TX
10FD
10
Selector
Next Page bit.
1 = transmitting the protocol specific data page;
0 = transmitting the primary capability data page.
1 = link partner acknowledges reception of local node’s capability
data word.
1 = link partner is indicating a remote fault. 0, RO
Reserved 1 = Flow control is supported by link partner,
0 = Flow control is not supported by link partner.
1 = 100Base-T4 is supported by link partner;
0 = 100Base-T4 not supported by link partner.
1 = 100Base-TX full duplex is supported by link partner;
0 = 100Base-TX full duplex not supported by link partner.
1 = 100Base-TX is supported by link partner;
0 = 100Base-TX not supported by link partner.
1 = 10Base-T full duplex is supported by link partner;
0 = 10Base-T full duplex not supported by link partner.
1 = 10Base-T is supported by link partner;
0 = 10Base-T not supported by link partner.
Link Partner's binary encoded node selector. Currently only
CSMA/ CD <00001> is specified.
0, RO
0, RO
0, RO
0, RO
0, RO
0, RO
0, RO
0, RO
<00000>, RO
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
27
RTL8139DL
Datasheet
5.22. Auto-negotiation Expansion Register
(Offset 006Ah-006Bh, R)
This register contains additional status for NWay auto-negotiation.
Bit Name Description/Usage Default/Attribute
15-5
4
3
2
1
0
LP_NW_ABLE
-
MLF
LP_NP_ABLE
NP_ABLE
PAGE_RX
Reserved, This bit is always set to 0. Status indicating if a multiple link fault has occurred.
1 = fault occurred; 0 = no fault occurred.
Status indicating if the link partner supports Next Page negotiation.
1 = supported; 0 = not supported.
This bit indicates if the local node is able to send additional Next
Pages.
This bit is set when a new Link Code Word Page has been received.
The bit is automatically cleared when the auto-negotiation link
partner’s ability register (register 5) is read by management.
1 = link partner supports NWay auto-negotiation. 0, RO
0, RO
0, RO
0, RO
0, RO
5.23. Disconnect Counter
(Offset 006Ch-006Dh, R)
Bit Name Description/Usage Default/Attribute
15-0
DCNT
This 16-bit counter increments by 1 for every disconnect event. It
rolls over when becomes full. It is cleared to zero by read
command.
h'[0000],
R
5.24. False Carrier Sense Counter
(Offset 006Eh-006Fh, R)
This counter provides information required to implement the “FalseCarriers” attribute within the MAU managed object class of
Clause 30 of IEEE 802.3u specification.
Bit Name Description/Usage Default/Attribute
15-0
FCSCNT
This 16-bit counter increments by 1 for each false carrier event. It is
cleared to zero by read command.
h'[0000],
R
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
28
RTL8139DL
Datasheet
5.25. NWay Test Register
(Offset 0070h-0071h, R/W)
Bit Name Description/Usage Default/Attribute
15-8
7
6-4
3
2
1
0
-
NWLPBK
-
ENNWLE
FLAGABD
FLAGPDF
FLAGLSC
Reserved 1 = set NWay to loopback mode. 0, RW
Reserved 1 = LED0 Pin indicates linkpulse 0, RW
1 = Auto-neg experienced ability detect state 0, RO
1 = Auto-neg experienced parallel detection fault state 0, RO
1 = Auto-neg experienced link status check state 0, RO
5.26. RX_ER Counter
(Offset 0072h-0073h, R)
Bit Name Description/Usage Default/Attribute
15-0
RXERCNT
This 16-bit counter increments by 1 for each valid packet received.
It is cleared to zero by a read command.
h'[0000],
R
5.27. CS Configuration Register
(Offset 0074h-0075h, R/W)
Bit Name Description/Usage Default/Attribute
15
14-10
9
8
7
6
5
4
3
2
1
0
Testfun
-
LD
HEART BEAT
JBEN
F_LINK_100
F_Connect
-
Con_status
Con_status_En
-
PASS_SCR
1 = Auto-neg speeds up internal timer 0,WO
Reserved Active low TPI link disable signal. When low, TPI still transmits
link pulses and TPI stays in good link state.
1 = HEART BEAT enable, 0 = HEART BEAT disable. HEART
BEAT function is only valid in 10Mbps mode.
1 = enable jabber function; 0 = disable jabber function 1, RW
Used to login force good link in 100Mbps for diagnostic purposes.
1 = DISABLE, 0 = ENABLE.
Assertion of this bit forces the disconnect function to be bypassed. 0, RW
Reserved This bit indicates the status of the connection. 1 = valid connected
link detected; 0 = disconnected link detected.
Assertion of this bit configures LED1 pin to indicate connection
status.
Reserved Bypass Scramble 0, RW
1, RW
1, RW
1, RW
0, RO
0, RW
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
29
RTL8139DL
Datasheet
5.28. Config5: Configuration Register 5
(Offset 00D8h, R/W)
This register, unlike other Config registers, is not protected by 93C46 Command register. I.e. there is no
need to enable Config register write prior to writing to Config5.
Bit R/W Symbol Description
7 - 6 R/W BWF
5 R/W MWF
4 R/W UWF
3 R/W FIFOAddrPtr
2 R/W LDPS
1 R/W LANWake
0 R/W PME_STS
¾Config5 register, offset D8h: (SYM_ERR register is changed to Config5, the function of SYM_ERR register is no longer
supported by RTL8139D(L).)
¾The 3 bits (bit2-0) are auto-loaded from EEPROM Config5 byte to RTL8139D(L) Config5 register.
Reserved
Broadcast Wakeup Frame:
1: Enable Broadcast Wakeup Frame with mask bytes of only DID
field = FF FF FF FF FF FF.
0: Default value. Disable Broadcast Wakeup Frame with mask bytes
of only DID field = FF FF FF FF FF FF.
The power-on default value of this bit is 0.
Multicast Wakeup Frame:
1: Enable Multicast Wakeup Frame with mask bytes of only DID
field, which is a multicast address.
0: Default value. Disable Multicast Wakeup Frame with mask bytes
of only DID field, which is a multicast address.
The power-on default value of this bit is 0.
Unicast Wakeup Frame:
1: Enable Unicast Wakeup Frame with mask bytes of only DID
field, which is its own physical address.
0: Default value. Disable Unicast Wakeup Frame with mask bytes of
only DID field, which is its own physical address.
The power-on default value of this bit is 0.
FIFO Address Pointer: (Realtek internal use only to test FIFO SRAM)
1: Both Rx and Tx FIFO address pointers are updated in descending
way from 1FFh and downwards. The initial FIFO address pointer is
1FFh.
0: (Power-on) default value. Both Rx and Tx FIFO address pointers
are updated in ascending way from 0 and upwards. The initial FIFO
address pointer is 0.
Note: This bit does not participate in EEPROM auto-load. The FIFO
address pointers can not be reset, except initial power-on.
The power-on default value of this bit is 0.
Link Down Power Saving mode:
1: Disable.
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.
LANWake signal enable/disable:
1: Enable LANWake signal.
0: Disable LANWake signal.
PME_Status bit: Always sticky/can be reset by PCI RST# and
software.
1: The PME_Status bit can be reset by PCI reset or by software.
0: The PME_Status bit can only be reset by software.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
30
RTL8139DL
Datasheet
6. EEPROM (93C46) Contents
The 93C46 is a 1K-bit EEPROM. Although it is addressed by words, we list its contents by bytes below for
convenience.
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.
BytesContentsDescription
00h 29h
01h 81h
02h-05h - Reserved. The RTL8139D(L) no longer supports autoload of Vender ID and Device ID.
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,
16h-17h PMC Reserved. Do not change this filed without Realtek approval.
18h PMCSR Reserved. Do not change this filed without Realtek approval.
19h CONFIG4 Reserved. Do not change this filed without Realtek approval.
1Ah-1Dh PHY1_PARM_U Reserved. Do not change this filed without Realtek approval.
1Eh PHY2_PARM_U Reserved. Do not change this filed without Realtek approval.
1Fh CONFIG_5 Do not change this filed without Realtek approval.
These 2 bytes contain the ID code word for the RTL8139D(L). The RTL8139D(L) will
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.
The default values of VID and DID are hex 10EC and 8139, respectively.
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.
ID to IDR0-IDR5 of RTL8139D(L)'s I/O registers.
Power Management Capabilities. PCI configuration space address 52h and 53h.
Power Management Control/Status. PCI configuration space address 55h.
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.
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
32
RTL8139DL
Datasheet
6.1. Summary of RTL8139D(L) EEPROM Registers
Offset Name TypeBit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
35
RTL8139DL
Datasheet
7.2. PCI Configuration Space Functions
The PCI configuration space is intended for configuration, initialization, and catastrophic error handling
functions. The functions of the RTL8139D(L)'s configuration space are described below.
VID: Vendor ID. This field will default to a value of 10ECh which is Realtek Semiconductor's PCI Vendor
ID.
DID: Device ID. This field will default to a value of 8139h.
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 -
9 FBTBEN
8 SERREN
7 ADSTEP
6 PERRSP
5 VGASNOO
P
4 MWIEN
3 SCYCEN
2 BMEN
1 MEMEN
0 IOEN
Reserved
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.
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> ).
Address/Data Stepping: Read as 0, write operation has no effect. The RTL8139D(L) never make
address/data stepping.
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).
VGA palette SNOOP: Read as 0, write operation has no effect.
Memory Write and Invalidate cycle Enable: Read as 0, write operation has no effect.
Special Cycle Enable: Read as 0, write operation has no effect. The RTL8139D(L) ignores all special
cycle operation.
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.
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.
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
Track ID: JATR-1076-21 Rev. 1.2
36
RTL8139DL
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
14 SSERR
13 RMABT
12 RTABT
11 STABT
10-9 DST1-0
8 DPD
7 FBBC
6 UDF
5 66MHz
4 NewCap
0-3 -
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.
Signaled System Error: When set indicates that the RTL8139D(L) asserted the system error pin,
SERRB. Writing a 1 clears this bit to 0.
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.
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.
Signaled Target Abort: Set to 1 whenever the RTL8139D(L) terminates a transaction with target abort.
Writing a 1 clears this bit to 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.
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.
Fast Back-To-Back Capable: Config3<FbtBEn>=0, Read as 0, write operation has no effect.
Config3<FbtBEn>=1, Read as 1.
User Definable Features Supported: Read as 0, write operation has no effect. The RTL8139D(L) does
not support UDF.
66 MHz Capable: Read as 0, write operation has no effect. The RTL8139D(L) has no 66MHz
capability.
New Capability: Config3<PMEn>=0, Read as 0, write operation has no effect. Config3<PMEn>=1,
Read as 1.
Reserved
Datasheet
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
Track ID: JATR-1076-21 Rev. 1.2
37
RTL8139DL
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.
HTR: Header Type Register
Reads will return a 0, writes are ignored.
BIST: Built-in Self Test
Reads will return a 0, writes are ignored.
IOAR: This register specifies the BASE IO address which is required to build an address map during configuration. It also
specifies the number of bytes required as well as an indication that it can be mapped into IO space.
Bit Symbol Description
31-8 IOAR31-8
7-2 IOSIZE
1 0 IOIN
MEMAR: This register specifies the base memory address for memory accesses to the RTL8139D(L) operational registers. This
register must be initialized prior to accessing any RTL8139D(L)'s register with memory access.
BASE IO Address: This is set by software to the Base IO address for the operational register map.
Size Indication: Read back as 0. This allows the PCI bridge to determine that the RTL8139D(L)
requires 256 bytes of IO space.
Reserved
IO Space Indicator: Read only. Set to 1 by the RTL8139D(L) to indicate that it is capable of being
mapped into IO space.
Datasheet
Bit Symbol Description
31-8 MEM31-8
7-4 MEMSIZE
3 MEMPF
2-1 MEMLOC
0 MEMIN
SVID: Subsystem Vendor ID. This field will be set to a value corresponding to PCI Subsystem Vendor ID in the external
EEPROM. If there is no EEPROM, this field will default to a value of 10ECh which is Realtek Semiconductor's PCI
Subsystem Vendor ID.
SMID: Subsystem ID. This field will be set to value corresponding to PCI Subsystem ID in the external EEPROM. If there is no
EEPROM, this field will default to a value of 8139h.
BMAR: This register specifies the base memory address for memory accesses to the Rtl8139D(L) operational registers. This
register must be initialized prior to accessing any Rtl8139D(L) 's register with memory access.
Base Memory Address: This is set by software to the base address for the operational register map.
Memory Size: These bits return 0, which indicates that the RTL8139D(L) requires 256 bytes of
Memory Space.
Memory Prefetchable: Read only. Set to 0 by the RTL8139D(L).
Memory Location Select: Read only. Set to 0 by the RTL8139D(L). This indicates that the base
register is 32-bit wide and can be placed anywhere in the 32-bit memory space.
Memory Space Indicator: Read only. Set to 0 by the RTL8139D(L) to indicate that it is capable of
being mapped into memory space.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
38
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:
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.
RTL8139DL
Datasheet
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
Track ID: JATR-1076-21 Rev. 1.2
39
RTL8139DL
Datasheet
7.3. Default Values after Power-on (RSTB Asserted)
PCI Configuration Space Table
No. Name Type Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
00h VID R 1 1 1 0 1 1 0 0
01h R 0 0 0 1 0 0 0 0
02h DID R 0 0 1 1 1 0 0 1
03h R 1 0 0 0 0 0 0 1
04h Command R 0 0 0 0 0 0 0 0
W - PERRSP - - - BMEN MEMENIOEN
05h R 0 0 0 0 0 0 0 0
W - - - - - - - SERREN
06h Status R 0 0 0 NewCap 0 0 0 0
07h R 0 0 0 0 0 0 1 0
W DPERR SSERR RMABT RTABT STABT - - DPD
08h Revision ID R 0 0 0 0 0 0 0 0
09h PIFR R 0 0 0 0 0 0 0 0
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
40
RTL8139DL
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
|
FFh
-
RESERVED(ALL 0)
Datasheet
7.4. PCI Power Management Functions
The RTL8139D(L) complies with ACPI (Rev 1.1), PCI Power Management (Rev 1.1), and Device Class
Power Management Reference Specification (V1.0a), such as to support OS Directed Power Management
(OSPM) environment. To support this, the RTL8139D(L) provides the following capabilities:
¾ The RTL8139D(L) can monitor the network for a Wakeup Frame, a Magic Packet, or a Link Change,
and notify the system via PME# when such a packet or event arrives. Then, the whole system can
restore to working state to process the incoming jobs.
¾ The RTL8139D(L) can be isolated from the PCI bus automatically with the auxiliary power circuit
when the PCI bus is in B3 state, i.e. the power on the PCI bus is removed. When the motherboard
includes a built-in RTL8139D(L) single-chip fast Ethernet controller, the RTL8139D(L) can be
disabled when needed by pulling the isolate pin low to 0V.
When the RTL8139D(L) is in power down mode (D1 ~ D3),
♦ The Rx state machine is stopped, and the RTL8139D(L) keeps monitoring the network for wakeup
event such Magic Packet, Wakeup Frame, and/or Link Change, in order to wake up the system.
When in power down mode, the RTL8139D(L) will not reflect the status of any incoming packet in
the ISR register and will not receive any packet into Rx FIFO.
♦ The FIFO status and the packets which are already received into Rx FIFO before entering into power
down mode, are kept by the RTL8139D(L) during power down mode
♦ The transmission is stopped. The action of PCI bus master mode is stopped, too. The Tx FIFO is
kept.
♦ After restoring to a D0 state, the PCI bus master mode continues to transfer the data, which is not yet
moved into Tx FIFO from the last break. The packet that was not transmitted completely last time is
transmitted again.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
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,
Datasheet
♦ 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
Track ID: JATR-1076-21 Rev. 1.2
42
The last masked byte
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.
z16-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.
RTL8139DL
**
of the received Wakeup Frame matches with the last masked byte** of the
Datasheet
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 D3
cold
.
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
Track ID: JATR-1076-21 Rev. 1.2
43
RTL8139DL
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.
The LWAKE signal is asserted according the following setting.
LWPME bit (bit4, CONFIG4):
0: The LWAKE is asserted whenever there is wakeup event occurs.
1: The LWAKE can only be asserted when the PMEB is asserted and the ISOLATEB is low.
Bit1 of DELAY byte(offset 1Fh, EEPROM):
0: LWAKE signal is disabled.
1: LWAKE signal is enabled
VPD (Vital Product Data)
Bit 31 of the Vital Product Data (VPD) is used to issue VPD read/write commands, and is also a flag used to
indicate whether the transfer of data between the VPD data register and the 93C46 is completed or not.
1. Write VPD register: (write data to 93C46)
Write the flag bit to a one (at the same time the VPD address is written). When the flag bit is set to zero
by the RTL8139D(L), the VPD data (all 4 bytes) has been transferred from the VPD data register to
93C46.
2. Read VPD register: (read data from 93C46)
Write the flag bit to a zero at the same time the VPD address is written). When the flag bit is set to one by
the RTL8139D(L), the VPD data (all 4 bytes) has been transferred from 93C46 to the VPD data register.
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
44
8. Block Diagram
RTL8139DL
Datasheet
PCI
Interface
2nd PCI
Device
MII
Interface
PHY
half/full
MAC
10/100
Switch
Logic
Power Control Logic
Interrupt
Control
Logic
PCI Interface + Register
FIFO
100M
5B 4B
Decoder
4B 5B
Encoder
EEPROM
Early Interrupt
Threshold
Register
Early Interrupt
Control Logic
Data
Alignment
Interface
FIFO
Control
Logic
Scrambler
LED Driver
Transmit/
Interface
Descrambler
Register
Packet Type
Packet Length
Receive
Logic
Discriminator
MII
Interface
RXD
RXC 25M
TXD
TXC 25M
10/100M Auto-negotiation
Control Logic
10M
TXC10
TXD10
RXC10
RXD10
Manchester coded
waveform
Data Recovery
10M Output waveform
shaping
Receive low pass filter
Transceiver
TXC 25M
TXD
RXC 25M
RXD
Serial to
Parrallel
MLT-3
to NRZI
Parrallel
to Serial
ck
data
Baseline
wander
Correction
TD+
Variable Current
Comparator
Slave
PLL
3 Level
Control
Voltage
3 Level
Driver
Peak
Detect
Adaptive
Equalizer
Master
PPL
25M
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Link pulse
45
TXO+
TXO -
RXIN+
RXIN-
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.
9.2. Receive Operation
The incoming packet is placed in the RTL8139D(L)'s Rx FIFO. Concurrently, the RTL8139D(L) performs
address filtering of multicast packets according to its hash algorithms. When the amount of data in the Rx
FIFO reaches the level defined in the Receive Configuration Register, the RTL8139D(L) requests the PCI
bus to begin transferring the data to the Rx buffer in PCI bus master mode.
9.3. Base Line Wander Compensation
The 8139D(L) is ANSI TP-PMD compliant and supports input and Base Line Wander (BLW)
compensation in 100Base-TX mode. The 8139D(L) does not require external attenuation circuitry at its
receive inputs, RD+/-. It accepts TP-PMD compliant waveforms directly, requiring only a 100Ω
termination and a 1:1 transformer.
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.
9.4. Line Quality Monitor
The line quality monitor function is available in 100Base-TX mode. It is possible to determine the amount
of Equalization being used by accessing certain test registers with the DSP engine. This provides a crude
indication of connected cable length. This function allows for a quick and simple verification of the line
quality in that any significant deviation from an expected register value (based on a known cable length)
would indicate that the signal quality has deviated from the expected nominal case.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
46
RTL8139DL
Datasheet
9.5. Clock Recovery Module
The Clock Recovery Module (CRM) is supported in 100Base-TX mode. The CRM accepts 125Mbps
MLT3 data from the equalizer. The DPLL locks onto the 125Mbps data stream and extracts a 125MHz
recovered clock. The extracted and synchronized clock and data are used as required by the synchronous
receive operations.
9.6. Loopback Operation
Loopback mode is normally used to verify that the logic operations up to the Ethernet cable function
correctly. In loopback mode for 100Mbps, the RTL8139D(L) takes frames from the transmit descriptor and
transmits them up to internal Twister logic.
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
Track ID: JATR-1076-21 Rev. 1.2
47
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.
The RTL8139D(L) reports a RSR<CRC> error in any of the following cases:
1. In 100Base-Tx mode, one of the following occurs:
a. An invalid symbol (4B/5B Table) is received in the middle of the frame.
RSR<ISE> bit also sets.
b. The frame does not end with the TR symbol pair.
9.10. Flow Control
The RTL8139D(L) supports IEEE802.3X flow control to improve performance in full-duplex mode. It
detects PAUSE packet to achieve flow control task.
9.10.1. Control Frame Transmission
When the RTL8139D(L) detects that its free receive buffer is less than 3K bytes, it sends a PAUSE packet
with pause_time(=FFFFh) to inform the source station to stop transmission for the specified period of
time. After the driver has processed the packets in the receive buffer and updated the boundary pointer, the
RTL8139D(L) sends the other PAUSE packet with pause_time(=0000h) to wake up the source station to
restart transmission.
9.10.2. Control Frame Reception
The RTL8139D(L) enters a back off state for a specified period of time when it receives a valid PAUSE
packet with pause_time(=n). If the PAUSE packet is received while the RTL8139D(L) is transmitting, the
RTL8139D(L) starts to back off after current transmission completes. The RTL8139D(L) is free to transmit
the next packets when it receives a valid PAUSE packet with pause_time(=0000h) or the backoff timer(=n*512 bit time) elapses.
Note: The PAUSE operation cannot be used to inhibit transmission of MAC Control frames (e.g. PAUSE
packet). The N-way flow control capability can be disabled, please refer to Section 6, EEPROM (93C46)
Contents for a detailed description.
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
48
9.11. LED Functions
9.11.1. 10/100Mbps Link Monitor
The Link Monitor senses the link integrity or if a station is down.
9.11.2. LED_RX
In 10/100 Mbps mode, the LED function is the same as the RTL8139C(L).
Power On
LED = Low
RTL8139DL
Datasheet
Receiving Packet?
Yes
LED = High for (100 +- 10) ms
LED = Low for (12 +- 2) ms
No
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
49
9.11.3. LED_TX
RTL8139DL
Power On
LED = Low
Datasheet
9.11.4. LED_TX+LED_RX
Transmitting Packet
Yes
LED = High for (100 +- 10) ms
LED = Low for (12 +- 2) ms
Power On
LED = Low
No
Tx or Rx Packet?
Yes
LED = High for (100 +- 10) ms
LED = Low for (12 +- 2) ms
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
No
Track ID: JATR-1076-21 Rev. 1.2
50
10. Application Diagram
RTL8139DL
Datasheet
RJ45
LED
EEPROM
REQB
GNTB
Magetics
CS/OE
BootROM
RTL8102L
Auxiliary Power
PCI INTERFACE
IDSEL
2nd PCI Device
INTA
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
51
RTL8139DL
Datasheet
11. Electrical Characteristics
11.1. Temperature Limit Ratings
Parameter Minimum Maximum Units
Storage temperature -55 +125
Operating temperature 0 70
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 I
VOL Maximum Low Level Output Voltage I
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 V
IOZ Tri-State Output Leakage Current V
ICC Average Operating Supply Current I
OH= -8mA
OL= 8mA
IN=VCC or
GND
OUT=VCC or
GND
OUT=
0.9 * Vcc Vcc V
0.1 * Vcc V
-1.0 1.0 uA
-10 10 uA
0mA, 330 mA
°C
°C
11.2.2. Supply Voltage Vdd25 = 2.3V min. to 2.7V max.
Symbol Parameter Conditions Minimum Maximum Units
VOH Minimum High Level Output Voltage I
VOL Maximum Low Level Output Voltage I
VIH Minimum High Level Input Voltage 0.5 * Vdd25 Vdd25+0.5 V
VIL Maximum Low Level Input Voltage -0.5 0.3 * Vdd25 V
IIN Input Current V
IOZ Tri-State Output Leakage Current V
I
Average Operating Supply Current I
dd25
OH= -8mA
OL= 8mA
IN=Vdd25 or
GND
OUT=Vdd25 or
GND
OUT=
0.9 * Vdd25 Vdd25 V
0.1 * Vdd25 V
-1.0 1.0 uA
-10 10 uA
0mA, 40 mA
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
52
11.3. AC Characteristics
11.3.1. PCI Bus Operation Timing
Target Read
RTL8139DL
Datasheet
Target Write
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
53
Configuration Read
RTL8139DL
Datasheet
Configuration Write
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
54
BUS Arbitration
RTL8139DL
Datasheet
Memory Read
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
55
Memory Write
RTL8139DL
Datasheet
Target Initiated Termination - Retry
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
56
Target Initiated Termination - Disconnect
RTL8139DL
Datasheet
Target Initiated Termination - Abort
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
57
Master Initiated Termination – Abort
Parity Operation - one example
RTL8139DL
Datasheet
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
Track ID: JATR-1076-21 Rev. 1.2
58
12. Mechanical Dimensions
12.1. QFP
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.
106.3 118.1 129.9 2.70
A
A1
A2
b
c
D
E
HD
HE
L
L1
Y
θ
Single Chip Multifunction 10/100 Ethernet Controller w/Power Management
4.3 20.1 35.8 0.11
102.4 112.2 122.0 2.60
7.1 11.8 16.5 0.18
1.6 5.9 10.2 0.04
541.3 551.2 561.0 13.75
777.6 787.4 797.2 19.75
19.7 25.6 31.5 0.50
726.4 740.2 753.9 18.45
962.6 976.4 990.2 24.45
39.4 47.2 55.1 1.00
88.6 94.5 104.3 2.25
- - 3.9 - - 0.10 SHT NO. 1 OF
0° - 12° 0° - 12°
3.00
0.51
2.85
0.30
0.15
14.00
20.00
0.65
18.80
24.80
1.20
2.40
3.30 3.Controlling dimension: Millimeter
0.91 4.General appearance spec. should be based on final visual
3.10 inspection spec.
0.42
0.26
14.25 TITLE : 100L QFP ( 14x20 mm**2 ) FOOTPRINT 4.8 mm
20.25 PACKAGE OUTLINE DRAWING
0.80 LEADFRAME MATERIAL:
19.15 APPROVE DWG NO.
25.15 REV NO.
1.40 SCALE
2.65 CHECK Ricardo Chen DATE
REALTEK SEMICONDUCTOR CORP.
Track ID: JATR-1076-21 Rev. 1.2
59
12.2. LQFP
RTL8139DL
Datasheet
Notes:
1.To be determined at seating plane -c-
2.Dimensions D
Symbol Dimension in inch Dimension in mm D
Min Nom Max Min Nom Max including mold mismatch.
A
A1
A2
b
b1
c
c1
D
D1
E
E1
L
L1
θ
θ 1
θ 2
θ 3
- - 0.067 - - 1.70 3.Dimension b does not include dambar protrusion.
0.000 0.004 0.008 0.00
0.051 0.055 0.059 1.30
0.006 0.009 0.011 0.15
0.006 0.008 0.010 0.15
0.004 - 0.008 0.09 - 0.20 6. A
0.004 - 0.006 0.09 - 0.16 to the lowest point of the package body.