SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
RTL8019AS
Realtek Full-Duplex Ethernet
Controller with Plug and Play
Function (RealPNP)
SPECIFICATION
REALTEK SEMI-CONDUCTOR CO., LTD.
HEAD OFFICE
NO. 2, INDUSTRY E. RD. IX, SCIENCE-BASED
INDUSTRIAL PARK, HSINCHU 30077, TAIWAN, R.O.C.
TEL:886-3-5780211 FAX:886-3-5776598
OFFICE
3F, NO. 56, WU-KUNG 6 RD.,
TAIPEI HSIEN, TAIWAN, R.O.C.
TEL: 886-2-22980098 FAX: 886-2-22980094, 22980097
8019AS.doc
2001-05-10
1
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
CONTENTS
1. FEATURES
2. GENERAL DESCRIPTION
3. PIN CONFIGURATION
4. PIN DESCRIPTION
4.1. Power Pins
4.2. ISA Bus Interface Pins
4.3. Memory Interface Pins (including BROM, EEPROM)
4.4. Medium Interface Pins
4.5. LED Output Pins
5. REGISTER DESCRIPTIONS
5.1. Group 1: NE2000 Registers
5.1.1. Register Table
5.1.2. Register Functions
5.1.2.1. NE2000 Compatible Registers
5.1.2.2. RTL8019AS Defined Registers
5.2. Group 2: Plug and Play (PnP) Registers
5.2.1. Card Control Registers
5.2.2. Logical Device Control Registers
5.2.3. Logical Device Configuration Registers
6. FUNCTIONAL DESCRIPTIONS
6.1. RTL8019AS Configuration Modes
6.2. Plug and Play
6.2.1. Initiation Key
6.2.2. Isolation Protocol
6.2.3. Plug and Play Isolation Sequence
6.2.4. Reading Resource Data
6.2.5. PnP auto detect mode
6.3. 9346 Contents
6.4. Boot ROM
6.5. LED Behaviors
6.6. Loopback Diagnostic Operation
6.6.1. Loopback Operation
6.6.2. To implement Loopback Test
7. Electrical Specification and Timings
7.1. Absolute Maximum Ratings
7.2. D.C. Characteristics
7.3. A.C. Timing Characteristics
8019AS.doc
2001-05-10
2
3
4
5
6
6
7
8
8
9
9
11
11
16
23
24
25
25
27
29
29
30
34
35
36
37
38
40
42
42
43
46
46
46
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
1. FEATURES
m 100-pin PQFP
m RTL8019 software compatible
m Supports PnP auto detect mode (RTL8019AS only)
m Compliant to Ethernet II and IEEE802.3 10Base5, 10Base2, 10BaseT
m Software compatible with NE2000 on both 8 and 16-bit slots
m Supports both jumper and jumperless modes
m Supports Microsoft‘s Plug and Play configuration for jumperless mode
m Supports Full-Duplex Ethernet function to double channel bandwidth
m Supports three level power down modes:
- Sleep
- Power down with internal clock running
- Power down with internal clock halted
m Built-in data prefetch function to improve performance
m Supports UTP, AUI & BNC auto-detect (RTL8019AS only)
m Supports auto polarity correction for 10BaseT
m Support 8 IRQ lines
m Supports 16 I/O base address options
and extra I/O address fully decode mode (RTL8019AS only)
m Supports 16K, 32K, 64K and 16K-page mode access to BROM (up to 256 pages with 16K
bytes/page)
m Supports BROM disable command to release memory after remote boot
m Supports flash memory read/write (RTL8019AS only)
m 16k byte SRAM built in (RTL8019AS only)
m Use 9346 (64*16-bit EEPROM) to store resource configurations and ID parameters
m Capable of programming blank 9346 on board for manufacturing convenience
m Support 4 diagnostic LED pins with programmable outputs
8019AS.doc
2001-05-10
3
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
2. General Description
The RTL8019AS is a highly integrated Ethernet Controller which offers a simple solution to
implement a Plug and Play NE2000 compatible adapter with full-duplex and power down features.
With the three level power down control features, the RTL8019AS is made to be an ideal choice of
the network device for a GREEN PC system. The full-duplex function enables simultaneously
transmission and reception on the twisted-pair link to a full-duplex Ethernet switching hub. This
feature not only increases the channel bandwidth from 10 to 20 Mbps but also avoids the
performance degrading problem due to the channel contention characteristics of the Ethernet
CSMA/CD protocol. The Microsoft's Plug and Play function can relieve the users from pains of
taking care the adapter's resource configurations such as IRQ, I/O, and memory address, etc.
However, for special applications not to be used as a Plug and Play compatible device, the
RTL8019AS also supports the jumper and proprietary jumperless options.
To offer a fully plug and play solution, the RTL8019AS provides the auto-detect capability
between the integrated 10BaseT transceiver, BNC and AUI interface. Besides, the 10BaseT
transceiver can automatically correct the polarity error on its receiving pair. Furthermore, 8 IRQ
lines and 16 I/O base address options are provided for grand resource configuration flexibility.
The RTL8019AS supports 16k, 32k & 64k byte BROM and fiash memory interface. It also offers
the page mode function which can support up to 4M-byte BROM within only 16k-byte system
memory space. Besides, the BROM disable command is provided to release the BROM memory
space for other system usage (e.g. EMM386, etc.) after the BROM program is loaded.
The RTL8019AS is built in with 16K-byte SRAM in a single chip. It is designed not only to
provide more friendly functions but also to save the effort of SRAM sourcing and inventory.
8019AS.doc
2001-05-10
4
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
3. PIN CONFIGURATION
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
BA21 [PNP]
BA20 [BS0]
BA19 [BS1]
BA18 [BS2]
VDD
BA17 [BS3]
BA16 [BS4]
BA15
BA14 [PL0]
BCSB
EECS
BD7 [PL1][EEDO]
BD6 [IRQS0][EEDI]
BD5 [IRQS1][EESK]
BD4 [IRQS2]
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
JP
AUI
LED2 [LED_TX]
LED1 [LED_RX] [LED_CRS]
LED0 [LED_COL] [LED_LINK]
LEDBNC
TPIN+
TPINVDD
RX+
RXCD+
CDGND
X2
BD3 [IOS0]
BD2 [IOS1]
GND
BD1 [IOS2]
BD0 [IOS3]
GND
SD15
SD14
VDD
SD13
SD12
SD11
SD10
SD9
SD8
IOCS16B [SLOT16]
INT7 [IRQ15]
INT6 [IRQ12]
INT5 [IRQ11]
INT4 [IRQ10]
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
X1
TX+
TXVDD
TPOUTTPOUT+
GND
SD7
SD6
SD5
SD4
SD3
SD2
SD1
SD0
IOCHRDY
AEN
RSTDRV
SMEMWB
SMEMRB
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
IOWB
IORB
GND
SA19
SA18
SA17
SA16
SA15
SA14
SA13
SA12
SA11
SA10
VDD
SA9
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
RTL8019AS
INT3 [IRQ5]
INT2 [IRQ4]
INT1 [IRQ3]
INT0 [IRQ2/9]
SA0
VDD
SA1
SA2
SA3
SA4
SA5
SA6
SA7
GND
SA8
8019AS.doc
2001-05-10
5
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
4. PIN DESCRIPTIONS
4.1. Power Pins
No.
Name
Type
Description
6, 17, 47, 57, 70,
89
VDD
P
+5V DC power
14, 28, 44, 52,
83, 86
GND
P
Ground
4.2. ISA Bus Interface Pins
No.
Name
Type
Descriptions
34
AEN
I
Address Enable. This ISA signal must be low for a valid I/O
command.
97-100, 1-4
INT7-0
O
Interrupt request lines which are mapped to IRQ15, IRQ12,
IRQ11, IRQ10, IRQ5, IRQ4, IRQ3, IRQ2/9 respectively.
Only one line is selected to reflect the interrupt requests at
one time. All other lines are tri-stated. The RTL8019AS also
uses these pins as inputs to monitor the actual state of the
corresponding interrupt lines on ISA bus. The result is
recorded in the INTR register, which may be used by software
to detect interrupt conflict.
35
IOCHRDY
O
This ISA signal is driven low to insert wait cycles to current
host read/write command.
96
IOCS16B
O
Upon power-on reset, this pin acts as an input named
SLOT16 to detect whether a 16-bit or 8-bit slot is in use. To
do this, it is connected to a pull-down resistor (about 27KW)
externally. At the falling edge of RSTDRV, the RTL8019AS
senses this pin's state. If it is sensed high, the adapter is
thought to be placed on a 16-bit slot where this pin is
connected to the host's IOCS16B pin, which is typically
pulled up by a 300W resistor on the mother board. If it is
sensed low, the adapter is thought to be placed on an 8-bit
slot where this pin is merely pulled low by the 27KW resistor.
After having latched the input state, this pin is switched as
the IOCS16B signal which is an open-drain output and is
driven low during a 16-bit host data transfer. It is decoded
from AEN and SA9-0.
[SLOT16]
29
IORB
I
Host I/O read command.
30
IOWB
I
Host I/O write command.
33
RSTDRV
I
High active hardware reset signal from the ISA bus. Pulses
with high level less than 800ns are ignored.
27-18, 1615, 13-7, 5
SA19-0
I
Host address bus. SA10 is added to implement the fully
decode of PnP ports, address 279h and A79h. In RTL8019,
SA10 is not decoded. In RTL8019AS, SA10 should be 0 for a
valid access to PnP ports.
87-88, 9095, 43-36
SD15-0
I/O
8019AS.doc
2001-05-10
Host data bus.
6
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
31
SMEMRB
I
Host memory read command.
32
SMEMWB
I
Host memory write command. This pin is added to decode the
write command of a flash memory.
4.3. Memory Interface Pins (including BROM, EEPROM)
No.
Name
Type
Description
75
BCSB
O
BROM chip select. Active low signal, asserted when
BROM is read. RTL8019AS drives this pin low when
SA19-14 matches the selected BROM memory base
address and either of the 2 conditions below meets:
(1) SMEMRB is low
(2) SMEMWB is low and RTL8019AS's flash memory
write function is enabled.
76
EECS
O
9346 chip select. Active high signal, asserted when 9346
is read/write.
66-69, 71-74
BA21-14
O
BROM address.
77-82, 84-85
BD7-0
I/O
BROM data bus.
[79]
[EESK]
O
9346 serial data clock
[78]
[EEDI]
O
9346 serial data input
[77]
[EEDO]
I
9346 serial data output
The following pins are defined for jumper options. Their
states are latched at the falling edge of RSTDRV, then
they are changed to serve as the SRAM bus. Each of
them is internally pulled down by a 100KW resistor.
Therefore, the input will be low when left open and
high when pulled up by a 10K resistor externally.
[66]
[PNP]
I
When it is high in jumperless mode (i.e. JP=low), the
RTL8019AS is forced into Plug and Play mode
regardless of the contents of 9346.
The following pins are don't care in jumperless mode
(JP=low).
[72-71, 69-67]
[BS4-0]
I
Select BROM size and base address.
[85-84, 82-81]
[IOS3-0]
I
Select I/O base address.
[77, 74]
[PL1-0]
I
Select network medium type.
[80-78]
[IRQS2-0]
I
Select one interrupt line among INT7-0.
65
JP
I
When high, this pin selects jumper mode. When low, it
selects jumperless modes (including RT jumperless and
Plug and Play).
After RTL8019AS latches all jumper status upon power on reset, these pins always* reflect the value of BPAGE
register directly in BROM page mode. In normal mode, BA16-21 are not used and BA14-15 act as:
BROM Size
16K
32K
64K
8019AS.doc
2001-05-10
BA14
high
SA14
SA14
7
BA15
high
high
SA15
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
*Note: RTL8019AS doesn't drive BA14-21 until the SMEMRB goes from high to low.
4.4. Medium Interface Pins
No.
Name
Type
Description
64
AUI
I
This input is used to detect the usage of an external MAU on
the AUI interface. The input should be driven low for
embedded BNC and high for external MAU. When the input
is high, RTL8019AS sets the AUI bit (bit5) in CONFIG0
and drives LEDBNC low to disable the BNC. If this pin is
not used, it should be connected to GND such that
RTL8019AS acts like RTL8019. Please refer to section
5.1.2.2. CONFIG0 for more details.
54,53
CD+,CD-
I
This AUI collision input pair carries the differential
collision input signal from the MAU.
56,55
RX+,RX-
I
This AUI receive input pair carries the differential receive
input signal from the MAU.
49,48
TX+,TX-
O
This AUI transmit output pair contains differential line
drivers which send Manchester encoded data to the MAU.
These outputs are source followers and require 270 ohm
pull-down resistors to GND.
59,58
TPIN+,
I
This TP input pair receives the 10 Mbits/s differential
Manchester encoded data from the twisted-pair wire.
O
This pair carries the differential TP transmit output. The
output Manchester encoded signals have been pre-distorted
to prevent overcharge on the twisted-pair media and thus
reduce jitter.
TPIN45,46
TPOUT+,
TPOUT-
50
X1
I
20Mhz crystal or external oscillator input.
51
X2
O
Crystal feedback output. This output is used in crystal
connection only. It must be left open when X1 is driven with
an external oscillator.
Name
Type
Description
4.5. LED Output Pins
No.
60
LEDBNC
O
This pin goes high when RTL8019AS's medium type is set
to 10Base2 mode or auto-detect mode with link test failure.
Otherwise, this pin is low. This pin can be used to control
the power of the DC convertor for CX MAU and connected
to an LED to indicate the used medium type.
61
LED0
O
When LEDS0 bit (in CONFIG3 register of RTL8019AS
Page3) is 0, this pin acts as LED_COL. When LEDS0=1, it
acts as LED_LINK.
8019AS.doc
2001-05-10
8
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
62,63
LED1,LED2
O
When LEDS1 bit (in CONFIG3 register of RTL8019AS
Page3) is 0, these 2 pins act as LED_RX & LED_TX
respectively. When LEDS1=1, these pins act as LED_CRS
& MCSB. Please refer to section 6.5 for details of the
lightening behavior of all LEDs.
5. Register Descriptions
The registers in RTL8019AS can be roughly divided into two groups by their address and functions
-- one for NE2000, the other for Plug and Play (PnP).
5.1. Group 1: NE2000 Registers
This group includes 4 pages of registers which are selected by bit PS0 & PS1 in the CR register.
Each page contains 16 registers. Besides those registers compatible with NE2000, the RTL8019AS
defines some registers for software configuration and feature enhancement.
5.1.1. Register Table
No (Hex)
Page0
[R]
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10-17
18-1F
[W]
Page1
[R/W]
Page2
[R]
CR
CLDA0
CLDA1
CR
PSTART
PSTOP
CR
PAR0
PAR1
BNRY
TSR
NCR
FIFO
BNRY
TPSR
TBCR0
TBCR1
PAR2
PAR3
PAR4
PAR5
ISR
CRDA0
CRDA1
ISR
RSAR0
RSAR1
RBCR0
CURR
MAR0
MAR1
MAR2
RBCR1
RCR
TCR
MAR3
MAR4
MAR5
RCR
TCR
MAR6
MAR7
DCR
IMR
8019ID0
8019ID1
RSR
CNTR0
CNTR1
DCR
CNTR2
IMR
Remote DMA Port
Reset Port
CR
PSTART
PSTOP
TPSR
-
Page3
[R]
[W]
CR
CR
9346CR
BPAGE
CONFIG0
CONFIG1
CONFIG2
CONFIG3
CSNSAV
INTR
CONFIG4
-
9346CR
BPAGE
CONFIG1
CONFIG2
CONFIG3
TEST
HLTCLK
FMWP
-
Notes: "-" denotes reserved. Registers with names typed in bold italic format are RTL8019AS
defined registers and are not supported in a standard NE2000 adapter.
8019AS.doc
2001-05-10
9
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
Page 0 (PS1=0, PS0=0)
No.
Name
Type
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
00H
01H
CR
CLDA0
PSTART
CLDA1
PSTOP
BNRY
TSR
TPSR
NCR
TBCR0
FIFO
TBCR1
ISR
CRDA0
RSAR0
CRDA1
RSAR1
8019ID0
RBCR0
8019ID1
RBCR1
RSR
RCR
CNTR0
TCR
CNTR1
DCR
CNTR2
IMR
R/W
R
W
R
W
R/W
R
W
R
W
R
W
R/W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
PS1
A7
A15
A15
A15
A15
OWC
A15
0
TBC7
D7
TBC15
RST
A7
A7
A15
A15
0
RBC7
0
RBC15
DFR
CNT7
CNT7
CNT7
-
PS0
A6
A14
A14
A14
A14
CDH
A14
0
TBC6
D6
TBC14
RDC
A6
A6
A14
A14
1
RBC6
1
RBC14
DIS
CNT6
CNT6
FT1
CNT6
RDCE
RD2
A5
A13
A13
A13
A13
0
A13
0
TBC5
D5
TBC13
CNT
A5
A5
A13
A13
0
RBC5
1
RBC13
PHY
MON
CNT5
CNT5
FT0
CNT5
CNTE
RD1
A4
A12
A12
A12
A12
CRS
A12
0
TBC4
D4
TBC12
OVW
A4
A4
A12
A12
1
RBC4
1
RBC12
MPA
PRO
CNT4
OFST
CNT4
ARM
CNT4
OVWE
RD0
A3
A11
A11
A11
A11
ABT
A11
NC3
TBC3
D3
TBC11
TXE
A3
A3
A11
A11
0
RBC3
0
RBC11
0
AM
CNT3
ATD
CNT3
LS
CNT3
TXEE
TXP
A2
A10
A10
A10
A10
COL
A10
NC2
TBC2
D2
TBC10
RXE
A2
A2
A10
A10
0
RBC2
0
RBC10
FAE
AB
CNT2
LB1
CNT2
LAS
CNT2
RXEE
STA
A1
A9
A9
A9
A9
A9
NC1
TBC1
D1
TBC9
PTX
A1
A1
A9
A9
0
RBC1
0
RBC9
CRC
AR
CNT1
LB0
CNT1
BOS
CNT1
PTXE
STP
A0
A8
A8
A8
A8
PTX
A8
NC0
TBC0
D0
TBC8
PRX
A0
A0
A8
A8
0
RBC0
0
RBC8
PRX
SEP
CNT0
CRC
CNT0
WTS
CNT0
PRXE
Bit 7
PS1
DA7
DA15
DA23
DA31
DA39
DA47
A15
FB7
FB15
FB23
FB31
FB39
FB47
FB55
FB63
Bit 6
PS0
DA6
DA14
DA22
DA30
DA38
DA46
A14
FB6
FB14
FB22
FB30
FB38
FB46
FB54
FB62
Bit 5
RD2
DA5
DA13
DA21
DA29
DA37
DA45
A13
FB5
FB13
FB21
FB29
FB37
FB45
FB53
FB61
Bit 4
RD1
DA4
DA12
DA20
DA28
DA36
DA44
A12
FB4
FB12
FB20
FB28
FB36
FB44
FB52
FB60
Bit 3
RD0
DA3
DA11
DA19
DA27
DA35
DA43
A11
FB3
FB11
FB19
FB27
FB35
FB43
FB51
FB59
Bit 2
TXP
DA2
DA10
DA18
DA26
DA34
DA42
A10
FB2
FB10
FB18
FB26
FB34
FB42
FB50
FB58
Bit 1
STA
DA1
DA9
DA17
DA25
DA33
DA41
A9
FB1
FB9
FB17
FB25
FB33
FB41
FB49
FB57
Bit 0
STP
DA0
DA8
DA16
DA24
DA32
DA40
A8
FB0
FB8
FB16
FB24
FB32
FB40
FB48
FB56
02H
03H
04H
05H
06H
07H
08H
09H
0AH
0BH
0CH
0DH
0EH
0FH
Bit 1
Bit 0
Page 1 (PS1=0, PS0=1)
No.
00H
01H
02H
03H
04H
05H
06H
07H
08H
09H
0AH
0BH
0CH
0DH
0EH
0FH
8019AS.doc
2001-05-10
Name
CR
PAR0
PAR1
PAR2
PAR3
PAR4
PAR5
CURR
MAR0
MAR1
MAR2
MAR3
MAR4
MAR5
MAR6
MAR7
Type
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
10
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
Page 2(PS1=1, PS0=0)
No.
00H
01H
02H
03H
04H
05H
|
0BH
0CH
0DH
0EH
0FH
Name
CR
PSTART
PSTOP
TPSR
-
RCR
TCR
DCR
IMR
Type
R/W
R
R
Bit 7
PS1
A15
A15
Bit 6
PS0
A14
A14
Bit 5
RD2
A13
A13
Bit 4
RD1
A12
A12
Bit 3
RD0
A11
A11
Bit 2
TXP
A10
A10
Bit 1
STA
A9
A9
Bit 0
STP
A8
A8
R
A15
A14
A13
A12
A11
A10
A9
A8
R
R
R
R
-
FT1
RDCE
MON
FT0
CNTE
PRO
OFST
ARM
OVWE
AM
ATD
LS
TXEE
AB
LB1
LAS
RXEE
AR
LB0
BOS
PTXE
SEP
CRC
WTS
PRXE
Page 3(PS1=1, PS0=1)
No.
00H
01H
Name
CR
9346CR
02H
03H
04H
BPAGE
CONFIG0
CONFIG1
05H
CONFIG2
06H
CONFIG3
07H
08H
09H
0AH
0BH
0CH
0DH
0EH
|
0FH
TEST
CSNSAV
HLTCLK
INTR
FMWP
CONFIG4
-
Type
R/W
R
W
R/W
R
R
W*
R
W*
R
W*
R/W
R
W
R
W*
R
-
Bit 7
Bit 6
Bit 5
PS1
PS0
RD2
EEM1
EEM0
EEM1
EEM0
BP7
BP6
BP5
VerID1 VerID0 AUI
IRQEN IRQS2
IRQS1
IRQEN PL1
PL0
BSELB
PL1
PL0
BSELB
PNP
FUDUP LEDS1
Reserved, Do not write
CSN7
CSN6
CSN5
HLT7
HLT6
HLT5
Reserved
INT7
INT6
INT5
Flash Memory Write Protect
Reserved
Bit 4
RD1
BP4
PNPJP
IRQS0
BS4
LEDS0
-
Bit 3
RD0
EECS
EECS
BP3
JP
IOS3
BS3
-
Bit 2
TXP
EESK
EESK
BP2
BNC
IOS2
BS2
SLEEP
SLEEP
Bit 1
STA
EEDI
EEDI
BP1
0
IOS1
BS1
PWRDN
PWRDN
Bit 0
STP
EEDO
BP0
0
IOS0
BS0
ACTIVEB
-
CSN4
HLT4
CSN3
HLT3
CSN2
HLT2
CSN1
HLT1
CNS0
HLT0
INT4
INT3
INT2
INT1
INT0
-
-
-
-
IOMS
Note: The registers marked with type='W*' can be written only if bits EEM1=EEM0=1.
5.1.2. Register Functions
5.1.2.1. NE2000 Compatible Registers
CR: Command Register (00H; Type=R/W)
This register is used to select register pages, enable or disable remote DMA operation and
issue commands.
8019AS.doc
2001-05-10
11
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
Bit
7, 6
Symbol
PS1, PS0
Description
PS1
0
0
1
1
5-3
PS0
0
1
0
1
Register Page
0
1
2
3
Remark
NE2000 compatible
NE2000 compatible
NE2000 compatible
RTL8019AS
Configuration
RD2-0
RD2
0
0
0
0
1
2
TXP
1
STA
0
STP
RD1
0
0
1
1
*
RD0
0
1
0
1
*
Function
Not allowed
Remote Read
Remote Write
Send Packet
Abort/Complete remote DMA
This bit must be set to transmit a packet. It is internally reset either after the
transmission is completed or aborted. Writing a 0 has no effect.
The STA bit controls nothing. It only reflects the value written to this bit. POWER
UP=0.
This bit is the STOP command. When it is set, no packets will be received or
transmitted. POWER UP=1.
STA
1
0
STP
0
1
Function
Start Command
Stop Command
ISR: Interrupt Status Register (07H; Type=R/W in Page0)
This register reflects the NIC status. The host reads it to determine the cause of an interrupt.
Individual bits are cleared by writing a "1" into the corresponding bit. It must be cleared
after power up.
Bit
7
Symbol
RST
6
5
4
3
RDC
CNT
OVW
TXE
2
RXE
1
0
PTX
PRX
8019AS.doc
2001-05-10
Description
This bit is set when NIC enters reset state and is cleared when a start command is
issued to the CR. It is also set when receive buffer overflows and is cleared when one or
more packets have been read from the buffer.
Set when remote DMA operation has been completed.
Set when MSB of one or more of the network tally counters has been set.
This bit is set when the receive buffer has been exhausted.
Transmit error bit is set when a packet transmission is aborted due to excessive
collisions.
This bit is set when a packet received with one or more of the following errors:
- CRC error
- Frame alignment error
-Missed packet
This bit indicates packet transmitted with no errors.
This bit indicates packet received with no errors.
12
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
IMR: Interrupt Mask Register (0FH; Type=W in Page0, Type=R in Page2)
All bits correspond to the bits in the ISR register. POWER UP=all 0s. Setting individual
bits will enable the corresponding interrupts.
DCR: Data Configuration Register (0EH; Type=W in Page0, Type=R in Page2)
Bit
7
6, 5
4
Symbol
FT1, FT0
ARM
3
LS
2
LAS
1
BOS
0
WTS
Description
Always 1
FIFO threshold select bit 1 and 0.
Auto-initialize Remote
0: Send Packet Command not executed.
1: Send Packet Command executed.
Loopback Select
0: Loopback mode selected. Bits 1 and 2 of the TCR must also be
programmed for Loopback operation.
1: Normal Operation
This bit must be set to zero. NIC only supports dual 16-bit DMA mode.
POWER UP =1
Byte Order Select (Not implement)
0: MS byte placed on MD15-8 and LS byte on MD7-0. (32xxx,80x86)
1: MS byte placed on MD7-0 and LS byte on MD15-8. (680x0)
Word Transfer Select
0: byte-wide DMA transfer
1: word-wide DMA transfer
TCR: Transmit Configuration Register (0DH; Type=W in Page0, Type=R in Page2)
Bit
7
6
5
4
3
Symbol
OFST
ATD
2, 1
LB1, LB0
Description
Always 1
Always 1
Always 1
Collision Offset Enable.
Auto Transmit Disable.
0: normal operation
1: reception of multicast address hashing to bit 62 disables transmitter,
reception of multicast address hashing to bit 63 enables transmitter.
LB1
0
0
1
1
0
CRC
LB0
0
1
0
1
Mode
0
1
2
3
The NIC CRC logic comprises a CRC generator for transmitter and a CRC checker for
receiver. This bit controls the activity of the CRC logic. If this bit set, CRC is inhibited by
transmitter. Otherwise CRC is appended by transmitter.
Conditions
CRC Bit
Mode
0
normal
1
normal
0
loopback
1
loopback
8019AS.doc
2001-05-10
Remark
Normal Operation
Internal Lookback
External Lookback
External Lookback
13
CRC Logic Activities
CRC Generator CRC Checker
enabled
enabled
disabled
enabled
enabled
disabled
disabled
enabled
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
TSR: Transmit Status Register (04H; Type=R in Page0)
This register indicates the status of a packet transmission.
Bit
7
Symbol
OWC
6
CDH
5
4
3
2
1
0
CRS
ABT
COL
PTX
RCR:
Bit
7
6
5
Description
Out of Window Collision. It is set when a collision is detected after a slot time (51.2us).
Transmissions are rescheduled as in normal collisions.
CD Heartbeat. The NIC watches for a collision signal (i.e. 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.
Always 1.
Carrier Sense lost bit is set when the carrier is lost during transmitting a packet.
It indicates the NIC aborted the transmission because of excessive collisions.
It indicates the transmission collided with some other station on the network.
Always 1
This bit indicates the transmission completes with no errors.
Receive Configuration Register (0CH; Type=W in Page0, Type=R in Page2)
Symbol
MON
4
PRO
3
AM
2
AB
1
AR
0
SEP
Description
Always 1
Always 1
When monitor mode bit is set, received packets are checked for address match, good CRC
and frame alignment but not buffered to memory. Otherwise, packets will be buffered to
memory.
If PRO=1, all packets with physical destination address accepted.
If PRO=0, physical destination address must match the node address programmed in
PAR0-5.
If AM=1, packets with multicast destination address are accepted.
If AM=0, packets with multicast destination address are rejected.
If AB=1, packets with broadcast destination address are accepted.
If AB=0, packets with broadcast destination address are rejected.
If AR=1, packets with length fewer than 64 bytes are accepted.
If AR=0, packets with length fewer than 64 bytes are rejected.
If SEP=1, packets with receive errors are accepted.
If SEP=0, packets with receive errors are rejected.
RSR: Receive Status Register (0CH; Type=R in Page0)
Bit
7
6
Symbol
DFR
DIS
5
PHY
4
MPA
3
2
FAE
1
CRC
0
PRX
Description
Defferring. Set when a carrier or a collision is detected.
Receiver Disabled. When the NIC enters the monitor mode, this bit is set and receiver is
disabled. Reset when receiver is enabled after leaving the monitor mode.
PHY bit is set when the received packet has a multicast or broadcast destination address. It
is reset when the received packet has a physical destination address.
Missed Packet bit is set when the incoming packet can not be accepted by NIC because of
a lack of receive buffer or if NIC is in monitor mode. Increment CNTR2 tally counter.
Always 1.
Frame Alignment Error bit reflects the incoming packet didn't end on a byte boundary
and CRC did not match at last byte boundary. Increment CNTR0 tally counter.
CRC error bit reflects packet received with CRC error. This bit will also be set for FAE
errors. Increment CNTR1 tally counter.
This bit indicates packet received with no errors.
CLDA0, 1: Current Local DMA Registers (01H & 02H; Type=R in Page0)
These two registers can be read to get the current local DMA address.
8019AS.doc
2001-05-10
14
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
PSTART:
Page Start Register (01H; Type=W in Page0, Type=R in Page 2)
The Page Start register sets the start page address of the receive buffer ring.
PSTOP:
Page Stop Register (02H; Type=W in Page0, Type=R in Page2)
The Page Stop register sets the stop page address of the receive buffer ring. In 8 bit
mode the PSTOP register should not exceed to 0x60, in 16 bit mode the PSTOP
register should not exceed to 0x80.
BNRY:
Boundary Register (03H; Type=R/W in Page0)
This register is used to prevent overwrite of the receive buffer ring. It is typically
used as a pointer indicating the last receive buffer page the host has read.
Transmit Page Start Register (04H; Type=W in Page0)
This register sets the start page address of the packet to the transmitted.
TPSR:
TBCR0,1: Transmit Byte Count Registers (05H & 06H; Type=W in Page0)
These two registers set the byte counts of the packet to be transmitted.
NCR:
Number of Collisions Register (05H; Type=R in Page0)
The register records the number of collisions a node experiences during a packet
transmission.
FIFO:
First In First Out Register (06H; Type=R in Page0)
This register allows the host to examine the contents of the FIFO after loopback.
CRDA0, 1: Current Remote DMA Address registers (08H & 09H; Type=R in Page0)
These two registers contain the current address of remote DMA.
RSAR0,1:
Remote Start Address Registers (08H & 09H; Type=W in Page0)
These two registers set the start address of remote DMA.
RBCR0,1: Remote Byte Count Registers (0AH & 0BH; Type=W in Page0)
These two registers se the data byte counts of remote DMA.
CNTR0:
Frame Alignment Error Tally Counter Register (0DH; Type=R in Page0)
CNTR1:
CRC Error Tally Counter Register (0EH; Type=R in Page0)
CNTR2:
Missed Packet Tally Counter Register (0FH; Type=R in Page0)
PAR0-5:
Physical Address Registers (01H - 06H; Type=R/W in Page1)
These registers contain my Ethernet node address and are used to compare the
destination adderss of incoming packets for acceptation or rejection.
CURR:
Current Page Register (07H; Type=R/W in Page1)
This register points to the page address of the first receive buffer page to be used for
a packet reception.
8019AS.doc
2001-05-10
15
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
MAR0-7:
Multicast Address Register (08H - 0FH; Type=R/W in Page1)
These registers provide filtering bits of multicast addresses hashed by the CRC logic.
5.1.2.2. RTL8019AS Defined Registers
Page 0 (PS1=0, PS0=0)
Two registers are defined to contain the RTL8019AS chip ID.
No.
0AH
0BH
Name
8019ID0
8019ID1
Type
R
R
Bit7-0
50H (ASCII code of "P")
70H (ASCII code of "p")
Page 3(PS1=1, PS0=1)
Page3 Power Up Values before loading jumper states and 9346 contents
No.
00H
01H
02H
03H
04H
05H
06H
07H
08H
09H
0AH
0BH
0CH
0DH
0EH
|
0FH
8019AS.doc
2001-05-10
Name
CR
9346CR
BPAGE
CONFIG0
CONFIG1
CONFIG2
CONFIG3
TEST
CSNSAV
HLTCLK
INTR
FMWP
CONFIG4
-
Type
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R
W
Bit 7
0
0
0
0
1
*
*
0
1
Bit 6
0
0
0
0
*
*
*
0
1
Bit 5
1
0
*
*
0
*
0
1
Bit 4
0
0
*
*
*
*
0
1
Bit 3
0
*
0
*
*
*
*
0
1
Bit 2
0
*
0
*
*
*
0
0
1
Bit 1
0
*
0
0
*
*
0
0
1
Bit 0
1
*
0
0
*
*
1
0
1
R
W
R
*
*
*
*
*
*
*
*
-
-
-
-
-
-
-
*
16
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
Page3 Content Descriptions
9346CR: 9346 Command Register (01H; Type=R/W except Bit0=R)
Bit
7-6
5-4
3
2
1
0
Symbol
EEM1-0
EECS
EESK
EEDI
EEDO
Description
These 2 bits select the RTL8019AS operating mode.
EEM1
0
0
EEM0
0
1
1
0
1
1
Operating Mode
Normal (DP8390 compatible)
Auto-load:
Entering this mode will make the RTL8019AS
load the contents of 9346 like when the
RSTDRV signal is asserted.
This auto-load operation will take about 2ms.
After it is completed, the RTL8019AS goes back
to the normal mode automatically
(EEM1=EEM0 =0) and the CR register is reset
to 21H.
9346 programming:
In this mode, both the local & remote DMA
operation of 8390 are disabled. The 9346 can be
directly accessed via bit3-0 which now reflect
the states of EECS, EESK,EEDI, & EEDO pins
respectively.
Config register write enable:
Before writing to the Page3 CONFIG1-3
registers, the RTL8019AS must be placed in this
mode. This will prevent RTL8019AS's
configurations from accidental change.
Not used.
These bits reflect the state of EECS, EESK, EEDI & EEDO pins in auto-load or
9346 programming mode.
BPAGE: BROM Page Register (02H; Type=R/W)
This register selects a BROM page to be read by the host. Totally it can select 256 pages with 16k
bytes per page. Thus the maximum BROM size is 256*16k=4M bytes.
8019AS.doc
2001-05-10
17
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
CONFIG0: RTL8019AS Configuration Register 0 (03H; Type=R except Bit[7:6]=R/W)
Bit
7-6
Symbol
VERID
Description
Version ID: These two bits are defined as below.
Bit7
1
0
0
5
AUI
4
3
PNPJP
JP
2
BNC
1-0
0
Bit6
1
0
0
Type
R
R
R/W
Mode
RTL8019
RTL8019A
RTL8019AS, these two bits are all "0"
when power on, but can be written in
RTL8019AS's config write enable
mode (EEM0=EEM1=1). Software uses
these differences to identify the chip.
This bit is set when external MAU is used on AUI interface. Therefore it is set when in
10Base5 mode or the AUI input pin is high.
This bit is set when PNP jumper pin is pulled high externally.
This bit reflects the state of JP input. It, when set, indicates the RTL8019 is in jumper
mode.
When set, this bit indicates that the RTL8019 is using the 10Base2 thin cable as its
networking medium. This bit will be set in the following 2 cases:
(1) PL1=PL0=0 (auto-detect) and link test fails
(2) PL1=PL0=1 (10 Base 2)
Always 0s.
The following table describes the behavior of bits and pins for cabling media.
Media Type
AUI Input
10Base5
10Base2
10BaseT
Link disabled
Auto detect
Link OK
Auto detect
Link fail
Auto detect
Link fail
8019AS.doc
2001-05-10
AUI Bit
BNC Bit
x
x
x
Selected
Media
AUI
BNC
UTP
0
1
0
LEDBNC
Output
L
H
L
Original BNC bit in 8019
(For reference only)
0
1
0
1
0
0
x
UTP
0
0
L
0
L
BNC
0
1
H
1
H
AUI
1
0
L
1
18
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
CONFIG1: RTL8019AS Configuration Register 1 (04H; Type=R except Bit7=R/W)
Bit
7
Symbol
IRQEN
6-4
IRQS2-0
Description
IRQ Enable:
This bit controls the state of the interrupt request line selected by IRQS2-0. If this bit
is set, the interrupt line goes high upon an interrupt request and will be low when
there is no interrupt request.
The interrupt line will be forced to tri-state if this bit is reset.
This bit's power-up initial value is 1 and may be modified by software if
EEM1=EEM0=1 in 9346CR register.
IRQ Select :
These 3 bits select one of INT7-0 to reflect the RTL8019AS's interrupt request status.
All unselected interrupt lines will be tri-stated.
IRQS2
0
0
0
0
1
1
1
1
3-0
IOS3-0
IRQS0
0
1
0
1
0
1
0
1
Interrupt Line
INT0
INT1
INT2
INT3
INT4
INT5
INT6
INT7
Assigned ISA IRQ
IRQ2/9
IRQ3
IRQ4
IRQ5
IRQ10
IRQ11
IRQ12
IRQ15
Select I/O base address.
IOS3
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
8019AS.doc
2001-05-10
IRQS1
0
0
1
1
0
0
1
1
IOS2
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
IOS1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
19
IOS0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
I/O Base
300H
320H
340H
360H
380H
3A0H
3C0H
3E0H
200H
220H
240H
260H
280H
2A0H
2C0H
2E0H
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
CONFIG2: RTL8019AS Configuration Register 2 (05H; Type=R except Bit[7:5]=R/W)
Bit
7-6
Symbol
PL1-0
Description
Select network medium types.
PL1
0
PL0
0
0
1
1
1
0
1
Medium Type
TP/CX auto-detect
(10BaseT link test is
enabled)
10BaseT with link test
disabled
10Base5
10Base2
5
BSELB
This bit, when set, forces the BROM disabled regardless of the contents of BS4-0. Its
power-up initial value is 0 and can be modified by software if EEM1=EEM0=1 in
9346CR register.
4-0
BS4-0
These bits select the BROM size & memory base address.
BS4
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
BS3
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
BS2
*
0
0
0
0
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
BS1
*
0
0
1
1
0
0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
BS0
*
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
BROM Base & size
Disabled
C000h, 32K
C800h, 32K
D000h, 32K
D800h, 32K
C000h, 64K
D000h, 64K
C000h, 16K
C400h, 16K
C800h, 16K
CC00h, 16K
D000h, 16K
D400h, 16K
D800h, 16K
DC00h, 16K
C000h, Page
C400h, Page
C800h, Page
CC00h, Page
D000h, Page
D400h, Page
D800h, Page
DC00h, Page
The RTL8019AS supports a special BROM mode: page mode. In page mode, the
BROM always occupies 16K-byte host memory space. However the actual BROM size
can be up to 4M bytes.
The BROM is divided into several 16K-byte pages. The power on boot page is set to
page 0 and the program in page 0 is responsible to select the other pages by the
BPAGE register and load their programs.
In page mode, bits BP7-0 of BPAGE register are mapped to the BA21-14 pins to select
the proper BROM page. In other modes, BA21-16 are not used and the BA15-14
outputs are shown in the following table.
8019AS.doc
2001-05-10
20
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
BROM size
16K
32K
64K
BA14
high
SA14
SA14
BA15
high
high
SA15
CONFIG3: RTL8019AS Configuration Register 3 (06H; Type=R except Bit[2:1]=R/W)
Bit
7
Symbol
PNP
6
FUDUP
5-4
LEDS1-0
Description
This bit is negligible in jumper mode. In jumperless mode it, when set, indicates the
RTL8019AS is operating in Plug and Play mode. This bit is set when the PNP pin is
high or the PNP bit in 9346 is set in jumperless mode.
When this bit is set, RTL8019AS is set to the full-duplex mode which enables
simultaneously transmission and reception on the twisted-pair link to a full-duplex
Ethernet switching hub. This feature not only increases the channel bandwidth from
10 to 20 Mbps but also avoids the performance degrading problem due to the channel
contention characteristics of the Ethernet CSMA/CD protocol.
These two bits select the outputs to LED2-0 pins.
LEDS0
0
1
LEDS1
0
1
3
2
SLEEP
1
PWRDN
8019AS.doc
2001-05-10
LED0 Pin
LED_COL
LED_LINK
LED1 Pin
LED_RX
LED_CRS
LED2 Pin
LED_TX
MCSB
Please refer to section 6.5 for the behavior of LEDs.
The MCSB signal is defined to put the local buffer SRAM into standby mode while
DMA is not in progress and thus save powers.
Reserved. Must not write a 1 to this bit.
This bit, when set, puts RTL8019AS into sleep mode.
In sleep mode, all LED signals (P.S. MCSB is not an LED signal) except LEDBNC
are forced high to turn off the LEDs. The RTL8019AS still handles the network
transmission and reception like in normal mode. The LEDBNC is not affected by this
bit.
This bit's power-up initial value is 0 and can be modified by software when
EEM1=EEM0=1.
This bit , when set, puts RTL8019AS into power down mode.
RTL8019AS supports two kinds of power down modes, which is selected by the
contents of the HLTCLK register:
(1) mode 1: power down with clock running
(2) mode 2: power down with clock halted
In both power down modes, the RTL8019AS's serial network interface and transceiver
are turned off. All network activities are ignored.
All LED signals except LEDBNC are forced high. The LEDBNC is forced low to
disable the DC convertor for coaxial transceiver.
In power down mode2, the RTL8019AS stops its internal clock for minimal power
consumption. Registers except HLTCLK are typically not accessible in this mode.
This bit's initial value comes from 9346 and can be modified if EEM1=EEM0=1 in
9346CR register.
21
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
0
ACTIVEB
This bit is the inverse of bit 0 in PnP Activate register (index 30H).
When RTL8019AS is deactivated, all BROM memory read and I/O accesses to the
Group1 registers except the HLTCLK register are ignored.
The HLTCLK register and PnP logic work the same as when RTL8019AS is active.
Note: The PnP logical device control register is the only way to activate
RTL8019AS. Therefore, the HLTCLK register is allowed to be written to prevent
RTL8019AS from dying when it is inactive in the clock-halted power-down mode.
CONFIG4 RTL8019AS Configuration Register 4 (0DH; Type=R)
Bit
7-1
0
Symbol
IOMS
Description
Reserved
When this bit is set, RTL8019AS uses SA15-SA0 to decode I/O address of NE2000
registers. When this bit is reset, RTL8019AS only decodes SA9-SA0 like the RTL8019
does. This mode is supported for applications which might require to fully decode I/O
address. This bit is read-only and comes from the CONFIG4 byte(Offset 03H) of
9346(refer to section 6.3).
CSNSAV: CSN Save Register (08H; Type=R)
This register is provided to backup the CSN assigned to the PnP CSN register.
HLTCLK: Halt Clock Register (09H; Type=W)
This is the only active one of Group1 registers when RTL8019AS is inactivated.
Writing to this register is invalid if RTL8019AS is not in power down mode. (i.e. If PWRDN bit in
CONFIG3 register is zero.)
The data written to this register determines the RTL8019AS's power down mode.
Data
52H (ASCII code of 'R')
48H (ASCII code of 'H')
Other values
Power Down Mode
Mode 1 - clock Running
Mode 2 - clock Halted
Ignored
INTR: Interrupt Register (0BH; Type=R)
This register reflects the ISA bus states of INT7-0 pins.
FMWP: Flash Memory Write Protect Register (0Ch, Type=W)
This register is write only. A write to this register is valid only when EEM0=EEM1=1. Sequentially
writing 2 bytes of data (57H then A8H) to this register enables the flash memory write operation.
Writing other data to this register will reset the write sequence and disable the flash write. All flash
memory write commands from host are ignored if the write operation is not enabled.
8019AS.doc
2001-05-10
22
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
5.2. Group 2: Plug and Play (PnP) Registers
Auto-configuration Ports
Three 8-bit I/O ports are defined for the PnP read/write operations. They are called Autoconfiguration ports and are listed below.
Port Name
ADDRESS
WRITE_DATA
READ_DATA
Type
W
W
R
Location
279H (Printer status port)
A79H (Printer status port + 800H)
Relocatable in range 200H to 3FFH
The Plug and Play registers are accessed by first writing the address of the desired register, which is
called "Register Index" in the following paragraph, to the ADDRESS port, followed by a read of
data from the READ_DATA port or a write of data to the WRITE_DATA port. A write to the
ADDRESS port may be followed by any number of WRITE_DATA or READ_DATA accesses to
the same indexed register without the need to write to the ADDRESS port before each access.
The Address port is also the write destination of the initiation key, which will be described later.
Plug and Play Registers
The Plug and Play registers may be divided into card registers and logical device registers.
According to the Plug and Play specification, a PnP card may contain more than one logical devices.
The card registers are unique for each card. However, the logical device registers are repeated for
each logical device on the card. Furthermore, all card registers are card control registers, while the
logical device registers can be divided into logical device control registers and configuration
registers. Although an RTL8019AS card contains only one logical device, the following paragraph
still depicts the Plug and Play registers by the same PnP categorizing method.
p.s. Those registers or bits not mentioned below are all read only with value=0.
8019AS.doc
2001-05-10
23
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
5.2.1. Card Control Registers
Index
00H
Name
Set RD_DATA port
Type
W
01H
Serial Isolation
R
02H
Config Control
W
Definition
The location of the READ_DATA port is determined by writing to
this register. Bits[7:0] become ISA I/O read port address bits[9:2].
Address bits[1:0] of the READ_DATA port are always 1.
A read to this register causes a PnP card in the Isolation state to
compare one bit of the card's serial ID. This process will be described
in more details in section 6.
Bit[0] - Reset command
Setting this bit will reset all logical devices and restore configuration
registers to their power-up values.
The CSN is preserved.
Bit[1] - Wait for Key command
Setting this bit makes the PnP card return to the
Wait for Key state. The CSN is preserved.
Bit[2] - PnP Reset CSN command
Setting this bit will reset the card's CSN to 0.
Both the CSN (index 06H) and CSNSAV (index F5H) registers are
reset.
03H
Wake[CSN]
W
04H
Resource Data
R
05H
Status
R
06H
Card Select Number
(CSN)
07H
Logical Device
Number
8019AS.doc
2001-05-10
R/W
R
Note that the hardware will automatically clear the bits and there is
no need for software to clear them.
A write to this register will cause all cards that have a CSN that
matches the write data[7:0] to go from the Sleep state to either the
Isolation state if the write data for this command is zero or the
Config state if the write data is not zero.
A read from this register reads the next byte of resource data. The
Status register must be polled until bit[0] is set before this register
may be read.
Bit[0] when set indicates it is okay to read the next data byte from the
Resource Data register.
A write to this register sets a card's CSN. The CSN is a value
uniquely assigned to each ISA PnP card after the serial identification
process so that each card may be individually selected during a
Wake[CSN] command. The CSN value written to this register will
also be recorded to the CSNSAV register located at PnP register
index F5H and Group 1 Page3 offset 08H.
00H (Only one logical device in RTL8019AS).
24
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
5.2.2. Logical Device Control Registers
Index
30H
31H
Name
Activate
Type
R/W
I/O Range Check
R/W
Definition
For each logical device there is one Activate register that controls
whether or not the logical device is active on the ISA bus. Bit[0], if set,
activates the logical device. Before a logical device is activated, I/O
range check must be disabled.
This register is used to perform a conflict check on the I/O port range
programmed for use by a logical device.
Bit[1] - This bt, when set, enables I/O range check.
I/O range check is only valid when the logical device is inactive.
Bit[0] - If set, this bit forces the logical device to respond to I/O reads of
the logical device's assigned I/O range with a 55H when I/O range check
is in operation. If clear, the logical device drives AAH.
5.2.3. Logical Device Configuration Registers
Memory Configuration Registers
Index
40H
41H
42H
Name
BROM base address
bits[23:16]
BROM base address
bits[15:0]
Memory Control
Type
R/W
R/W
R
Definition
Bits[23:20] & bit[17] are read only with values=0.
All other bits are read/write bits.
Bits[13:8] are read only with values=0.
All other bits are read/write bits.
00H. (Only 8-bit operation is supported for BROM)
Note: The BROM size of RTL8019AS is determined by the 9346 contents but not the memory
configuration registers.
I/O Configuration Registers
Index
60H
Name
I/O base address bits[15:8]
Type
R/W
61H
I/O base address bits[7:0]
R/W
Definition
Bits[15:10] are read only with values=0.
All other bits are read/write bits.
Bits[4:0] are read only with values=0.
All other bits are read/write bits.
Interrupt Configuration Registers
Index
70H
8019AS.doc
2001-05-10
Name
IRQ level
Type
R/W
Definition
Read/write value indicating a selected interrupt level.
Bits[3:0] select which ISA interrupt level is used. One selects IRQ1, fifteen
selects IRQ15. IRQ0 is not a valid interrupt selection and represents no
interrupt selection.
25
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
71H
IRQ type
R
Read/Write value indicating which type of interrupt is used for the IRQ selected
above.
Bit[1] - Level, 1=high, 0=low
Bit[0] - Type, 1=level, 0=edge
For RTL8019AS, this register is read only with value=02H.
DMA Configuration Registers
Index
74H
75H
Name
DMA channel select 0
DMA channel select 1
Type
R
R
Definition
04H (indicating no DMA channel is needed)
04H (indicating no DMA channel is needed)
Vendor Defined Registers
Index
F0H
F1H
F2H
F3H
F4H
F5H
F6H
8019AS.doc
2001-05-10
Name
CONFIG0
CONFIG1
CONFIG2
CONFIG3
CSNSAV
Vendor Control
Type
R
R
R
R
R
W
Definition
Direct mapping of the Page3 CONFIG0 register.
Direct mapping of the Page3 CONFIG1 register.
Direct mapping of the Page3 CONFIG2 register.
Direct mapping of the Page3 CONFIG3 register.
Direct mapping of the Page3 CSNSAV register.
Bit[2] - RT Reset CSN command
Setting this bit will reset the card's CSN in the CSN register (index 06H)
to 0.
The CSNSAV register is not affected.
This bit is cleared by hardware automatically.
26
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
6. Functional Descriptions
6.1. RTL8019AS Configuration Modes
The RTL8019AS supports 3 configuration modes: jumper, RT jumperless, and PnP.
JP Pin
PnP Pin
H
H
L
H
L
L
L
L
L
9346 Content
PNP
ACTIVEB
x
x
x
1
0
a (a=0or1)
a (a=0or1)
x
Mode
Jumper
JP
1
PnP
PnP
RT jmpless
0
0
0
CONFIG0
PNPJP
1
0
1
0
0
CONFIG3
PNP
ACTIVEB
0
0
1
1
0
a
a
0
P.S. "x" denotes don't care.
The RTL8019AS's resource configuration informations such as I/O base address, BROM memory
base address, and interrupt request line, etc., are stored in the CONFIG3-0 registers in Group1
Page3 as well as the PnP logical device configuration registers. Their power-up default values may
come from the states of jumper pins in jumper mode or the contents of 9346 in PnP and RT
jumperless mode. Their values can be modified by software via the logical device configuration
registers in all 3 modes. The update values will be recorded to the CONFIG3-0 registers, too. This
new configuration is only valid temporarily and will be lost after an auto-load command, an active
RSTDRV, or PC power off . Permanent changes of configuration must be done by changing the
jumper states or the contents of 9346. Note that the BROM size can not be modified temporarily.
The Plug and Play logic can work in all the three configuration modes except that an RT defined
initiation key, named RT initiation key, should be used instead of the PnP initiation key. In other
words, the RT initiation key is supported in all configuration modes while the PnP initiation key is
only supported in the PnP mode. By using the RT initiation key, the software can put RTL8019AS
to the PnP Config state and access the logical device configuration registers even in the jumper and
RT jumperless modes.
Power up default ACTIVE state
In RTL8019, the ACTIVEB bit in 93C46 decides the power-up adapter status even in RT jumpless
mode. In the standard application when BROM is not enabled, the adapter should be power up
inactive in PnP mode and active in RT jumperless mode. However RTL8019's PnP jumper only
decides the jumperless mode. The adapter's "ACTIVE" status is not changed properly at the same
time when the user changes the PnP jumper state. This causes an application inconsistence when
PnP jumper is to be used.
In RTL8019AS, we change RTL8019's original specification into:
The ACTIVEB bit in 9346 is ignored when RTL8019AS is in jumper or RT jumperless mode.
The adapter's power-up status is always "ACTIVE" in RT jumperless mode. However, the
active status still can be changed via the PnP Activate register.
8019AS.doc
2001-05-10
27
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
The differences between the 3 configuration modes are shown in the following table.
Configuration Mode
Jumper
RT Jumperless
Plug and Play
Resource of Power-up Value
Jumper Pins
9346
9346
Supported Initiation Key
RT Initiation Key
RT Initiation Key
RT and PnP Initiation Key
Initial Values of CONFIG1-3 Registers after RSTDRV or Auto-load Command
CONFIG1
Mode
Jumper
RT Jumperless
Plug and Play
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
IRQEN IRQS2 IRQS1 IRQS0 IOS3
IOS2
1
jumper jumper jumper jumper jumper
1
9346
9346
9346
9346
9346
Bit 1
IOS1
jumper
9346
Bit 0
IOS0
jumper
9346
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
PL1
PL0 BSELB BS4
BS3
BS2
jumper jumper
0
jumper jumper jumper
9346
9346
0
9346
9346
9346
Bit 1
BS1
jumper
9346
Bit 0
BS0
jumper
9346
CONFIG2
Mode
Jumper
RT Jumperless
Plug and Play
CONFIG3
Mode
Jumper
RT Jumperless
Plug and Play
8019AS.doc
2001-05-10
Bit 7
PNP
0
0
1
Bit 6
Bit 5
Bit 4
FUDUP LEDS1 LEDS0
9346
9346
9346
9346
9346
9346
Bit 3
-
28
Bit 2
Bit 1
Bit 0
SLEEP PWRDN ACTIVEB
0
9346
9346
0
9346
9346
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
6.2. Plug and Play
6.2.1. Initiation Key
The Plug and Play logic is quiescent on power up and must be enabled by software. This is done by
a predefined series of writes (32 I/O writes) to the ADDRESS port, which is called the initiation
key. The write sequence is decoded by RTL8019AS. If the proper series of I/O writes is detected,
then the Plug and Play auto-configuration ports are enabled. The write sequence will be reset and
must be issued from the beginning if any data mismatch occurs. The exact sequence for the
initiation key is listed below in hexadecimal notation.
PnP Initiation Key
6A,
DF,
B0,
E8,
B5,
6F,
58,
74,
DA,
37,
2C,
3A,
ED,
1B,
16,
9D,
F6,
0D,
8B,
CE,
FB,
86,
45,
E7,
7D,
C3,
A2,
73,
BE,
61,
D1,
39
8D,
34,
51,
86,
46,
9A,
28,
43,
23,
4D,
94,
A1,
91,
26,
CA,
50
RT Initiation Key
DA,
48,
13,
65,
6D,
A4,
89,
32,
8019AS.doc
2001-05-10
36,
D2,
44,
19,
1B,
69,
A2,
0C,
29
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
6.2.2. Isolation Protocol
A simple algorithm is used to isolate each Plug and Play card. This algorithm uses the signals on the ISA bus
and requires lock-step operation between the Plug and Play hardware and the isolation software.
State
Isolation
Read from serial isolation register
yes
Get one bit from serial identifier
ID bit="1H"
Drive "55H"
on SD[7:0]
no
Leave SD [7:0]
in high-impedance
no
SD[1:0]="01"
yes
Wait for next read from serial isolation register
Drive
"AAH" on
SD[7:0]
Leave SD [7:0]
in high impedance
no
SD[1:0]="10"
After I/O read completes
fetch next ID bit from
serial identifier
no
yes
Read all 72 bits
from serial
identifier
ID=0
other card ID=1
State
Sleep
yes
One card
isolated
Figure 1. Plug and Play ISA Card Isolation Algorithm
8019AS.doc
2001-05-10
30
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
Serial Identifier
The key element of the Plug and Play isolation protocol is that each card contains a unique number,
named serial identifier. The serial identifier is a 72-bit unique, non-zero number composed of two
32-bit fields and an 8-bit checksum. The first 32-bit field is a vendor identifier. The other 32-bits
can be any value, for example, a serial number, part of a LAN address, or a static number, as long
as there will never be two cards in a single system with the same 64-bit number. The serial identifier
is accessed bit-serially by the isolation logic and is used to differentiate the cards.
Checksum
Serial Number
Vendor ID
Byte 0
Byte 3
Byte 2
Byte 1
Byte 0
Byte 3
Byte 2
Byte 1
Byte 0
7:0
7:0
7:0
7:0
7:0
7:0
7:0
7:0
7:0
Shift
Figure 2. Shifting of Serial Identifier
The shift order for all Plug and Play serial isolation and resource data is defined as bit[0], bit[1],
and so on through bit[7].
Hardware Protocol
The isolation protocol can be invoked by the Plug and Play software at any time. The initiation key
described earlier, puts all cards into configuration mode. The hardware on each card expects 72
pairs of I/O read accesses to the READ_DATA port. The card's response to these reads depends
on the value of each bit of the serial identifier which is being examined one bit at a time, in the
sequence shown in Figure 1.
If the current bit of the serial identifier is a "1", then the card will drive the data bus to 55H to
complete the first I/O read cycle. If the bit is "0", then the card puts its data bus driver into high
impedance. All cards in high impedance will check the data bus during the I/O read cycle to sense if
another card is driving SD[1:0] to "01". During the second I/O read, the card(s) that drove the 55H,
will now drive a AAH. All high impedance card will check the data bus to sense if another card is
driving SD[1:0] to "10."
If a high impedance card sensed another card driving the data bus with the appropriate data during
both cycles, then that card ceases to participate in the current iteration of card isolation. Such cards,
which lose out, will participate in future iterations of the isolation protocol.
NOTE: During each read cycle, the Plug and Play hardware drives the entire 8-bit data bus, but
only checks the lower 2 bits.
If a card was driving the bus or if the card was in high impedance and did not sense another card
driving the bus, then it should prepare for the next pair of I/O reads. The card shifts the serial
identifier by one bit and uses the shifted bit to decide its response.
The above sequence is repeated for the entire 72-bit serial identifier.
8019AS.doc
2001-05-10
31
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
At the end of this process, one card remains. This card is assigned a handle referred to as the Card
Select Number (CSN) that will be used later to select the card. Cards which have been assigned a
CSN will not participate in subsequent iterations of the isolation protocol. Cards must be assigned a
CSN before they will respond to the other PnP commands.
It should be noted that the protocol permits the 8-bit checksum to be stored in non-volatile memory
on the card or generated by the on-card logic in real-time. The checksum algorithm is implemented
as a Linear Feedback Shift Register (LFSR), which is shown in Figure 3.
Vendor ID/
Serial number
7
6
5
4
3
2
1
0
Shift out
Read of Serial
Isolation register
Reset values
0
1
1
0
1
0
1
0
Figure 3. Checksum LFSR
The LFSR resets to 6AH upon receiving the Wake[CSN] command. The next shift value for the
LFSR is calculated as LFSR[1] XOR LFSR[0] XOR Serial Data. The LFSR is shifted right one bit
at the conclusion of each pair of reads to the Serial Isolation register. LFSR[7] is assigned the next
shift value described above.
After the first 64 pairs of reads of the Serial Isolation register, the LFSR will have the value of
serial identifier checksum.
Plug and Play cards must not drive the IOCHRDY signal during serial isolation. However, cards
may drive IOCHRDY at any other time.
Software Protocol
The Plug and Play software sends the initiation key to all Plug and Play cards to place them into
configuration mode. The software is then ready to perform the isolation protocol.
The Plug and Play software generates 72 pairs of I/O read cycles from the READ_DATA port. The
software checks the data returned from each pair of I/O reads for the 55H or AAH driven by the
hardware. If both 55H or AAH are read back, then the software assumes that the hardware had a
"1" bit in that position. All other results are assumed to be a "0".
During the first 64 bits, software generates a checksum using the received data. The checksum is
compared with the checksum read back in the last 8 bits of the sequence.
8019AS.doc
2001-05-10
32
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
There are two other special considerations for the software protocol. During an iteration, it is
possible that the 55H and AAH combination is never detected. It is also possible that the checksum
does not match. If either of these cases occur on the first iteration, it must be assumed that the
READ_DATA port is in conflict. If a conflict is detected, then the READ_DATA port is relocated.
The above process is repeated until a non-conflicting location for the READ_DATA port is found.
The entire range between 200H and 3FFH is available, however in practice it is expected that only
a few locations will be tried before software determines that no Plug and Play cards are present.
During subsequent iterations, the occurrence of either of these two special cases should be
interpreted as the absence of any further Plug and Play cards (i.e. the last card was found in the
previous iteration). This terminates the isolation protocol.
NOTE: The software must delay 1 msec prior to starting the first pair of isolation reads, and
must wait 250 msec between each subsequent pair of isolation reads. This delay gives the
ISA card time to access information from possibly very slow storage devices.
8019AS.doc
2001-05-10
33
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
6.2.3. Plug and Play Isolation Sequence
The Plug and Play isolation sequence is divided into four states: Wait for Key, Sleep, Isolation,
and Config states. The state transitions for the Plug and Play ISA card are shown below.
Power up
RSTDRV or
Reset command
Set CSN=0
Active Commands
State
no active
commands
Wait for Key
initiation key
State
Active Commands
Reset
Reset CSN
Wait for Key
Wake [CSN]
Sleep
(WAKE=0) AND (CSN=0)
(WAKE0) AND (WAKE=CSN)
Lose serial isolation OR
(WAKECSN)
State
Isolation
Active Commands
Reset
Reset CSN
Wait for Key
Set RD_DATA Port
Serial isolation
Wake [CSN]
Set CSN
WAKECSN
State
Set CSN
Config
NOTES:
1. CSN= Card Select Number
2. RSTDRV causes a state transition
from the current state to Wait for Key and sets all CSNs to zero
3. The Wait for Key command causes a state transition from the
current state to Wait for Key
4. The Reset CSN commands include PnP Reset CSN and RT Reset CSN commands.
The former sets all ISA PnP cards' CSNs to zero while the latter only sets RTL8019
PnP cards' CSNs to zero. Both commands do not cause a state transition.
Figure 4. Plug and Play ISA Card State Transitions
8019AS.doc
2001-05-10
34
Active Commands
Reset
Reset CSN
Wait for Key
Wake [CSN]
Resource Data
Status
Logical Device
I/O Range Check
Activate
Configuration Registers
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
On power up, all PnP cards detect RSTDRV, set their CSN to 0, and enter the Wait for Key state.
There is a required 2 msec delay from either a RSTDRV or a PnP Reset command to any Plug and
Play port access to allow a card to load initial configuration information from a non-volatile device,
which is 9346 for RTL8019AS.
Cards in the Wait for Key state do not respond to any access to their auto-configuration ports until
the initiation key is detected. Cards ignore all ISA access to their Plug and Play interface.
When the cards have received the initiation key, they enter the Sleep state. In this state, the cards
listen for a Wake[CSN] command with the write data set to 00H. This wake[CSN] command will
send all cards to the Isolation state and reset the serial identifier/resource data pointer to the
beginning.
The first time the cards enter the Isolation state it is necessary to set the READ_DATA port
address using the Set RD_DATA port command. The software should then verify the selected
READ_DATA port address is not in conflict with any other devices by the isolation protocol.
Next, 72 pairs of reads are performed to the Serial Isolation register to isolate a card as described
previously. If the checksum read from the card is valid, then this means one card has been isolated.
The isolated card remains in the Isolation state while all other cards have failed the isolation
protocol and have returned to the Sleep state. The CSN on this card is set to a unique number.
Writing this value causes this card to transition to the Config state. Sending a Wake[0] command
causes this card to transition back to Sleep state and all cards with a CSN value of zero to
transition to the Isolation state. This entire process is repeated until no Plug and Play cards are
detected.
6.2.4. Reading Resource Data
Each PnP card supports a resource data structure stored in a non-volatile device (e.g. 9346) to
describe the resources supported and those requested by the functions on the card. The Plug and
Play resource management software will arbitrate resources and setup the logical device
configuration registers according to the resource data.
Card resource data may only be read from cards in the Config state. A card may get to the Config
state by one of two different methods. A card enters the Config state in response to the card
"winning" the serial isolation protocol and having a CSN assigned. The card also enters the Config
state in response to receiving a Wake[CSN] command that matches the card's CSN.
As described above, all Plug and Play cards function as if their serial identifier and their resource
data both come from the same serial device. As also stated above, the pointer to the serial device is
reset in response to any Wake[CSN] command. This implies that if a card enters the Config state
directly in response to a Wake[CSN] command, the 9-byte serial identifier must be read first before
the card resource data is accessed. The Vendor ID and Unique Serial Number is valid; however, the
checksum byte, when read in this way, is not valid. A card that enters the Config state after the
isolation protocol has been run has already accessed all 72 bits of the serial identifier and the first
read of the Resource Data register will return resource data.
8019AS.doc
2001-05-10
35
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
Card resource data is read by first polling the Status register and waiting for bit[0] to be set. When
this bit is set it means that one byte of resource data is ready to be read from the Resource Data
register. After the Resource Data register is read, the Status register must be polled before reading
the next byte of resource data. This process is repeated until all resource data is read. The format of
resource data is described in the following section.
The above operation implies that the hardware is responsible for accumulating 8 bits of data in the
Resource Data register. When this operation is complete, the status bit[0] is set. When a read is
performed on the Resource Data register, the status bit[0] is cleared, eight more bits are shifted
into the Resource Data register, then the status bit[0] is set again.
6.2.5. PnP auto detect mode
When using RTL8019, the user needs to setup the card to PnP or jumperless mode according to
the host environments. The typical operating modes of a RTL8019 card include:
(1) when used in a non-PnP PC, set the card to RT jumperless mode & power-on active
(2) when used in a PnP PC,
(2.1) if BROM disabled, set the card to PnP mode & power-on inactive
(2.2) if BROM enabled, set the card to PnP mode & power-on active
P.S. PCs with PnP BIOS, or Windows 95, or Intel Configuration Manager, etc. are called PnP PCs
If a card in mode(2.1) is put in a non-PnP PC, the drivers will fail to initialize the card.
RTL8019AS supports a PnP auto-detect mode to solve the problem. The card may be set to a
default state: PnP mode & power-on active with BROM disabled. If the card is in a non-PnP PC,
it will work like a normal jumperless card. If the card is in a PnP PC which requires the card to be
power-on inactive, RTL8019AS will change itself into inactive state when the first time a PnP init
key is detected.
8019AS.doc
2001-05-10
36
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
6.3. 9346 Contents
The 9346 is a 1k-bit EEPROM. Although it is actually addressed by words, we list its contents by
bytes below for convenience.
Bytes
Contents
00H - 03H
04H - 11H
Comments
(4 bytes)
Power-up initial value of Page3 and PnP
logical device configuration registers
00H
01H
02H
03H
CONFIG1
CONFIG2
CONFIG3
CONFIG4
(14 bytes)
04H - 09H
0AH - 11H
Ethernet ID 0-5
Product ID 0-7
12H - 1AH (9 bytes)
12H - 15H
16H - 19H
1AH
NE2000 IDPROM
Ethernet node address
Assigned by card makers; negligible
Plug and Play Serial Identifier
Vendor ID 0-3
Serial Number 0-3
Serial ID Checksum
1BH - 7FH (101 bytes)
Plug and Play Resource Data
Detail values of 9346 CONFIG1-3 bytes
Bit 7
CONFIG1
*
CONFIG2 PL1
CONFIG3 PNP
Bit 6
IRQS2
PL0
FUDUP
Bit 5
IRQS1
*
LEDS1
Bit 4
IRQS0
BS4
LEDS0
Bit 3
IOS3
BS3
*
Bit 2
IOS2
BS2
*
Bit 1
IOS1
BS1
PWRDN
Bit 0
IOS0
BS0
ACTIVEB
P.S. '*' denotes don't care.
Example : Plug and Play Resource Data for RTL8019AS (Total 73+5 bytes)
TAG
Plug and Play Version Number
Item byte
0AH
PnP version
10H
Vendor version
10H
TAG
ANSI Identifier String
Item byte
Length bits 7-0
Length bits 15-8
Identifier string
Length: variable
37 bytes
82H
22H
00H
'REALTEK PLUG & PLAY ETHERNET CARD', 00H
TAG
Logical Device ID
Item byte
Logical device ID0-3
Flag 0
Flag 1
Length: fixed
7 bytes
16H
4AH, 8CH, 80H, 19H
02H or 03H (use 03H when BROM is enabled)
00H
TAG
Compatible Device ID (NE2000 compatible) Length: fixed
8019AS.doc
2001-05-10
Length: fixed
37
3 bytes
5 bytes if given
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
TAG
TAG
TAG
TAG
Item byte
Compatible ID0-3
1CH
41H, D0H, 80H, D6H
I/O Format
Item byte
I/O information
Min. I/O base bits 7-0
Min. I/O base bits 15-8
Max. I/O base bits 7-0
Max. I/O base bits 15-8
Base alignment
Range length
47H
00H
20H
02H
80H
03H
20H
20H
IRQ Format
Item byte
IRQ mask bits 7-0
IRQ mask bits 15-8
IRQ information
23H
38H
9EH
01H
Memory Format (optional)
Item byte
Length bits 7-0
Length bits 15-8
Memory information
Min. base bits 15-8
Min. base bits 23-16
Max. base bits 15-8
Max. base bits 23-16
Base alignment bits 7-0
Base alignment bits 15-8
Range length bits 15-8
Range length bits 23-16
81H
09H
00H
40H
00H
0CH
C0H
0DH
00H
40H
40H
00H
END Tag
Item byte
Checksum
Length: fixed
8 bytes
Length: fixed
4 bytes
Length: fixed
12 bytes
This example uses 16k-byte BROM.
Length: fixed
2 bytes
79H
2's complement of the sum of all the above resource data
i.e. 2's complement of (0AH+10H+10H+.......+79H)
6.4. Boot ROM
Whether a EPROM or flash memory is used as the BROM, RTL8019AS's BROM read operation is still the
same as RTL8019's. The supported BROM size is the same, too.
The write operation of a flash memory is much like the read except that a SMEMWB command is issued
instead of SMEMRB. The block diagram below shows the application when an 128k*8bit flash memory (e.g.
29F010) is used as the BROM.
8019AS.doc
2001-05-10
38
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
29F010
SA13-0
A13-0
A16-14
BA16-14
SMEMWB
WEB
IO7-0
BD7-0
SMEMRB
OEB
CEB
BCSB
From
ISA Bus
Through
RTL8019AS
In this case, the BROM page mode is used. Before either to read or write BROM, the appropriate ROM page
must be set in the BPAGE (page3, offset 02h) register first. The RTL8019AS will always reflect the content
of BPAGE onto the BA14-21 bus. When RTL8019AS decodes a valid BROM read or write command, it
asserts BCSB low. Note the flash memory write must be enabled through the RTL8019AS's FMWP register
before the host's flash write command.
8019AS.doc
2001-05-10
39
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
6.5. LED Behaviors
This section describes the lighting behaviors of the LED output signals which may be selected by
LEDS1 and LEDS0 bits in the Page3 CONFIG3 register.
P.S. It is assumed that the LED is on when the signal goes low.
(1) LED_TX: Tx LED
Power On
LED=low
No
Transmitting Packet?
Yes
LED=high for (100 + 10) ms
LED=low for (6+ 2) ms
(2) LED_RX: Rx LED
Power On
LED=low
No
Receiving Packet?
Yes
LED=high for (100 +10) ms
LED=low for (6 +2) ms
8019AS.doc
2001-05-10
40
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
(3) LED_CRS=LED_TX+LED_RX: Carrier Sense LED
Power On
LED=low
No
Tx or Rx Packet?
Yes
LED=high for (100 + 10) ms
LED=low for (6 + 2) ms
(4) LED_COL: Collision LED
Power On
LED=high
No
Collision (except Heartbeat)?
Yes
LED=low for (10 +5) ms
8019AS.doc
2001-05-10
41
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
LED1 (LED_RX or LED_CRS)
RTL8019's LED_RX or LED_CRS LED sometimes keeps blinking when the media type of a 2-in1 (UTP+BNC) LAN adapter is set to auto-detect and both UTP and coaxial cable are not
connected. In the case, RTL8019 is actually using the BNC because the UTP link test fails. Many
8392 will falsely detect a carrier when the BNC inteface is not properly terminated (e.g. coaxial
cable is not connected). That carrier sense will then make RTL8019's LED_RX or LED_CRS blink.
The problem is that not all 8392s cause the LED blinking, which makes the phenomenon very
ambiguous. Considering the phenomenon is normally awared upon power on, we change
RTL8019's original function to solve the problem to some extent.
The new specification is:
The LED_RX or LED_CRS does not reflect the carrier sense when the CR register bit 0 is set (in
stop mode). Thus, the false carrier due to cabling problem upon power on will not cause the LED1
to blink anymore.
LED Output States in Power Down Modes
LED Output
LEDBNC
LED_LINK
LED_COL
LED_TX
LED_RX
LED_CRS
Normal Mode / Idle
High
Low
Low
Low
Sleep Mode
High
High
High
High
High
Power Down Mode
Low
High
High
High
High
High
6.6. Loopback Diagnostic Operation
6.6.1. Loopback operation
The RTL8019AS provides 3 loopback modes. By loopback test, we can verify the integrity of data
path, CRC logic, address recognition logic and cable connection status.
Mode 1: Loopback through the NIC (LB1=0, LB0=1 in TCR).
The NRZ data is not transmitted to the SNI but instead it's loopbacked to the NIC's Rx
deserializer. The traffic on the cable is ignored.
Ref:
NIC
8390
SNI
83910
Mode 2: Loopback through the SNI (LB1=1, LB0=0 in TCR)
The Manchester encoded data is not transmitted to the MAU. It's loopbacked through
the SNI to NIC. The traffic on the cable is ignored.
Ref:
8019AS.doc
2001-05-10
NIC
8390
MAU
8392/RTL8005
SNI
83910
42
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
Mode 3: Loopback through the cable (LB1=1, LB0=1 in TCR)
The packets are transmitted via the MAU onto the network and RTL8009 receives all
incoming packets (not only the MAU-loopbacked Tx data) in the meantime.
Ref:
NIC
8390
SNI
83910
MAU
8392/RTL8005
CABLE
q Alignment of the Reception FIFO
The reception FIFO is an 8-byte ring structure. The first received byte is put at location zero.
When the location pointer goes to the end of the FIFO, it wraps to the beginning of the FIFO and
overwrites the previous data. At the end of the packet reception, the FIFO contents are in the
"order" (from the ring structure's view) as shown below.
(1) CRC enabled (CRC bit in TCR=0)
s 1-byte received packet data
s 4-byte CRC
s 1-byte lower byte count
s 1-byte upper byte count
s 1-byte upper byte count
(2) CRC disabled (CRC bit in TCR=1)
s 5-byte received packet data
s 1-byte lower byte count
s 1-byte upper byte count
s 1-byte upper byte count
6.6.2. To Implement Loopback Test
(1) To verify the integrity of data path
s set RCR=00h to accept physical packet
s set PAR0-5 to accept packet
s set DCR=40h (8-bit slot) or 43h (16-bit slot)
s set TCR=02h, 04h, 06h to do loopback test 1, 2, 3 respectively
s set CRC enabled (CRC=0 in TCR)
s clear ISR
s tx a packet and check ISR
s check FIFO after loopback
Note: Loopback mode 3 is sensitive to the network traffic, so the values of FIFO may be not
correct.
(2) To verify CRC logic
q Select a loopback mode (e.g. mode 2) to test
A. To test CRC generator
s set RCR=00h to accept physical packet
8019AS.doc
2001-05-10
43
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
s
s
s
s
s
s
set PAR0-5 to accept packet
set TCR=04h (CRC enabled)
set DCR=40h (8-bit slot) or 43h (16-bit slot)
clear ISR
tx a packet
check CRC bytes in FIFO after loopback
B. To test CRC checker
s set RCR=00h to accept physical packet
s set PAR0-5 to accept packet
s set TCR=05h (CRC disabled)
s set DCR=40h (8-bit slot) or 43h (16-bit slot)
s clear ISR
s tx a packet with good or bad CRC appended by program
s check FIFO, ISR & RSR after loopback
For bad CRC, expected: ISR=06h, RSR=02h (Tx: OK, Rx:CRC error)
For good CRC, expected: ISR=02h, RSR=01h (Tx:OK, Rx: OK)
Note: In loopback mode, the received packets are not stored to SRAM, so PRX bit in ISR isn't set.
(3) To verify the address recognition function
q Select a loopback mode (e.g. mode 2) to test
A. Right physical destination address
s set RCR=00h to accept physical packet
s set PAR0-5 to accept packet
s set TCR=04h (CRC enabled)
s set DCR=40h (8-bit slot) or 43h (16-bit slot)
s clear ISR
s tx a packet
s check ISR after loopback
Expected: ISR=06h (packets accepted, Rx CRC error)
B. Wrong physical destination address
s set RCR=00h to accept physical packet
s set PAR0-5 to reject packet
s set TCR=04h (CRC enabled)
s set DCR=40h (8-bit slot) or 43h (16-bit slot)
s clear ISR
s tx a packet
s check ISR after loopback
Expected: ISR=02h (packets rejected, Rx no response)
8019AS.doc
2001-05-10
44
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
(4) To Test Cable Connection
q There are four physical medium types in RTL8019.
s
s
s
s
s
s
s
We perform loopback mode 3 to test the cable connection status.
set RCR=00h to accept physical packet
set PAR0-5 to accept packet
set TCR=06h (CRC enabled)
set DCR=40h (8-bit slot) or 43h (16-bit slot)
clear ISR
tx a packet
check TSR after loopback
A. 10Base2
If cable OK, get TSR=03h (Tx OK).
If cable FAIL, get TSR=0Eh (Collision and Tx aborted).
B. 10Base5
If cable OK, get TSR=03h (Tx OK).
If MAU connected but cable FAIL, get TSR=0Eh (Tx collision and Tx aborted).
If MAU not connected, get TSR=53h (Carrier sense is lost during transmission and CD heartbeat
fails.).
C. 10BaseT with link test disabled
RTL8019AS disables link test in this case, so cable OK or FAIL doesn't affect TSR; get TSR=03h.
D. Auto-detection (10BaseT with link test enabled)
RTL8019AS automatically switches from 10BaseT to 10Base 2 if the twisted-pair wire is not
connected (10BaseT link test fails).
If twisted-pair wire OK, get TSR=03h (Tx OK) & BNC=0 in CONFIG2
If twisted-pair wire FAIL but coaxial cable OK, get TSR=03h (Tx OK) & BNC=1 in CONFIG2
Otherwise, get TSR=0Eh (same as 10Base2 connection fail).
8019AS.doc
2001-05-10
45
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
7. Electrical Specifications and Timings
7.1. Absolute Maximum Ratings
Operating Temperature ........................................................................................... 0 to 70
Storage Temperature .............................................................................................. -65 to 140
All Outputs and Supply Voltages, with respect to Ground ........................................ -0.5V to 7V
Power Dissipation ..................................................................................................
Warning:
Stresses beyond those listed under "Absolute Maximum Ratings" may cause permanent damage to
the device. These are stress ratings only.
Functionality at or above these limits is not recommended and extended exposure to "Absolute
Maximum Ratings" may affect device reliability.
7.2. D.C. Characteristics (Tc=0 to 70 , Vcc=5V+5%)
Symbol
Parameter
Min.
Vil
Input Low Voltage
Vih
Input Low Voltage
Vol1
Output Low Voltage 1
Voh1
Output High Voltage 1
Vol2
Output Low Voltage 2
Voh2
Output High Voltage 2
Vol3
Output Low Voltage 3
Rpull-low
Internal Pull-Low Resistance
50
II
Input Leakage Current
-10
Typ.
Max.
Unit
0.8
V
2.0
V
0.4
3.0
0.6
V
Iol=16mA, Note 1
V
Ioh=8mA, Note 1
V
Iol=4mA, Note 2
V
Ioh=4mA, Note 2
0.6
V
Iol=24mA, Note 3
150
KW
10
mA
3.5
0.4
3.5
0.6
4.0
100
Note 1: Apply only to INT7 ~ INT0, SD15 ~ SD0.
Note 2: Apply only to MD7 ~ MD0, MA13 ~ MA0, LED Pins, EECS, MWRB, MRDB, BCSB.
Note 3: Apply only to IOCHRDY, IOCS16B
7.3. A.C. Timing Characteristics
(1) ISA I/O Read/Write
8019AS.doc
2001-05-10
Conditions
46
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
AEN
SA0-11
T2
T1
IOCS16B
IORB,
IOWB
T3
IOCHRDY
T6
T5
T4
SD0-15 (read)
T8
T7
SD0-15 (write)
Symbol
Parameter
Min.
Typ.
Max.
Unit
T1
Host address valid to IOCS16B low
8
20
20
ns
T2
Host address invalid to IOCS16B high
4
30
--
ns
T3
IOCHRDY goes low from falling edge of
IORB or IOWB when wait state insertion is
needed.
--
50
50
ns
T4
Read data valid from falling edge of IORB or
IOWB when no wait state insertion is needed.
--
50
60
ns
T5
Read data valid to IOCHRDY high when wait
state is needed
25
--
--
ns
T6
Read data hold after IORB rising edge
10
30
30
ns
T7
Write data setup to IOWB rising edge
10
10
--
ns
T8
Write data hold from IOWB rising edge
10
10
--
ns
8019AS.doc
2001-05-10
47
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
(2) BROM Read
SA19-0
SMEMRB
T1
T2
IOCHRDY
T3
T5
BA14-21
T4
T6
BCSB
T7
SD7-0
Symbol
Parameter
Min.
Typ.
Max.
Unit
-
-
30
ns
125
200
350
ns
T1
SMEMRB low to IOCHRDY low
T2
IOCHRDY low width
T3
SMEMRB low to BA14-21 valid
-
-
30
ns
T4
SMEMRB low to BCSB valid
-
-
30
ns
T5
BA14-21 hold from SMEMRB rising edge
-
-
30
ns
T6
BCSB hold from SMEMRB rising edge
-
-
30
ns
T7
Read data hold from SMEMRB rising edge
-
-
30
ns
8019AS.doc
2001-05-10
48
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
(3) Serial EEPROM (9346) Auto-load
Symbol
Parameter
Min.
Typ.
Max.
Unit
T1
EESK high width
-
3.2
-
ms
T2
EESK low width
-
3.2
-
ms
T3
EEDI setup to EESK rising edge
3.0
-
-
ms
T4
EEDI hold from EESK rising edge
3.0
-
-
ms
T5
EECS goes high to EESK rising edge
3.0
-
-
ms
T6
EECS goes low from EESK falling edge
-
0
-
ns
T7
EEDO setup to EESK falling edge
20
-
-
ns
T8
EEDO hold from EESK falling edge
10
-
-
ns
REALTEK Semiconductor Co., Ltd. reserved all rights of this document. No part of this
document may be copied or reproduced in any form or by any means or transferred to any third
party without the prior written consent of REALTEK Semiconductor Co., Ltd. REALTEK
reserves the right to change products or specifications without notice. This document has been
carefully checked and is believed to be accurate. However REALTEK Semiconductor Co., Ltd.
assumes no responsibility for inaccuracies.
8019AS.doc
2001-05-10
49
SPECIFICATION
RTL8019AS
·ç¬R¥b¾ÉÅéªÑ¥÷¦³--¤½¥q
Note:
Symbol
A
A1
A2
b
c
D
E
e
HD
HE
L
L1
y
8019AS.doc
2001-05-10
Dimension in
Dimension in
mil
mm
Min Typ Max Min Typ Max
106.3 118.1 129.9 2.70 3.00 3.30
4.3 20.1 35.8 0.11 0.51 0.91
102.4 112.2 122.0 2.60 2.85 3.10
7.1 11.8 16.5 0.18 0.30 0.42
1.6 5.9 10.2 0.04 0.15 0.26
541.3 551.2 561.0 13.75 14.00 14.25
777.6 787.4 797.2 19.75 20.00 20.25
19.7 25.6 31.5 0.50 0.65 0.80
726.4 740.2 753.9 18.45 18.80 19.15
962.6 976.4 990.2 24.45 24.80 25.15
39.4 47.2 55.1 1.00 1.20 1.40
88.6 94.5 104.3 2.25 2.40 2.65
3.9
0.10
0°
12°
0°
12°
1.Dimension D & E do not include interlead flash.
2.Dimension b does not include dambar protrusion/intrusion.
3.Controlling dimension: Millimeter
4.General appearance spec. should be based on final visual
inspection spec.
TITLE : 100L QFP ( 14x20 mm**2 ) FOOTPRINT 4.8 mm
PACKAGE OUTLINE DRAWING
LEADFRAME MATERIAL:
APPROVE
DWG NO.
REV NO.
SCALE
CHECK
Ricardo Chen DATE
SHT NO. 1 OF
REALTEK SEMI-CONDUCTOR CO., LTD
50