1.2 2003/12/01 Revised pin description of Dis_VLAN.
1.3 2004/06/10 Removed PHY0~PHY7 REG2 and REG3 info.
1.4 2004/07/09 Removed QoS feature for IPv6.
Summary
Revised description for Bi-color LED.
New Bi-color LED Reference Schematic figure.
Add 3.3V items to electrical characteristics.
Add thermal operating range temperatures.
Revised pin description of Max_Pause_Count.
Revised default VLAN membership configuration for Disable VLAN
function in PHY register 16.11.
Update default value of Differential Service Code Point [B] in EEPROM
and PHY registers.
Update default value of VLAN ID [A] membership in EERPOM.
Update default value of ISP MAC Address in EEPROM.
Update default value of Port 8 VLAN Index in EEPROM.
Revised the definition for WAN port specification in EEPROM and PHY
registers.
Revised the definition for CPU port specification in EEPROM and PHY
registers.
Removed the Bypass CRC function in EEPROM.
Removed the Good Link Quality Threshold function in EEPROM and
PHY registers.
Add explanation of Indirect Access Data in PHY 7 Register 17~20.
Update pin number ordering on Pin Description Table.
Change the term “Auto MDIX” to “Crossover Detection and auto
correction”.
1. GENERAL D ESCRIPTION................................................................................................................................................1
5.2.MII PORT MAC INTERFACE PINS ...............................................................................................................................7
5.4.PORT LED PINS ..........................................................................................................................................................9
5.5.SERIAL EEPROM AND SMI PINS .............................................................................................................................11
6.1.GLOBAL CONTROL REGISTERS..................................................................................................................................17
6.1.1. Global Control Register0...................................................................................................................................17
6.1.2. Global Control Register1...................................................................................................................................17
6.1.3. Global Control Register2...................................................................................................................................18
6.1.4. Global Control Register3...................................................................................................................................18
6.1.5. Global Control Register4...................................................................................................................................19
6.1.6. Global Control Register5...................................................................................................................................19
6.1.7. Global Control Register6...................................................................................................................................19
6.1.8. Global Control Register7...................................................................................................................................19
6.2.PORT 0~7 CONTROL PINS..........................................................................................................................................20
6.2.1. Port 0 Control 0..................................................................................................................................................20
6.2.2. Port 0 Control 1..................................................................................................................................................20
6.2.3. Port 0 Control 2..................................................................................................................................................21
6.2.4. Port 0 Control 3..................................................................................................................................................21
6.2.5. Port 0 Control 4..................................................................................................................................................21
6.2.6. IP Addr ess...........................................................................................................................................................22
6.2.7. Port 1 Control 0..................................................................................................................................................23
6.2.8. Port 1 Control 1..................................................................................................................................................23
6.2.9. Port 1 Control 2..................................................................................................................................................24
6.2.10. Port 1 Control 3..................................................................................................................................................24
6.2.11. Port 1 Control 4..................................................................................................................................................24
6.2.12. IP Mask ..............................................................................................................................................................25
6.2.13. Port 2 Control 0..................................................................................................................................................25
6.2.14. Port 2 Control 1..................................................................................................................................................26
6.2.15. Port 2 Control 2..................................................................................................................................................26
6.2.16. Port 2 Control 3..................................................................................................................................................26
6.2.17. Port 2 Control 4..................................................................................................................................................27
6.2.18. Switch MAC Address ..........................................................................................................................................27
6.2.19. Port 3 Control 0..................................................................................................................................................28
6.2.20. Port 3 Control 1..................................................................................................................................................28
6.2.21. Port 3 Control 2..................................................................................................................................................29
6.2.22. Port 3 Control 3..................................................................................................................................................29
6.2.23. Port 3 Control 4..................................................................................................................................................29
6.2.24. ISP MAC Address...............................................................................................................................................30
6.2.25. Port 4 Control 0..................................................................................................................................................30
6.2.26. Port 4 Control 1..................................................................................................................................................30
6.2.27. Port 4 Control 2..................................................................................................................................................31
6.2.28. Port 4 Control 3..................................................................................................................................................31
6.2.29. Port 4 Control 4..................................................................................................................................................31
6.3.MII PORT CONTROL PINS..........................................................................................................................................32
6.3.1. MII Port Control 0..............................................................................................................................................32
6.3.2. MII Port Control 1..............................................................................................................................................32
6.3.3. MII Port Control 2..............................................................................................................................................33
6.3.4. CPU Port and WAN Port....................................................................................................................................33
6.4.PORT 5~7 CONTROL PINS..........................................................................................................................................34
6.4.1. Port 5 Control 0..................................................................................................................................................34
6.4.2. Port 5 Control 1..................................................................................................................................................34
6.4.3. Port 5 Control 2..................................................................................................................................................35
6.4.4. Port 5 Control 3..................................................................................................................................................35
6.4.5. Port 5 Control 4..................................................................................................................................................35
6.4.6. Port 6 Control 0..................................................................................................................................................36
6.4.7. Port 6 Control 1..................................................................................................................................................36
6.4.8. Port 6 Control 2..................................................................................................................................................36
6.4.9. Port 6 Control 3..................................................................................................................................................37
6.4.10. Port 6 Control 4..................................................................................................................................................37
6.4.11. Port 7 Control 0..................................................................................................................................................38
6.4.12. Port 7 Control 1..................................................................................................................................................38
6.4.13. Port 7 Control 2..................................................................................................................................................38
6.4.14. Port 7 Control 3..................................................................................................................................................39
6.4.15. Port 7 Control 4..................................................................................................................................................39
7.1.6. PHY 0 Register 16: Global Control 0.................................................................................................................43
7.1.7. PHY 0 Register 17: Global Control 1.................................................................................................................45
7.1.8. PHY 0 Register 18: Global Control 2.................................................................................................................46
7.1.9. PHY 0 Register 19: Global Control 3.................................................................................................................46
7.1.10. PHY 0 Register 22: Port 0 Control 0..................................................................................................................46
7.1.11. PHY 0 Register 23: Port 0 Control 1..................................................................................................................48
7.1.12. PHY 0 Register 24: Port 0 Control 2 & VLAN Entry [A]...................................................................................48
7.2.6. PHY 1 Register 16~17: IP Priority Address [A].................................................................................................49
7.2.7. PHY 1 Register 18~19: IP Priority Address [B].................................................................................................49
7.2.8. PHY 1 Register 22: Port 1 Control 0..................................................................................................................50
7.2.9. PHY 1 Register 23: Port 1 Control 1..................................................................................................................50
7.2.10. PHY 1 Register 24: Port 1 Control 2 & VLAN Entry [B]...................................................................................50
7.3.6. PHY 2 Register 16~17: IP Priority Mask [A] ....................................................................................................51
7.3.7. PHY 2 Register 18~19: IP Priority Mask [B] ....................................................................................................51
7.3.8. PHY 2 Register 22: Port 2 Control 0..................................................................................................................51
7.3.9. PHY 2 Register 23: Port 2 Control 1..................................................................................................................51
7.3.10. PHY 2 Register 24: Port 2 Control 2 & VLAN Entry [C]...................................................................................52
7.4.6. PHY 3 Register 16~18: Switch MAC Address ....................................................................................................52
7.4.7. PHY 3 Register 22: Port 3 Control 0..................................................................................................................53
7.4.8. PHY 3 Register 23: Port 3 Control 1..................................................................................................................53
7.4.9. PHY 3 Register 24: Port 3 Control 2 & VLAN Entry [D]..................................................................................53
7.5.6. PHY 4 Register 16~18: ISP MAC Address......................................................................................................... 54
7.5.7. PHY 4 Register 22: Port 4 Control 0..................................................................................................................54
7.5.8. PHY 4 Register 23: Port 4 Control 1..................................................................................................................54
7.5.9. PHY 4 Register 24: Port 4 Control 2 & VLAN Entry [E]...................................................................................55
7.6.6. PHY 5 Register 16: MII Port Control 0..............................................................................................................56
7.6.7. PHY 5 Register 17: MII Port Control 1 & VLAN Entry [I]................................................................................57
7.6.9. PHY 5 Register 19: CPU Port & WAN Port.......................................................................................................57
7.6.10. PHY 5 Register 22: Port 5 Control 0..................................................................................................................58
7.6.11. PHY 5 Register 23: Port 5 Control 1..................................................................................................................58
7.6.12. PHY 5 Register 24: Port 5 Control 2 & VLAN Entry [F]...................................................................................58
7.7.6. PHY 6 Register 22: Port 6 Control 0..................................................................................................................59
7.7.7. PHY 6 Register 23: Port 6 Control 1..................................................................................................................59
7.7.8. PHY 6 Register 24: Port 6 Control 2 & VLAN Entry [G]..................................................................................60
7.8.8. PHY 7 Register 22: Port 7 Control 0..................................................................................................................62
7.8.9. PHY 7 Register 23: Port 7 Control 1..................................................................................................................62
7.9.4. MII Port NWay Mode .........................................................................................................................................65
7.9.5. MII Port Force Mode.........................................................................................................................................65
8.1.PHYSICAL LAYE R TRANSCEIVER FUNCTIONAL OVERVIEW .......................................................................................66
8.1.1. Auto Negotiation for UTP ..................................................................................................................................66
8.1.2. 100Base-Tx T ransmit Function ..........................................................................................................................66
8.1.4. 10Base-T T r ansmit Function..............................................................................................................................67
8.1.6. Link Monitor.......................................................................................................................................................67
8.1.7. Power Saving Mode............................................................................................................................................67
8.1.9. Auto Crossover Detection...................................................................................................................................68
8.2.5. UTP Port Status Configuration..........................................................................................................................70
8.2.6. MII Port (The 9th Port)......................................................................................................................................70
8.3.2. 802.1Q Tagged-VID based VLAN.......................................................................................................................76
8.3.5. Port VID (PVID) ................................................................................................................................................79
8.3.6. Port Trunking.....................................................................................................................................................79
8.3.7. ISP MAC Address Translation............................................................................................................................79
8.3.9. Serial Management Interface (SMI)...................................................................................................................81
8.3.10. Broadcast S t orm Control....................................................................................................................................82
8.3.15. MII Port Diagnostic Loopback...........................................................................................................................85
9.1.ABSOLUTE MAXIMUM RATI N G S ................................................................................................................................90
9.2.OPERATING RANGE ...................................................................................................................................................90
10. SYSTEM APPLICA TIONS...........................................................................................................................................95
11. DESIGN AND LA YOUT GUIDE..................................................................................................................................96
Table 5. Port LED Pins ................................................................................................................................9
Table 6. Serial EEPROM and SMI Pins ....................................................................................................11
Table 8. Power Pins ...................................................................................................................................16
Table 9. Global Control Register0 .............................................................................................................17
Table 10. Global Control Register1 .............................................................................................................17
Table 11. Global Control Register2 .............................................................................................................18
Table 12. Global Control Register3 .............................................................................................................18
Table 13. Global Control Register4 .............................................................................................................19
Table 14. Global Control Register5 .............................................................................................................19
Table 15. Global Control Register6 .............................................................................................................19
Table 16. Global Control Register7 .............................................................................................................19
Table 17. Port 0 Control 0............................................................................................................................20
Table 18. Port 0 Control 1............................................................................................................................20
Table 19. Port 0 Control 2............................................................................................................................21
Table 20. Port 0 Control 3............................................................................................................................21
Table 21. Port 0 Control 4............................................................................................................................21
Table 22. IP Address ....................................................................................................................................22
Table 23. Port 1 Control 0............................................................................................................................23
Table 24. Port 1 Control 1............................................................................................................................23
Table 25. Port 1 Control 2............................................................................................................................24
Table 26. Port 1 Control 3............................................................................................................................24
Table 27. Port 1 Control 4............................................................................................................................24
Table 28. IP Mask ........................................................................................................................................25
Table 29. Port 2 Control 0............................................................................................................................25
Table 30. Port 2 Control 1............................................................................................................................26
Table 31. Port 2 Control 2............................................................................................................................26
Table 32. Port 2 Control 3............................................................................................................................26
Table 33. Port 2 Control 4............................................................................................................................27
Table 34. Switch MAC Address ..................................................................................................................27
Table 35. Port 3 Control 0............................................................................................................................28
Table 36. Port 3 Control 1............................................................................................................................28
Table 37. Port 3 Control 2............................................................................................................................29
Table 38. Port 3 Control 3............................................................................................................................29
Table 39. Port 3 Control 4............................................................................................................................29
Table 40. ISP MAC Address........................................................................................................................30
Table 41. Port 4 Control 0............................................................................................................................30
Table 42. Port 4 Control 1............................................................................................................................30
Table 43. Port 4 Control 2............................................................................................................................31
Table 44. Port 4 Control 3............................................................................................................................31
Table 45. Port 4 Control 4............................................................................................................................31
Table 46. MII Port Control 0 .......................................................................................................................32
Table 47. MII Port Control 1 .......................................................................................................................32
Table 48. MII Port Control 2 .......................................................................................................................33
Table 49. CPU Port and WAN Port..............................................................................................................33
Table 50. Port 5 Control 0............................................................................................................................34
Table 51. Port 5 Control 1............................................................................................................................34
Table 52. Port 5 Control 2............................................................................................................................35
Table 53. Port 5 Control 3............................................................................................................................35
Table 54. Port 5 Control 4............................................................................................................................35
Table 55. Port 6 Control 0............................................................................................................................36
Table 56. Port 6 Control 1............................................................................................................................36
Table 57. Port 6 Control 2............................................................................................................................36
Table 58. Port 6 Control 3............................................................................................................................37
Table 59. Port 6 Control 4............................................................................................................................37
Table 60. Port 7 Control 0............................................................................................................................38
Table 61. Port 7 Control 1............................................................................................................................38
Table 62. Port 7 Control 2............................................................................................................................38
Table 63. Port 7 Control 3............................................................................................................................39
Table 64. Port 7 Control 4............................................................................................................................39
The RTL8309SB is a 128-pin, ultra low power, high-performance 8-port Fast Ethernet single-chip switch
with one extra MII port for specific applications. It integrates all the functions of a high speed switch
system—including SRAM for packet buffering, non-blocking switch fabric, address management, one
general use MII interface, eight 10/100Base-TX transceivers, and nine Media Access Controllers—into a
single 0.18µm CMOS device. It provides compatibility with all industry standard Ethernet and Fast
Ethernet devices. Only a 25MHz crystal is required; the EEPROM is optional to save BOM costs.
The embedded packet storage SRAM in the RTL8309SB features superior memory management
technology to efficiently utilize the memory space. An integrated 1024-entry look-up table stores MAC
address and associated information in a 10-bit direct mapping scheme. The table provides read/write
access from the SMI interface, and each of the entries can be configured as a static entry. A static entry
indicates that this entry is controlled by the external management processor and automatic aging and
learning of the entry will not take place. To prevent MAC address mapping collisions, the embedded 16-
entry Content-Addressable Memory (CAM) offers another memory space for recording the MAC address
when the mapped entry in the lookup table is occupied. For each incoming packet, the RTL8309SB
searches the entries in the lookup table and the 16-entry CAM simultaneously. Then it obtains the correct
destination port information to determine which output port the packet should be forwarded to. The aging
time of the RTL8309SB is around 300 seconds (this may be sped up to 800µs via EEPROM
configuration).
The ninth port of the RTL8309SB implements a MAC module without a PHY transceiver to provide an
MII interface for connection with an external PHY or MAC in specific applications. This MII interface
may be set to MII PHY mode, SNI PHY mode, or MII MAC mode to work with an external MAC
module in a routing engine application, PHY module in a HomePNA application, or other physical layer
transceivers. In order to operate correctly, both sides of the connection must be configured to the same
speed, duplex, and flow control settings. Four pins are used for the ninth port to force the link status. This
interface should be 2.5V or 3.3V compatible depending on the voltage supplied to the power pin VDDIO
of this interface.
The RTL8309SB is capable of preventing broadcast storms by setting strapping pins upon system reset.
When this function is enabled, it will drop broadcast packets after receiving 64 continuous broadcast
packets. This counter will be reset to 0 every 800ms or when the RTL8309SB receives a non-broadcast
packet.
The RTL8309SB displays the port status via four LED indicators (with optional blinking time setting).
These LEDs blink for diagnostic purposes at system reset time. The RTL8309SB provides various type of
Each port supports four LED pins for status indication. The indicated status of these four LED pins may be changed by setting
different values for strapping pin LED_MODE[2:0].
Note 1: All LED statuses are represented as active-low or high depending on input strapping, except Bi-color Link/Act in
Miscellaneous Pins
The clock tolerance is +-50ppm.
To complete the reset function, this pin must be asserted for at least
10ms. After reset, about 30ms is needed for the RTL8309SB to
complete the internal test function and initialization.
Note: This pin is a Schmitt input pin.
This pin should be grounded through a 2.0K ohm resistor.
Not Connected – Floating in normal operation.
116, 121
Port LED Pins
Table 4. Miscellaneous Pins
Bi-color LED mode, whose polarity depends on Bi-color Speed status.
Note 2: Those pins are dual function pins: output for LED and input for strapping.
113 Ipu/O Input upon reset = Enable loading of serial EEPROM upon reset.
1: Enable Serial EEPROM load upon reset
0: Disable Serial EEPROM load upon reset
This pin is three state when pin RESET#=0.
When the RTL8309SB detects an EEPROM connected to it, this pin
becomes SCL (output) to load the serial EEPROM upon reset. Then
the pin changes to MDC (input) after reset. In this case, this pin
should be pulled high (VDDIO 2.5V/3.3V) by external register.
When the RTL8309SB does not detect an EEPROM connected to it,
this pin is MDC (input). In this case, it needs an external pull-high
resistor, unless it is floated.
1
-
RTL8309SB
Datasheet
Pin Name Pin No. Type Description Default
SDA_MDIO 55 I/O EEPROM Serial Data Input/Output or MDIO.
This pin is three state when pin RESET#=0.
When the RTL8309SB detects an EEPROM connected to it, this pin
becomes SDA (input/output) to load the serial EEPROM upon reset.
The pin changes to MDIO (input/output) after reset.
When the RTL8309SB does not detect an EEPROM connected to it,
this pin is MDIO (input/output). It should be pulled high by an
external resistor.
-
5.6.
Note: All strapping pins are dual function pins: output for LED and input for strapping. The table below covers strapping only.
See Port LED Pins, on page 9, for LED pin settings.
Pin Name Pin No. Type Description Default
En_ANEG
/P1_LED[2]
En_FCTRL
/P1_LED[1]
En_BKPRS
/P1_LED[0]
Force_Duplex
/P0_LED[3]
Force_Speed
/P0_LED[2]
Strapping Pins
104
105
106
109
110
Table 7. Strapping Pins
Input upon reset = Enable Auto-negotiation function.
Ipu
1: Enable the auto-negotiation function (NWay mode) and set PHY
register 0.12
0: Disable the auto-negotiation function (force mode) and deselect
PHY register 0.12
Output after reset = used for LED.
Input upon reset = Enable flow control ability in full duplex mode.
Ipu
1: In NWay mode, this pin sets PHY register 4.10, but the flow
control function is finally enabled based on the auto negotiation
result. In force mode, this pin will always enable the flow control
function
0: Disable the flow control function
Output after reset = used for LED.
Input upon reset = Enable backpressure ability in half duplex mode.
Ipu
1: Enable backpressure
0: Disable backpressure
Output after reset = used for LED.
Force duplex mode.
Ipu
This pin sets PHY Reg.0.8 and influences the contents of PHY
Reg.4.
1: Force full duplex if auto-negotiation is disabled
0: Force half duplex if auto-negotiation is disabled
Output after reset = used for LED.
Force operating speed.
Ipu
This pin sets PHY Reg.0.13 and influences the contents of PHY
Reg.4.
1: Force 100Mbps speed if auto-negotiation is disabled
0: Force 10Mbps speed if auto-negotiation is disabled
Input upon reset = Disable Broadcast Storm Control.
Ipu
1: Disable Broadcast Storm Control
0: Enable Broadcast Storm Control
Output after reset = used for LED.
Input upon reset = Enable blinking of LEDs upon reset.
Ipu
1: Enable power-on LED blinking for diagnosis
0: Disable power-on LED blinking
Output after reset = used for LED.
Input upon reset = Enable Auto crossover detection.
Ipu
1: Enable auto crossover detection
0: Disable auto crossover detection. MDI only
Output after reset = used for LED.
Disable auto turn off of flow control ability.
Ipu
1: Disable
0: Enable auto turn off flow control ability on the low priority queue
for 1~2 seconds whenever the port receives a high priority frame.
The flow control ability will be re-enabled if this port does not
receive another high priority frame during this 1~2 second duration
Output after reset = used for LED.
Input upon reset = Enable forwarding of 802.1D specified reserved
Ipu
group MAC address frames.
1: Forward reserved control packets with DID=01-80-C2-00-00-03
to 01-80-C2-00-00-0F
0: Filter reserved control packets with DID=01-80-C2-00-00-03 to
01-80-C2-00-00-0F
Output after reset = used for LED.
Input upon reset = Enable carrier sense defering function.
Ipu
1: Enable carrier sense deferring function for half duplex
backpressure
0: Disable carrier sense deferring function for half duplex
backpressure
Output after reset = used for LED.
Enable 48 pass 1 mechanism.
Ipu
1: 48 pass 1. Continuously collides 48 input packets then passes 1
packet to retain system resources and avoid repeater partition when
buffer is full
0: Continuously collides input packets to avoid packet loss when
buffer is full
Output after reset = used for LED.
Input upon reset = Enable aggressive back-off mechanism.
Ipu
1: Enable more aggressive back-off mechanism in half duplex mode
for performance enhancement. The back-off limitation will become 3
in this mode (default is 10)
0: Disable aggressive back-off mechanism in half duplex mode
Output after reset = used for LED.
Input upon reset = Select the max Pause frame count during a
Ipu
congested event.
1: Generates maximum of 32 pause frames, even if congestion still
exists
0: Continuously generates pause frames until congestion is resolved
Output after reset = used for LED.
Disable Two Port Trunking function.
Ipu
1: Disable two port trunking function
0: Port 0 and port 1 are combined as one trunk
Output after reset = used for LED.
Input upon reset = Select high priority port for port-based priority
Ipu
QoS.
11: Disable port-based priority function
10: Select port 0 as high priority port
01: Select port 2 as high priority port
00: Select port 3 as high priority port
Output after reset = used for LED.
Input upon reset = Disable 802.1p VLAN tag priority based QoS.
Ipu
1: Disable 802.1p priority classification for ingress packets on each
port
0: Enable 802.1p priority classification for ingress packets on each
port. A User priority field in the VLAN tag greater or equal to 4 will
be considered a high priority packet
Output after reset = used for LED.
Input upon reset = Disable Diffserv priority based QoS.
Ipu
1: Disable diffserv priority classification for ingress packets on each
port
0: Enable diffserv priority classification for ingress packets on each
port
Output after reset = used for LED.
Input upon reset = Weighted round robin ratio priority queue.
Ipu
The frame service ratio between the high priority queue and low
priority queue is:
11=16:1
10=Always high priority queue first
01=8:1
00=4:1
1: Disable VLAN
0: Enable VLAN. The default VLAN membership configuration is
MII port overlapped with all the other ports to form 8 individual
VLANs. The default membership configuration may be modified by
setting internal registers via the SMI interface or EEPROM
Output after reset = used for LED.
Input upon reset = Disable Leaky VLAN.
Ipu
1: Disable forwarding of unicast frames to other VLANs
0: Enable forwarding of unicast frames to other VLANs
Note: Broadcast and multicast frames adhere to the VLAN
configuration.
Output after reset = used for LED.
Input upon reset = Disable ARP broadcast to all VLANs.
Ipu
1: Disable broadcast of ARP broadcast packets to all VLANs
0: Enable broadcast of ARP broadcast packets to all VLANs
Output after reset = used for LED.
Input upon reset = Select blinking speed of activity and collision
Ipu
LED.
1: On 43ms then Off 43ms
0: On 120ms then Off 120ms
Note: This pin only af fect s LE Ds that are configured in LED mode 1,
5, and 7.