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.
EEPROM
existence
Accept Error
disable
IEEE 802.3x
transmit flow
control enable
IEEE 802.3x
receive flow
control enable
Broadcast input
or output drop
Aging enable 0.2 1: Enable aging function in the switch
Fast aging enable 0.1 1: An entry learned in the lookup table will be aged out if it is not updated
Enable ISP MAC
Address
Translation
0.7 1: EEPROM does not exist
0: EEPROM exists
0.6 1: Filter bad packets in normal operation
0: Switch all packets including bad ones
0.5 1: Invoke transmit flow control based on auto-negotiation result
0: Switch will not enable transmit flow control
0.4 1: When the switch receives a pause control frame, it has the ability to stop
the next transmission of a normal frame until the timer has expired based
on the auto negotiation result
0: Receive flow control not enabled
0.3 1: Broadcast input drop is selected
0: Broadcast output drop is selected
0: Disable aging function in the switch
within an 800µs period
0: Disable fast aging function. The normal aging time of the RTL8309SB is
around 200~300 seconds
0.0 1: Enable ISP MAC Address Translation
0: Disable ISP MAC Address Translation
1.2 1: Disable the 802.1Q tagged-VID Aware function
0: Use tagged-VID VLAN mapping for tagged frames but still use
Port-Based VLAN mapping for priority-tagged and untagged frame
111
1
0
RTL8309SB
Datasheet
Name Byte.bit Description Default
Disable VLAN
member set
ingress filtering
Disable VLAN
tag admit control
1.1 1: The switch will not drop the received frame if the ingress port of this
packet is not included in the matched VLAN member set
0: The switch will drop the received frame if the ingress port of this packet
is not included in the matched VLAN member set
1.0 1: The switch accepts all frames received
0: The switch will only accept tagged frames and will drop untagged
frames
1
1
6.1.3. Global Control Register2
Table 11. Global Control Register2
Name Byte.bit Description Default
Enable default
high priority
DiffServ code
point
Reserved 2.6~2.0 1111
2.7 1: The default DiffServ code point listed below will be considered a high
priority code point if DiffServ priority function is enabled
EF – 101110
AF – 001010, 010010, 011010, 100010
Network Control – 111000, 110000
0: The default DiffServ code point will be considered low priority
1
111
6.1.4. Global Control Register3
Table 12. Global Control Register3
Name Byte.bit Description Default
802.1p base
priority
Trunking port
assignment
Queue weight 3.3~3.2 The frame service ratio between the high priority queue and low priority
Disable IP
priority for IP
address [A]
Disable IP
priority for IP
address [B]
3.7~3.5 Used to classify priority for incoming 802.1Q packets when 802.1p priority
classification is enabled. “User priority” compares against this value.
>=: Classify as high priority
<: Classify as low priority
3.4 1: Combine port 0 and 1 as one trunking port, if trunking is enabled by
strapping pin, Dis_Trunk
0: Combine port 6 and 7 as one trunking port, if trunking is enabled by
strapping pin, Dis_Trunk
queue is:
11=16:1
10=always high priority queue first
01=8:1
00=4:1
3.1 1: The switch will compare both the source and destination IP addresses of
an incoming packet against the value, IP address [A] AND IP mask [A], to
classify priority for the packet
0: The switch will not compare the source or destination IP addresses of an
incoming packet against the value, IP address [A] AND IP mask [A]
3.0 1: The switch will compare both the source and destination IP addresses of
an incoming packet against the value, IP address [B] AND IP mask [B], to
classify priority for the packet
0: The switch will not compare the source and destination IP addresses of
an incoming packet against the value, IP address [B] AND IP mask [B]
Enable
Differential
Service Code
Point [B]
Reserved 4.6 1
Differential
Service Code
Point [B]
4.7 1: If Differential Service Priority is enabled, this bit specifies differential
service code point [B] is high priority
0: If Differential Service Priority is enabled, this bit specifies differential
service code point [B] is low priority
4.5~4.0 Used to specify a high priority differential service code point B. For
example, if these bits are set to “000000”, all incoming packets with a TOS
field equal to “000000” will be considered high priority packets.
6.1.6. Global Control Register5
Table 14. Global Control Register5
Name Byte.bit Description Default
Enable
Differential
Service Code
Point [A]
Reserved 5.6 1
Differential
Service Code
Point [A]
5.7 1: If Differential Service Priority is enabled, this bit specifies differential
service code point [A] is high priority
0: If Differential Service Priority is enabled, this bit specifies differential
service code point [A] is low priority
5.5~5.0 Used to specify a high priority differential service code point A. For
example, if these bits are set to “111111”, all incoming packets with a TOS
field equal to “000000” will be considered high priority packets.
10=Insert PVID to non-tagged packets.
01=Remove tag from tagged packets.
00=Replace the VID with a PVID for tagged packets and insert a PVID to
non-tagged packets.
11
1
11
6.2.2. Port 0 Control 1
Table 18. Port 0 Control 1
Name Byte.bit Description Default
Reserved 9.7~9.6
Local loopback 9.5 1: Perform ‘local loopback’, i.e. loop back MAC’s RX back to TX
9.4 1: The switch will replace a NULL VID with a port VID (12 bits)
0: No replacement for a NULL VID
9.3 1: If the received packets are tagged, the switch will discard packets whose
VID does not match the ingress port’s PVID
0: No packets will be dropped
9.2 1: Disable 802.1p priority classification for ingress packets on port 0
0: Enable 802.1p priority classification on port 0
9.1 1: Disable Diffserv priority classification for ingress packets on port 0
0: Enable Diffserv priority classification on Port 0
9.0 1: Disable port priority function
0: Enable port priority function. Ingress packets from port 0 will be
classified as high priority
This register along with byte 13.0 forms a 9-bit field that specifies which
ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
Datasheet
1000
1
1
1
0000
0001
6.2.5. Port 0 Control 4
Table 21. Port 0 Control 4
Name Byte.bit Description Default
Port 0 VLAN
index [3:0]
Reserved 13.3~
VLAN ID [A]
membership Bit
[8]
VLAN ID [A]
[7:0]
Reserved 15.7~
VLAN ID [A]
[11:8]
13.7~
13.4
13.1
13.0 This register along with byte 12.7~12.0 forms a 9-bit field that specifies
14.7~
14.0
15.4
15.3~
15.0
In a port-based VLAN configuration, this register indexes port 0’s ‘Port
VLAN Membership’, which may be defined in one of the registers ‘VLAN
ID [A] Membership’ to “VLAN ID [I] Membership”. Port 0 can only
communicate within the membership. This register also indexes to a default
Port VID (PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
111
which ports are members of the VLAN. If a destination address look up
fails, packets associated with this VLAN will be forwarded to ports
specified in this field. E.g., 1 0000 0001 means port 8 and 0 are in this
VLAN.
VLAN Entry [A]
This register along with byte 15.3~15.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN A.
1111
This register along with byte 14.7~14.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN A.
If IP priority for IP address [A] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [A]
AND IP mask [A], to classify priority for the packet.
IP Addr ess [A]
If IP priority for IP address [A] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [A]
AND IP mask [A], to classify priority for the packet.
IP Addr ess [A]
If IP priority for IP address [A] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [A]
AND IP mask [A], to classify priority for the packet.
IP Addr ess [A]
If IP priority for IP address [A] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [A]
AND IP mask [A], to classify priority for the packet.
IP Addr ess [B]
If IP priority for IP address [B] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [B]
AND IP mask [B], to classify priority for the packet.
IP Addr ess [B]
If IP priority for IP address [B] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [B]
AND IP mask [B], to classify priority for the packet.
IP Addr ess [B]
If IP priority for IP address [B] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [B]
AND IP mask [B], to classify priority for the packet.
IP Addr ess [B]
If IP priority for IP address [B] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [B]
AND IP mask [B], to classify priority for the packet.
0: Disable port 1 half duplex backpressure
11=Do not insert or remove VLAN tags to/from packets.
10=Insert PVID to non-tagged packets.
01=Remove tag from tagged packets.
00=Replace the VID with a PVID for tagged packets and insert a PVID to
non-tagged packets.
Datasheet
Default
11
1
11
6.2.8. Port 1 Control 1
Table 24. Port 1 Control 1
Name Byte.bit Description Default
Reserved 25.7
~25.6
Local loopback 25.5 1: Perform ‘local loopback’, i.e. loop back MAC’s RX back to TX
This register along with byte 29.0 forms a 9-bit field that specifies which
ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
Datasheet
1000
1
1
1
0000
0010
6.2.11. Port 1 Control 4
Table 27. Port 1 Control 4
Name Byte.bit Description Default
Port 1 VLAN
index [3:0]
Reserved 29.3~
VLAN ID [B]
membership Bit
[8]
VLAN ID [B]
[7:0]
Reserved 31.7~
VLAN ID [B]
[11:8]
29.7~
29.4
29.1
29.0 This register along with byte 28.7~28.0 forms a 9-bit field that specifies
30.7~
30.0
31.4
31.3~
31.0
In a port-based VLAN configuration, this register indexes port 1’s ‘Port
VLAN Membership’, which may be defined in one of the registers ‘VLAN
ID [A] Membership’ to “VLAN ID [I] Membership”. Port 1 can only
communicate within the membership. This register also indexes to a default
Port VID (PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
111
which ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
VLAN Entry [B]
This register along with byte 31.3~31.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN B.
1111
This register along with byte 30.7~30.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN B.
If IP priority for IP address [A] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [A]
AND IP mask [A], to classify priority for the packet.
IP Mask [A ]
If IP priority for IP address [A] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [A]
AND IP mask [A], to classify priority for the packet.
IP Mask [A ]
If IP priority for IP address [A] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [A]
AND IP mask [A], to classify priority for the packet.
IP Mask [A ]
If IP priority for IP address [A] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [A]
AND IP mask [A], to classify priority for the packet.
IP Mask [B]
If IP priority for IP address [B] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [B]
AND IP mask [B], to classify priority for the packet.
IP Mask [B]
If IP priority for IP address [B] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [B]
AND IP mask [B], to classify priority for the packet.
IP Mask [B]
If IP priority for IP address [B] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [B]
AND IP mask [B], to classify priority for the packet.
IP Mask [B]
If IP priority for IP address [B] is enabled, the switch will compare the
source IP address of an incoming packet against the value, IP address [B]
AND IP mask [B], to classify priority for the packet.
Reserved 40.3 1
Backpressure
enable
VLAN tag
insertion and
removal
40.2 1: Enable port 2 half duplex backpressure
0: Disable port 2 half duplex backpressure
40.1~
40.0
11=Do not insert or remove VLAN tags to/from packets.
10=Insert PVID to non-tagged packets.
01=Remove tag from tagged packets.
00=Replace VID with PVID for tagged packets and insert PVID to nontagged packets.
6.2.14. Port 2 Control 1
Table 30. Port 2 Control 1
Name Byte.bit Description Default
Reserved 41.7~
41.6
Local loopback 41.5 1: Perform ‘local loopback’, i.e. loop back MAC’s RX back to TX
This register along with byte 45.0 forms a 9-bit field that specifies which
ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
6.2.17. Port 2 Control 4
Table 33. Port 2 Control 4
Name Byte.bit Description Default
Port 2 VLAN
index [3:0]
Reserved 45.3~
VLAN ID [C]
membership Bit
[8]
VLAN ID [C]
[7:0]
Reserved 47.7~
VLAN ID [C]
[11:8]
45.7~
45.4
45.1
45.0 This register along with byte 44.7~44.0 forms a 9-bit field that specifies
46.7~
46.0
47.4
47.3~
47.0
In a port-based VLAN configuration, this register indexes port 2’s ‘Port
VLAN Membership’, which may be defined in one of the registers ‘VLAN
ID [A] Membership’ to “VLAN ID [I] Membership”. Port 2 can only
communicate within the membership. This register also indexes to a default
Port VID (PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
111
which ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
VLAN Entry [C]
This register along with byte 47.3~47.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN C.
1111
This register along with byte 46.7~46.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN C.
Datasheet
0000
0100
0010
1
0000
0010
0000
6.2.18. Switch MAC Address
The Switch MAC address is used as the source address in MAC pause control frames.
Table 34. Switch MAC Address
Switch MAC Address
Switch MAC
Address [47:40]
Switch MAC
Address [39:32]
Switch MAC
Address [31:24]
Switch MAC
Address [23:16]
Switch MAC
Address [15:8]
Switch MAC
0: Disable port 3 half duplex backpressure.
11=Do not insert or remove VLAN tags to/from packets.
10=Insert PVID to non-tagged packets.
01=Remove tag from tagged packets.
00=Replace the VID with a PVID for tagged packets and insert a PVID to
non-tagged packets.
Datasheet
11
1
11
6.2.20. Port 3 Control 1
Table 36. Port 3 Control 1
Name Byte.bit Description Default
Reserved 55.7~
55.6
Local loopback 55.5 1: Perform ‘local loopback’, i.e. loop back MAC’s RX back to TX
This register along with byte 59.0 forms a 9-bit field that specifies which
ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
Datasheet
1000
Default
1
1
1
0000
1000
6.2.23. Port 3 Control 4
Table 39. Port 3 Control 4
Name Byte.bit Description Default
Port 3 VLAN
index [3:0]
Reserved 59.3~
VLAN ID [D]
membership Bit
[8]
VLAN ID [D]
[7:0]
Reserved 61.7~
VLAN ID [D]
[11:8]
59.7~
59.4
59.1
59.0 This register along with byte 58.7~58.0 forms a 9-bit field that specifies
60.7~
60.0
61.4
61.3~
61.0
In a port-based VLAN configuration, this register indexes port 3’s ‘Port
VLAN Membership’, which may be defined in one of the registers ‘VLAN
ID [A] Membership’ to “VLAN ID [I] Membership”. Port 3 can only
communicate within the membership. This register also indexes to a default
Port VID (PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
111
which ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
VLAN Entry [D]
This register along with byte 61.3~61.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN D.
1111
This register along with byte 60.7~60.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN D.
0: Disable port 4 half duplex backpressure
11=Do not insert or remove VLAN tags to/from packet.
10=Insert PVID to non-tagged packets.
01=Remove tag from tagged packets.
00=Replace the VID with a PVID for tagged packets and insert a PVID to
non-tagged packets.
Datasheet
Default
11
1
11
6.2.26. Port 4 Control 1
Table 42. Port 4 Control 1
Name Byte.bit Description Default
Reserved 69.7~
68,6
Local loopback 69.5 1: Perform ‘local loopback’, i.e. loop back MAC’s RX back to TX
This register along with byte 73.0 forms a 9-bit field that specifies which
ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
73.0 This register along with byte 72.7~72.0 forms a 9-bit field that specifies
In a port-based VLAN configuration, this register indexes port 4’s ‘Port
VLAN Membership’, which could be defined in one of the registers ‘VLAN
ID [A] Membership’ to “VLAN ID [I] Membership”. Port 4 can only
communicate within the membership. This register also indexes to a default
Port VID (PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
111
which ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
0100
1
RTL8309SB
Datasheet
Name Byte.bit Description Default
VLAN Entry [E]
VLAN ID [E]
[7:0]
Reserved 75.7~
VLAN ID [E]
[11:8]
74.7~
74.0
75.4
75.3~
75.0
This register along with byte 75.3~75.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN E.
1111
This register along with byte 74.7~74.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN E.
0000
0100
0000
6.3.
MII Port Control Pins
6.3.1. MII Port Control 0
Table 46. MII Port Control 0
Name Byte.bit Description Default
Reserved 76.7~
76.2
VLAN tag
insertion and
removal
76.1~
76.0
1111
11=Do not insert or remove VLAN tags to/from packets.
10=Insert PVID to non-tagged packets.
01=Remove tag from tagged packets.
00=Replace the VID with a PVID for tagged packets and insert a PVID to
non-tagged packets.
6.3.2. MII Port Control 1
Table 47. MII Port Control 1
Name Byte.bit Description Default
Transmission
enable
Reception enable 77.6 1: Enable packet reception on MII interface
77.7 1: Enable packet transmission on MII interface
0: Disable packet transmission on MII interface
0: Disable packet reception on MII interface
0: Disable switch address learning capability
77.4 1: Enable local loop back function. The switch will only forward local and
broadcast packets from the input of MII RX to the output of MII TX but drop
unicast packets from the input of MII RX. The other ports still can forward
packets to MII port
0: Disable local loop back function
77.3 1: Disable 802.1p priority classification for ingress packets on MII port
0: Enable 802.1p priority classification
77.2 1: Disable Diffserv priority classification for ingress packets on MII port
0: Enable Diffserv priority classification
77.1 1: Disable port priority function
0: Enable port priority function. Ingress packets from the MII port will be
classified as high priority
VLAN Entry [I]
78.7~
78.0
This register along with byte 79.0 forms a 9-bit field that specifies which
ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
79.7 1: The switch will replace a NULL VID with a port VID (12 bits)
0: No replacement for a NULL VID
79.6 1: If the received packets are tagged, the switch will discard packets with a
VID that does not match the ingress port default VID, which is indexed by
port 8’s “Port-based VLAN index”
0: No packets will be dropped
79.4~
79.1
79.0 This register along with byte 78.7~78.0 forms a 9-bit field that specifies
80.7~
80.0
81.4
81.3~
81.0
In a port-based VLAN configuration, this register indexes port 8’s ‘Port
VLAN Membership’, which may be defined in one of the registers ‘VLAN
ID [A] Membership’ to ‘VLAN ID [I] Membership’. Port 8 can only
communicate within the membership. This register also indexes to a default
Port VID (PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
which ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
VLAN Entry [I]
This register along with byte 81.3~81.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN I.
1111
This register along with byte 80.7~80.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN I.
Datasheet
0
0
1000
1
0000
1000
0000
6.3.4. CPU Port and WAN Port
Table 49. CPU Port and WAN Port
Name Byte.bit Description Default
WA N P o r t 8 2 . 7 ~
82.4
CPU Port 82.3~
82.0
Specifies the WAN port on the RTL8309SB.
1000=MII Port is WAN Port
0111=Port 7 is WAN Port 0110=Port 6 is WAN Port
0101=Port 5 is WAN Port 0100=Port 4 is WAN Port
0011=Port 3 is WAN Port 0010=Port 2 is WAN Port
0001=Port 1 is WAN Port 0000=Port 0 is WAN Port
Specifies the CPU port on the RTL8309SB.
1000=MII Port is CPU Port
0111=Port 7 is CPU Port 0110=Port 6 is CPU Port
0101=Port 5 is CPU Port 0100=Port 4 is CPU Port
0011=Port 3 is CPU Port 0010=Port 2 is CPU Port
0001=Port 1 is CPU Port 0000=Port 0 is CPU Port
0: Disable port 5 half duplex backpressure
11=Do not insert or remove VLAN tags to/from packet.
10=Insert PVID to non-tagged packets.
01=Remove tag from tagged packets.
00=Replace the VID with a PVID for tagged packets and insert a PVID to
non-tagged packets.
11
1
11
6.4.2. Port 5 Control 1
Table 51. Port 5 Control 1
Name Byte.bit Description Default
Reserved 84.7~
84.6
Local loopback 84.5 1: Perform ‘local loopback’, i.e. loop back MAC’s RX back to TX
This register, along with byte 88.0, forms a 9-bit field that specifies which
ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
Datasheet
1000
1
1
1
0010
0000
6.4.5. Port 5 Control 4
Table 54. Port 5 Control 4
Name Byte.bit Description Default
Port 5 VLAN index
[3:0]
Reserved 88.3~88.1 111
VLAN ID [F]
membership Bit [8]
VLAN ID [F] [7:0] 89.7~89.0 This register along with byte 90.3~90.0 defines the IEEE 802.1Q 12-
Reserved 90.7~90.4 1111
VLAN ID [F] [11:8] 90.3~90.0 This register along with byte 89.7~89.0 defines the IEEE 802.1Q 12-
88.7~88.4 In a port-based VLAN configuration, this register indexes port 5’s
‘Port VLAN Membership’, which may be defined in one of the
registers ‘VLAN ID [A] Membership’ to ‘VLAN ID [I] Membership’.
Port 5 can only communicate within the membership. This register
also indexes to a default Port VID (PVID) for each port. The PVID is
used in tag insertion and filtering if the tagged VID is not the same as
the PVID.
88.0 This register along with byte 87.7~87.0 forms a 9-bit field that
specifies which ports are members of the VLAN. If a destination
address look up fails, packets associated with this VLAN will be
forwarded to ports specified in this field. E.g., 1 0000 0001 means
port 8 and 0 are in this VLAN.
91.1~91.0 11=Do not insert or remove VLAN tags to/from packet.
10=Insert PVID to non-tagged packets.
01=Remove tag from tagged packets.
00=Replace the VID with a PVID for tagged packets and insert a
PVID to non-tagged packets.
11
1
11
6.4.7. Port 6 Control 1
Table 56. Port 6 Control 1
Name Byte.bit Description Default
Reserved 92.7~92.6 11
Local loopback 92.5 1: Perform ‘local loopback’, i.e. loop back MAC’s RX back to TX
0: Normal operation
Null VID
replacement
Discard Non
PVID packets
92.4 1: The switch will replace a NULL VID with a port VID (12 bits)
0: No replacement for a NULL VID
92.3 1: If the received packets are tagged, the switch will discard packets
whose VID does not match the ingress port’s PVID
0: No packets will be dropped
92.2 1: Disable 802.1p priority classification for ingress packets on port 6
0: Enable 802.1p priority classification
92.1 1: Disable Diffserv priority classification for ingress packets on port 6
0: Enable Diffserv priority classification
92.0 1: Disable port priority function
0: Enable port priority function. Ingress packets from port 6 will be
classified as high priority
95.7~95.0 This register along with byte 96.0 forms a 9-bit field that specifies
which ports are members of the VLAN. If a destination address look
up fails, packets associated with this VLAN will be forwarded to ports
specified in this field. E.g., 1 0000 0001 means port 8 and 0 are in this
VLAN.
1
1
1
0100
0000
6.4.10. Port 6 Control 4
Table 59. Port 6 Control 4
Name Byte.bit Description Default
Port 6 VLAN index
[3:0]
Reserved 96.3~96.1 111
VLAN ID [G]
membership Bit [8]
VLAN ID [G] [7:0] 97.7~97.0 This register along with byte 98.3~98.0 defines the IEEE 802.1Q 12-
Reserved 98.7~98.4 1111
VLAN ID [G]
[11:8]
96.7~96.4 In a port-based VLAN configuration, this register indexes port 6’s
‘Port VLAN Membership’, which may be defined in one of the
registers ‘VLAN ID [A] Membership’ to “VLAN ID [I]
Membership”. Port 6 can only communicate within the membership.
This register also indexes to a default Port VID (PVID) for each port.
The PVID is used in tag insertion and filtering if the tagged VID is not
the same as the PVID.
96.0 This register along with byte 95.7~95.0 forms a 9-bit field that
specifies which ports are members of the VLAN. If a destination
address look up fails, packets associated with this VLAN will be
forwarded to ports specified in this field. E.g., 1 0000 0001 means
port 8 and 0 are in this VLAN.
VLAN Entry [G]
bit VLAN identifier of VLAN G.
98.3~98.0 This register along with byte 97.7~97.0 defines the IEEE 802.1Q 12bit VLAN identifier of VLAN C.
99.1~99.0 11=Do not insert or remove VLAN tags to/from packet.
10=Insert PVID to non-tagged packets.
01=Remove tag from tagged packets.
00= Replace the VID with a PVID for tagged packets and insert a
PVID to non-tagged packets.
11
1
11
6.4.12. Port 7 Control 1
Table 61. Port 7 Control 1
Name Byte.bit Description Default
Reserved 100.7~100.6 11
Local loopback 100.5 1: Perform ‘local loopback’, i.e. loop back MAC’s RX back to TX
100.4 1: The switch will replace a NULL VID with a port VID (12 bits)
0: No replacement for a NULL VID
100.3 1: If the received packets are tagged, the switch will discard packets
whose VID does not match ingress port’s PVID
0: No packets will be dropped
100.2 1: Disable 802.1p priority classification for ingress packets on port 7
0: Enable 802.1p priority classification
100.1 1: Disable Diffserv priority classification for ingress packets on port 7
0: Enable Diffserv priority classification
100.0 1: Disable port priority function
0: Enable port priority function. Ingress packets from port 7 will be
classified as high priority
This register along with byte 104.0 forms a 9-bit field that specifies which
ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
6.4.15. Port 7 Control 4
Datasheet
1
1
1
1000
0000
Table 64. Port 7 Control 4
Name Byte.bit Description Default
Port 7 VLAN
index [3:0]
Reserved 104.3~
VLAN ID [H]
membership Bit
[8]
VLAN ID [H]
[7:0]
Reserved 106.7~
VLAN ID [H]
[11:8]
104.7~
104.4
104.1
104.0 This register along with byte 103.7~103.0 forms a 9-bit field that specifies
105.7~
105.0
106.4
106.3~
106.0
In a port-based VLAN configuration, this register indexes port 7’s ‘Port
VLAN Membership’, which may be defined in one of the registers ‘VLAN
ID [A] Membership’ to “VLAN ID [I] Membership”. Port 7 can only
communicate within the membership. This register also indexes to a default
Port VID (PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
111
which ports are members of the VLAN. If a destination address look up fails,
packets associated with this VLAN will be forwarded to ports specified in
this field. E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
VLAN Entry [H]
This register along with byte 106.3~106.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN H.
1111
This register along with byte 105.7~105.0 defines the IEEE 802.1Q 12-bit
VLAN identifier of VLAN H.
RO Read Only LH Latch High until clear
RW Read/Write SC Self Clearing
LL Latch Low until clear
RTL8309SB
Datasheet
7.1.
PHY 0 Registers
7.1.1. PHY 0 Register 0: Control
Table 65. PHY 0 Register 0: Control
Reg.bit Name Mode Description Default
0.15 Reset RW/SC 1: PHY reset. This bit is self-clearing. 0
0.14 Loopback
(digital loopback)
0.13 Speed Select RW 1: 100Mbps
0.12 Auto Negotiation
Enable
0.11 Power Down RW 1: Power down. All functions will be disabled except SMI
0.10 Isolate RW 1: Electrically isolates the PHY from RMII/SMII.
0.9 Restart Auto
Negotiation
0.8 Duplex Mode RW 1: Full duplex operation
0.[7:0] Reserved 0
RW 1: Enable loopback. This will loopback TXD to RXD and
ignore all activity on the cable media
0: Normal operation
0: 10Mbps
When NWay is enabled, this bit reflects the result of autonegotiation (Read only).
When NWay is disabled, this bit is strap option
‘Force_Speed’ and can be configured through SMI
(Read/Write).
RW 1: Enable auto-negotiation process
0: Disable auto-negotiation process
This bit can be set through SMI (Read/Write).
function
0: Normal operation
PHY is still able to respond to MDC/MDIO
0: Normal operation
RW/SC 1: Restart Auto-Negotiation process
0: Normal operation
0: Half duplex operation
When NWay is enabled, this bit reflects the result of autonegotiation (Read only).
When NWay is disabled, this bit is strap option
‘Force_Duplex’ and can be configured through SMI
(Read/Write).
1.2 Link Status RO/LL 1: Link is established. If the link fails, this bit will be 0 until
1.1 Jabber Detect RO/LH 1: Jabber detect enabled
1.0 Extended
Capability
RO The RTL8309SB will accept management frames with
preamble suppressed.
The RTL8309SB accepts management frames without
preamble. 32 minimum preamble bits are required for the
first SMI read/write transaction after reset. One idle bit is
required between any two management transactions as
defined in the IEEE 802.3u specifications.
RO 1: Auto-negotiation process completed. MII Reg.4, 5 are
valid if this bit is set
0: Auto-negotiation process not completed
0: Jabber detect disabled
The jabber function is disabled in 100Base-TX operation.
Jabber occurs when a predefined excessively long packet is
detected for 10Base-T. When the duration of TXEN exceeds
the jabber timer (21ms), the transmission and loopback
function are disabled and the COL LED starts blinking. After
TXEN goes low for more than 500 ms, the transmitter will be
re-enabled and the COL LED will stop blinking. Jabber
detect is supported only in 10Base-T operation.
Note: Whenever the link ability of the RTL8309SB is reconfigured, the auto-negotiation process should be executed again to
allow the configuration to take effect.
If this bit is set to 1, the RTL8309SB will reset all registers in it
except PHY registers and will not load configurations from
EEPROM or strapping pins. Software reset is designed to
provide a convenient way for users to change the configuration
via SMI. After changing register values in the RTL8309SB
(except PHY registers) via SMI, the external device must
execute a soft reset in order to update the configuration by
setting this bit to 1.
111
0
RTL8309SB
Datasheet
Reg.bit Name Mode Description Default
16.11 Disable VLAN RW 1: Disable VLAN
0: Enable VLAN. The default VLAN membership configuration
by internal register is MII port overlapped with all the other
ports to form 8 individual VLANs. This default membership
configuration may be modified by setting internal registers via
the SMI interface or EEPROM.
16.10 Disable 802.1Q tag
aware VLAN
16.9 Disable VLAN
member set ingress
filtering
16.8 Disable VLAN tag
admit control
16.7 EEPROM
existence
16.6 Accept Error
disable
16.5 IEEE 802.3x
transmit flow
control enable
16.4 IEEE 802.3x
receive flow
control enable
16.3 Broadcast input or
output drop
16.2 Aging enable RW 1: Enable aging function
RW 1: Disable 802.1Q tagged-VID Aware function. The
RTL8309SB will not check the tagged VID on received frames
to perform tagged-VID VLAN mapping. Under this
configuration, the RTL8309SB only uses the per port VLAN
index register to perform Port-Based VLAN mapping
0: Enable the Member Set Filtering function of VLAN Ingress
Rule. The RTL8309SB checks the tagged VID on received
frames with the VIDA[11:0]~VIDH[11:0] to index to a member
set, then performs VLAN mapping. The RTL8309SB uses
tagged-VID VLAN mapping for tagged frames but still uses
port-based VLAN mapping for priority-tagged and untagged
frames
RW 1: The switch will not drop a received frame if the ingress port
of this packet is not included in the matched VLAN member
set. It will still forward the packet to the VLAN members
specified in the matched member set. This setting works on
both port-based and tag-based VLAN configurations
0: The switch will drop the received frame if the ingress port of
this packet is not included in the matched VLAN member set
RW 1: The switch accepts all frames it receives whether tagged or
untagged
0: The switch will only accept tagged frames and will drop
untagged frames
RO 1: EEPROM does not exist (pin EnEEPROM=0 or pin
EnEEPROM=1 but EEPROM does not exist)
0: EEPROM exists (pin EnEEPROM=1 and EEPROM exists)
RW 1: Filter bad packets in normal operation
0: Switch all packets including bad ones. This bit is intended for
debugging purposes only
RW 1: Determines when to invoke flow control based on
auto negotiation results
0: Will not enable transmit flow control no matter what the
auto negotiation result is
RW 1: When the RTL8309SB receives a pause control frame, it has
the ability to stop the next transmission of a normal frame until
the timer is expired based on the auto negotiation result
0: Will not receive flow control no matter what the
auto negotiation result is
RW 1: Broadcast input drop is selected
0: Broadcast output drop is selected
0: Disable aging function. The addresses learned in the lookup
table will not be aged out. If the table is full, the last entry in the
table will be deleted to make room for the new entry
16.1 Fast aging enable RW 1: Enable fast aging function. The entry learned in the lookup
table will be aged out if it is not updated within an 800µs period
0: Disable fast aging function
16.0 Enable ISP MAC
Address
Translation
RW 1: Enable ISP MAC Address Translation function
0: Disable ISP MAC Address Translation function
7.1.7. PHY 0 Register 17: Global Control 1
Table 71. PHY 0 Register 17: Global Control 1
Reg.bit Name Mode Description Default
17.[15:13] 802.1p base
priority
17.12 Trunking port
assignment
17.[11:10] Queue weight RW The frame service ratio between the high priority queue and low
17.9 Disable IP priority
for IP address [A]
17.8 Disable IP priority
for IP address [B]
17.7 Enable default high
priority DiffServ
code point
17.[6:0] Reserved 1111111
RW Classifies priority for incoming 802.1Q packets, if 802.1p
priority classification is enabled. ‘User priority’ is compared
against this value.
>=: Classify as high priority
<: Classify as low priority
RW 1: Combine port 0 and 1 as one trunking port, if trunking is
enabled via strapping pin ‘Dis_Trunk’
0: Combine port 6 and 7 as one trunking port, if trunking is
enabled via strapping pin ‘Dis_Trunk’
priority queue is:
11=16:1
10=always high priority queue first
01=8:1
00=4:1
RW 1: Compare both the source and destination IP address of
incoming packets against the value, IP address [A] AND IP
mask [A], to classify packet priority
0: Do not compare the source or destination IP address of
incoming packets against the value ‘IP address [A] AND IP
mask [A]’
RW 1: Compare both the source and destination IP address of
incoming packets against the value, IP address [B] AND IP
mask [B], to classify packet priority
0: Do not compare the source or destination IP address of
incoming packets against the value ‘IP address [B] AND IP
mask [B]’
RW 1: The default DiffServ code point listed below will be
considered as high priority code point if the DiffServ priority
function is enabled.
EF – 101110
AF – 001010, 010010, 011010, 100010
Network Control – 111000, 110000
0: The default DiffServ code point will be considered low
priority
RW 1: If differential service priority is enabled, this bit specifies
differential service code point [A] is high priority
0: If differential service priority is enabled, this bit specifies
differential services code point [A] is low priority
RW Used to specify the high priority differential service code
point A. For example, if these bits are set to 111111, incoming
packets with a TOS field equal to 111111 will be considered
high priority packets.
RW 1: If differential service priority is enabled, this bit specifies
differential services code point [B] is high priority
0: If differential service priority is enabled, this bit specifies
differential services code point [B] is low priority
RW Used to specify a high priority differential service code point B.
For example, if these bits are set to 000000, incoming packets
with a TOS field equal to 000000 will be considered high
priority packets.
111111
111111
0
0
7.1.9. PHY 0 Register 19: Global Control 3
Table 73. PHY 0 Register 19: Global Control 3
Reg.bit Name Mode Description Default
19.15 Enable drop for 48
pass 1
19.14 Reserved 1
19.13 TX IPG
compensation
19.12 Disable loop
detection
19.11 Lookup table
accessible enable
19.10 Reserved 1
19.[9:0] Reserved 11 1100 0001
RW 1: Enable drop packet after SRAM full for 48 pass 1
0: Disable drop packet after SRAM full for 48 pass 1. This will
result in SRAM run out
RW 1: 90ppm TX IPG (InterPacketGap) compensation
0: 65ppm TX IPG (InterPacketGap) compensation
RW 1: Disable loop detection function
0: Enable loop detection function
RW 1: Lookup table is accessible via indirect access registers
0: Lookup table is not accessible
7.1.10. PHY 0 Register 22: Port 0 Control 0
Table 74. PHY 0 Register 22: Port 0 Control 0
Reg.bit Name Mode Description Default
22.[15:14] Reserved RW Reserved. 11
22.13 Local loopback RW 1: Perform ‘local loopback’, i.e. loop MAC’s RX back to TX
0: Normal operation
22.12 Null VID
replacement
RW 1: The switch will replace a NULL VID with a port VID (12
RW 1: If the received packets are tagged, the switch will discard
packets with a VID that does not match the ingress port default
VID, which is indexed by port 0’s ‘Port-based VLAN index’
0: No packets will be dropped
RW 1: Disable 802.1p priority classification for ingress packets on
port 0
0: Enable 802.1p priority classification
RW 1: Disable Diffserv priority classification for ingress packets on
port 0
0: Enable Diffserv priority classification
RW 1: Disable port priority function
0: Enable port priority function. Ingress packets from port 0 will
be classified as high priority
RW 11=Do not insert or remove VLAN tags to/from packets sent
out from this port.
10=The switch will add VLAN tags to packets if they are not
tagged. The switch will not add tags to packets already tagged.
The inserted tag is the ingress port’s ‘Default tag’, which is
indexed by port 0’s ‘Port-based VLAN index’.
01=The switch will remove VLAN tags from packets, if they
are tagged when these packets are send out from port 0. The
switch will not modify packets received without tags.
00=The switch will remove VLAN tags from packets then add
new tags to them. The inserted tag is the ingress port’s ‘Default
tag’, which is indexed by port 0’s ‘Port-based VLAN index’.
This is a replacement processing for tagged packets and an
insertion for untagged packets.
23.8 Loop status RO 1: A loop has been detected on port 0
23[7:4] Link quality RO 4-bit field indicating the link quality of the receive twisted-pair
23[3:0] Reserved 1000
RW 1: Enable packet transmission on port 0
0: Disable packet transmission on port 0
0: Disable packet reception on port 0
0: Disable switch address learning capability
0: No loop exists on port 0
or fiber link.
0000: Highest link quality
1111: Lowest link quality
7.1.12. PHY 0 Register 24: Port 0 Control 2 & VLAN Entry [A]
1
1
1
0
Table 76. PHY 0 Register 24: Port 0 Control 2 & VLAN Entry [A]
Reg.bit Name Mode Description Default
24[15:12] Port 0 VLAN index
[3:0]
24.[11~9] Reserved 111
24.[8:0] VLAN ID [A]
Membership Bit
[8:0]
In a port-based VLAN configuration, this register indexes port
0’s ‘Port VLAN Membership’, which can be defined in one of
the registers ‘VLAN ID [A] Membership’ to ‘VLAN ID [I]
Membership’. Port 0 can only communicate within the
membership. This register also indexes to a default Port VID
(PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
RW This 9-bit field specifies which ports are members of VLAN A.
If a destination address look up fails, the packet associated with
this VLAN will be broadcast to ports specified in this field. Bit
0 stands for port 0, bit 1 stands for port 8.
E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
7.1.13. PHY 0 Register 25: VLAN Entry [A]
Table 77. PHY 0 Register 25: VLAN Entry [A]
Reg.bit Name Mode Description Default
25.[15:12] Reserved 1111
25[11:0] VLAN ID [A] RW Defines the IEEE 802.1Q 12-bit VLAN identifier of VLAN A. 0000
This register has the same definition as PHY 0 Register 6: Auto-Negotiation Expansion, page 43.
7.2.6. PHY 1 Register 16~17: IP Priority Address [A]
Table 78. PHY 1 Register 16~17: IP Priority Address [A]
Reg.bit Name Mode Description Default
16 IP Address [A]
[31:16]
17 IP Address [A]
[15:0]
RW The switch will compare both the source and destination IP
addresses of an incoming packet against the value, IP address
[A] AND IP mask [A], to classify priority for the packet.
RW The switch will both compare the source and destination IP
addresses of an incoming packet against the value, IP address
[A] AND IP mask [A], to classify priority for the packet.
0xFFFF
0xFFFF
7.2.7. PHY 1 Register 18~19: IP Priority Address [B]
Table 79. PHY 1 Register 18~19: IP Priority Address [B]
Reg.bit Name Mode Description Default
18 IP Address [B]
[31:16]
19 IP Address [B]
[15:0]
RW The switch will compare both the source and destination IP
addresses of an incoming packet against the value, IP address
[B] AND IP mask [B], to classify priority for the packet, if IP
priority for IP address [B] is enabled.
RW The switch will compare both the source and destination IP
addresses of an incoming packet against the value, IP address
[B] AND IP mask [B], to classify priority for the packet, if IP
priority for IP address [B] is enabled.
This register has the same definition as PHY 0 Register 22: Port 0 Control 0, page 46.
Note: Reg 22.8 is not pin Sel_PortPri strap option for port 1. Default value for 22.8 is 1.
7.2.9. PHY 1 Register 23: Port 1 Control 1
This register has the same definition as PHY 0 Register 23: Port 0 Control 1, page 48.
7.2.10. PHY 1 Register 24: Port 1 Control 2 & VLAN Entry [B]
Table 80. PHY 1 Register 24: Port 1 Control 2 & VLAN Entry [B]
Reg.bit Name Mode Description Default
24[15~12] Port 1 VLAN index
[3:0]
24.[11:9] Reserved 111
24.[8:0] VLAN ID [B]
Membership Bit
[8:0]
RW In a port-based VLAN configuration, this register indexes port
1’s ‘Port VLAN Membership’, which could be defined in one of
the registers ‘VLAN ID [A] Membership’ to ‘VLAN ID [I]
Membership’. Port 1 can only communicate within the
membership. This register also indexes to a default Port VID
(PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
RW This 9-bit field specifies which ports are members of VLAN B.
If a destination address look up fails, packets associated with
this VLAN will be forwarded to ports specified in this field.
E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
0001
1
0000
0010
7.2.11. PHY 1 Register 25: VLAN Entry [B]
Table 81. PHY 1 Register 25: VLAN Entry [B]
Reg.bit Name Mode Description Default
25.[15:12] Reserved
25[11:0] VLAN ID [B] RW Defines the IEEE 802.1Q 12-bit VLAN identifier of VLAN B. 0000
7.3.
PHY 2 Registers
7.3.1. PHY 2 Register 0: Control
This register has the same definition as PHY 0 Register 0: Control, page 40.
7.3.2. PHY 2 Register 1: Status
This register has the same definition as PHY 0 Register 1: Status, page 41.
This register has the same definition as PHY 0 Register 6: Auto-Negotiation Expansion, page 43.
7.3.6. PHY 2 Register 16~17: IP Priority Mask [A]
Table 82. PHY 2 Register 16~17: IP Priority Mask [A]
Reg.bit Name Mode Description Default
16 IP Mask [A]
[31:16]
17 IP Mask [A] [15:0] RW The switch will compare both the source and destination IP
RW The switch will compare both the source and destination IP
addresses of an incoming packet against the value, IP address
[A] AND IP mask [A], to classify priority for the packet.
addresses of an incoming packet against the value, IP address
[A] AND IP mask [A], to classify priority for the packet.
0xFFFF
0xFFFF
7.3.7. PHY 2 Register 18~19: IP Priority Mask [B]
Table 83. PHY 2 Register 18~19: IP Priority Mask [B]
Reg.bit Name Mode Description Default
18 IP Mask [B]
[31:16]
19 IP Mask [B] [15:0] RW The switch will compare both the source and destination IP
RW The switch will compare both the source and destination IP
addresses of an incoming packet against the value, IP address
[B] AND IP mask [B], to classify priority for the packet, if IP
priority for IP address [B] is enabled.
addresses of an incoming packet against the value, IP address
[B] AND IP mask [B], to classify priority for the packet, if IP
priority for IP address [B] is enabled.
0xFFFF
0xFFFF
7.3.8. PHY 2 Register 22: Port 2 Control 0
This register has the same definition as PHY 0 Register 22: Port 0 Control 0, page 46.
Note: Reg 22.8 is pin Sel_PortPri strap option for port 2. Default value for 22.8 is 1.
7.3.9. PHY 2 Register 23: Port 2 Control 1
This register has the same definition as PHY 0 Register 23: Port 0 Control 1, page 48.
7.3.10. PHY 2 Register 24: Port 2 Control 2 & VLAN Entry [C]
Table 84. PHY 2 Register 24: Port 2 Control 2 & VLAN Entry [C]
Reg.bit Name Mode Description Default
24[15:12] Port 2 VLAN
Index [3:0]
24[11~9] Reserved This bytes are reserved for not used 111
24.[8:0] VLAN ID [C]
Membership Bit
[8:0]
RW In a port-based VLAN configuration, this register indexes
port 2’s ‘Port VLAN Membership’, which can be defined in one
of the registers ‘VLAN ID [A] Membership’ to ‘VLAN ID [I]
Membership’. Port 2 can only communicate within the
membership. This register also indexes to a default Port VID
(PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
RW This 9-bit field specifies which ports are members of VLAN C.
If a destination address look up fails, packets associated with
this VLAN will be forwarded to ports specified in this field.
E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
7.3.11. PHY 2 Register 25: VLAN Entry [C]
Table 85. PHY 2 Register 25: VLAN Entry [C]
Reg.bit Name Mode Description Default
25.[15:12] Reserved 1111
25[11:0] VLAN ID [C] RW Defines the IEEE 802.1Q 12-bit VLAN identifier of VLAN C. 0000
0010
1
0000
0100
0000
0010
7.4.
PHY 3 Registers
7.4.1. PHY 3 Register 0: Control
This register has the same definition as PHY 0 Register 0: Control, page 40.
7.4.2. PHY 3 Register 1: Status
This register has the same definition as PHY 0 Register 1: Status, page 41.
Table 86. PHY 3 Register 16~18: Switch MAC Address
Reg.bit Name Mode Description Default
16 Switch MAC
Address [47:32]
17 Switch MAC
Address [31:16]
18 Switch MAC
Address [15:0]
RW 16.[15:8] = Switch MAC Address Byte 4.
16.[7:0] = Switch MAC Address Byte 5.
RW 17.[15:8] = Switch MAC Address Byte 2.
17.[7:0] = Switch MAC Address Byte 3.
RW 18.[15:8] = Switch MAC Address Byte 0.
18.[7:0] = Switch MAC Address Byte 1.
0x5452
0x834C
0xB009
7.4.7. PHY 3 Register 22: Port 3 Control 0
This register has the same definition as PHY 0 Register 22: Port 0 Control 0, page 46.
Note: Reg 22.8 is pin Sel_PortPri strap option for port 3. Default value for 22.8 is 1.
7.4.8. PHY 3 Register 23: Port 3 Control 1
This register has the same definition as PHY 0 Register 23: Port 0 Control 1, page 48.
7.4.9. PHY 3 Register 24: Port 3 Control 2 & VLAN Entry [D]
Table 87. PHY 3 Register 24: Port 3 Control 2 & VLAN Entry [D]
Reg.bit Name Mode Description Default
24[15:12] Port 3 VLAN index
[3:0]
24[11~9] Reserved
24.[8:0] VLAN ID [D]
Membership Bit
[8:0]
RW In a port-based VLAN configuration, this register indexes
port 3’s ‘Port VLAN Membership’, which may be defined in
one of the registers ‘VLAN ID [A] Membership’ to ‘VLAN ID
[I] Membership’. Port 3 can only communicate within the
membership. This register also indexes to a default Port VID
(PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
RW This 9-bit field specifies which ports are members of VLAN D.
If a destination address look up fails, packets associated with
this VLAN will be forwarded to ports specified in this field.
E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
7.4.10. PHY 3 Register 25: VLAN Entry [D]
Table 88. PHY 3 Register 25: VLAN Entry [D]
Reg.bit Name Mode Description Default
25.[15:12] Reserved 1111
25[11:0] VLAN ID [D] RW Defines the IEEE 802.1Q 12-bit VLAN identifier of VLAN D. 0000
7.5.9. PHY 4 Register 24: Port 4 Control 2 & VLAN Entry [E]
Table 90. PHY 4 Register 24: Port 4 Control 2 & VLAN Entry [E]
Reg.bit Name Mode Description Default
24[15:12] Port 4 VLAN
Index
24.[11~9] Reserved 111
24.[8:0] VLAN ID [E]
Membership Bit
[8:0]
RW In a port-based VLAN configuration, this register indexes
port 4’s ‘Port VLAN Membership’, which may be defined in
one of the registers ‘VLAN ID [A] Membership’ to ‘VLAN ID
[I] Membership’. Port 4 can only communicate within the
membership. This register also indexes to a default Port VID
(PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
RW This 9-bit field specifies which ports are members of VLAN E.
If a destination address look up fails, packets associated with
this VLAN will be forwarded to ports specified in this field.
E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
7.5.10. PHY 4 Register 25: VLAN Entry [E]
Table 91. PHY 4 Register 25: VLAN Entry [E]
Reg.bit Name Mode Description Default
25.[15:12] Reserved 1111
25.[11:0] VLAN ID [E] RW Defines the IEEE 802.1Q 12-bit VLAN identifier of VLAN E. 0000
0100
1
0001
0000
0000
0100
7.6.
PHY 5 Registers
7.6.1. PHY 5 Register 0: Control
This register has the same definition as PHY 0 Register 0: Control, page 40.
7.6.2. PHY 5 Register 1: Status
This register has the same definition as PHY 0 Register 1: Status, page 41.
RW 1: Enable local loop back function. The switch will only
forward local and broadcast packets from the input of MII RX
to the output of MII TX, and will drop unicast packets from the
input of MII RX. The other ports still can forward packets to the
MII port
0: Disable local loop back function
RW 1: Disable 802.1p priority classification for ingress packets on
port 8
0: Enable 802.1p priority classification
RW 1: Disable Diffserv priority classification for ingress packets on
port 8
0: Enable Diffserv priority classification
RW 1: Disable port priority function
0: Enable port priority function. Ingress packets from port 8 will
be classified as high priority
RW 11=Do not insert or remove VLAN tags to/from packets sent
out from this port.
10=The switch will add VLAN tags to packets if they are not
tagged. The switch will not add tags to packets already tagged.
The inserted tag is the ingress port’s ‘Default tag’, which is
indexed by the MII port’s ‘Port-based VLAN index’.
01=The switch will remove VLAN tags from packets, if they
are tagged when these packets are send out from MII port. The
switch will not modify packets received without tags.
00=The switch will remove VLAN tags from packets then add
new tags to them. The inserted tag is the ingress port’s ‘Default
tag’, which is indexed by MII port’s ‘Port-based VLAN index’.
This is a replacement processing for tagged packets and an
insertion for untagged packets.
7.6.7. PHY 5 Register 17: MII Port Control 1 & VLAN Entry [I]
Table 93. PHY 5 Register 17: MII Port Control 1 & VLAN Entry [I]
Reg.bit Name Mode Description Default
17.15 Null VID
replacement
17.14 Discard NonPVID packets
17.13 Reserved 1
17.[12~9] Port 8 VLAN index
[3:0]
17.[8:0] VLAN ID [I]
Membership Bit
[8:0]
RW 1: The switch will replace a NULL VID with a port VID
(12 bits)
0: No replacement for a NULL VID
RW 1: If the received packets are tagged, the switch will discard
packets with a VID that does not match the ingress port default
VID, which is indexed by the MII port’s ‘Port-based VLAN
index’
0: No packets will be dropped
In port-based VLAN configuration, this register indexs to port
8’s ‘Port VLAN Membership’, which can be defined in register
‘VLAN ID [A] Membership’ to ‘VLAN ID [I] Membership’.
Port 8 can only communicate within the membership. This
register also indexes to a default Port VID (PVID) for each port.
The PVID is used in tag insertion and filtering if the tagged
VID is not the same as the PVID.
RW This 9-bit field specifies which ports are members of VLAN I.
If a destination address look up fails, packets associated with
this VLAN will be forwarded to ports specified in this field.
E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
0
0
1000
1
1111
1111
7.6.8. PHY 5 Register 18: VLAN Entry [I]
Table 94. PHY 5 Register 18: VLAN Entry [I]
Reg.bit Name Mode Description Default
18.[15:12] Reserved 1111
18.[11:0] VLAN ID [I] RW Defines the IEEE 802.1Q 12-bit VLAN identifier of VLAN I. 0000
7.6.9. PHY 5 Register 19: CPU Port & WAN Port
Table 95. PHY 5 Register 19: CPU Port & WAN Port
Reg.bit Name Mode Description Default
19.[15:8] Reserved
19.[7:4] WAN Port RW Specify the WAN port on the RTL8309SB.
19.[3:0] CPU Port RW Specify the CPU port on the RTL8309SB.
0xFF
1000=MII Port is WAN Port
0111=Port 7 is WAN Port 0110=Port 6 is WAN Port
0101=Port 5 is WAN Port 0100=Port 4 is WAN Port
0011=Port 3 is WAN Port 0010=Port 2 is WAN Port
0001=Port 1 is WAN Port 0000=Port 0 is WAN Port
1000=MII Port is CPU Port
0111=Port 7 is CPU Port 0110=Port 6 is CPU Port
0101=Port 5 is CPU Port 0100=Port 4 is CPU Port
0011=Port 3 is CPU Port 0010=Port 2 is CPU Port
0001=Port 1 is CPU Port 0000=Port 0 is CPU Port
This register has the same definition as PHY 0 Register 22: Port 0 Control 0, page 46.
Note: Reg 22.8 is not pin Sel_PortPri strap option for port 5. Default value for 22.8 is 1.
7.6.11. PHY 5 Register 23: Port 5 Control 1
This register has the same definition as PHY 0 Register 23: Port 0 Control 1, page 48.
7.6.12. PHY 5 Register 24: Port 5 Control 2 & VLAN Entry [F]
Table 96. PHY 5 Register 24: Port 5 Control 2 & VLAN Entry [F]
Reg.bit Name Mode Description Default
24.[15:12] Port 5 VLAN
Index [3:0]
24.[11~9] Reserved 111
24.[8:0] VLAN ID [F]
Membership Bit
[8:0]
RW In a port-based VLAN configuration, this register indexes
port 5’s ‘Port VLAN Membership’, which may be defined in
one of the registers ‘VLAN ID [A] Membership’ to ‘VLAN ID
[I] Membership’. Port 5 can only communicate within the
membership. This register also indexes to a default Port VID
(PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
RW This 9-bit field specifies which ports are members of VLAN F.
If a destination address look up fails, packets associated with
this VLAN will be forwarded to ports specified in this field.
E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
0101
1
0010
0000
7.6.13. PHY 5 Register 25: VLAN Entry [F]
Table 97. PHY 5 Register 25: VLAN Entry [F]
Reg.bit Name Mode Description Default
25.[15:12] Reserved 1111
25.[11:0] VLAN ID [F] RW Defines the IEEE 802.1Q 12-bit VLAN identifier of VLAN F. 0000
0000
0101
7.7.8. PHY 6 Register 24: Port 6 Control 2 & VLAN Entry [G]
Table 98. PHY 6 Register 24: Port 6 Control 2 & VLAN Entry [G]
Reg.bit Name Mode Description Default
24[15:12] Port 6 VLAN index
[3:0]
24.[11~9] Reserved 111
24.[8:0] VLAN ID [G]
Membership Bit
[8:0]
RW In a port-based VLAN configuration, this register indexes
port 6’s ‘Port VLAN Membership’, which may be defined in
one of the registers ‘VLAN ID [A] Membership’ to ‘VLAN ID
[I] Membership’. Port 6 can only communicate within the
membership. This register also indexes to a default Port VID
(PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
RW This 9-bit field specifies which ports are members of VLAN G.
If a destination address look up fails, packets associated with
this VLAN will be forwarded to ports specified in this field.
E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
7.7.9. PHY 6 Register 25: VLAN Entry [G]
Table 99. PHY 6 Register 25: VLAN Entry [G]
Reg.bit Name Mode Description Default
25.[15:12] Reserved 1111
25[11:0] VLAN ID [G] RW Defines the IEEE 802.1Q 12-bit VLAN identifier of VLAN G. 0000
Table 101. PHY 7 Register 17~20: Indirect Access Data
Reg.bit Name Mode Description Default
17 Indirect Data
[63:48]
18 Indirect Data
[47:32]
19 Indirect Data
[31:16]
20 Indirect Data
[15:0]
RW Bit 63~48 of indirect data.
Indirect Data [54] = If this bit is 1, indicates this entry is static
and will never be aged out. If this bit is 0, indicates this entry is
dynamically learned, aged, updated, and deleted.
Indirect Data [53:52] = 2-bit counter for internal aging.
Indirect Data [51:48] = The source port of this Source MAC
Address is learned.
RW Bit 47~32 of indirect data.
Indirect Data [47:40] = Source MAC Address [39:32].
Indirect Data [39:32] = Source MAC Address [47:40].
RW Bit 31~16 of indirect data.
Indirect Data [31:24] = Source MAC Address [23:16].
Indirect Data [23:16] = Source MAC Address [31:24].
RW Bit 15~0 of indirect data.
Indirect Data [15:8] = Source MAC Address [7:0].
Indirect Data [7:0] = Source MAC Address [15:8].
Bits 1~0 and Bits 15~8 of this register also determine the
address of data in the lookup table.
In a write cycle: Bits 1~0 and Bits 15~8 indirectly map to an
entry in the lookup table. The written data should be filled in
Indirect Data [63:0]
In a read cycle: Bits 1~0 and Bits 15~8 indirectly map to an
entry in the lookup table. The read back data will be shown in
Indirect Data [63:0].
0x00
0x00
0x00
0x00
7.8.8. PHY 7 Register 22: Port 7 Control 0
This register has the same definition as PHY 0 Register 22: Port 0 Control 0, page 46.
Note: Reg 22.8 is not pin Sel_PortPri strap option for port 7. Default value for 22.8 is 1.
7.8.9. PHY 7 Register 23: Port 7 Control 1
This register has the same definition as PHY 0 Register 23: Port 0 Control 1, page 48.
7.8.10. PHY 7 Register 24: Port 7 Control 2 & VLAN Entry [H]
Table 102. PHY 7 Register 24: Port 7 Control 2 & VLAN Entry [H]
Reg.bit Name Mode Description Default
24[15:12] Port 7 VLAN index
[3:0]
24.[11~9] Reserved 111
RW In a port-based VLAN configuration, this register indexes
port 7’s ‘Port VLAN Membership’, which can be defined in one
of the registers ‘VLAN ID [A] Membership’ to ‘VLAN ID [I]
Membership’. Port 7 can only communicate within the
membership. This register also indexes to a default Port VID
(PVID) for each port. The PVID is used in tag insertion and
filtering if the tagged VID is not the same as the PVID.
RW This 9-bit field specifies which ports are members of VLAN H.
If a destination address look up fails, packets associated with
this VLAN will be forwarded to ports specified in this field.
E.g., 1 0000 0001 means port 8 and 0 are in this VLAN.
7.8.11. PHY 7 Register 25: VLAN Entry [H]
Table 103. PHY 7 Register 25: VLAN Entry [H]
Reg.bit Name Mode Description Default
25.[15:12] Reserved 1111
25.[11:0] VLAN ID [H] RW Defines the IEEE 802.1Q 12-bit VLAN identifier of VLAN H. 0000
1
1000
0000
0000
0111
7.9.
PHY 8 Registers
7.9.1. PHY 8 Register 0: Control
Note: This r egister only works in MII PHY and SNI PHY mode. In MII MAC mode, these registers have no meaning.
Table 104. PHY 8 Register 0: Control
Reg.bit Name Mode Description Default
0.15 Reset RO 0: No reset allowed (permanently=0) 0
0.14 Loopback
(digital loopback)
0.13 Speed Select RW 1: 100Mbps
0.12 Auto Negotiation
Enable
0.11 Power Down RO 0: Normal operation (permanently=0) 0
0.10 Isolate RO 0: Normal operation (permanently=0) 0
0.9 Restart Auto
Negotiation
0.8 Duplex Mode RW 1: Full duplex operation
0.[7:0] Reserved
RO 0: Normal operation (permanently=0) 0
Pin MII_SPD
0: 10Mbps
When NWay is enabled, this bit reflects the result of autonegotiation (Read only).
When NWay is disabled, this bit can be set through SMI
(Read/Write).
RW 1: Enable auto-negotiation process
0: disable auto-negotiation process
This bit can be set through SMI (Read/Write).
RO 0: Normal operation (permanently=0) 0
Pin MII_DUP
0: Half duplex operation
When NWay is enabled, this bit reflects the result of autonegotiation (Read only).
When NWay is disabled, this bit may be set through SMI
(Read/Write).
0
Upon Reset Strapping MII_SPD_STA=1 and MII_DUP_STA=1 Reg0.13=1, Reg0.8=1
Strapping MII_SPD_STA=1 and MII_DUP_STA=0 Reg0.13=1, Reg0.8=0
Strapping MII_SPD_STA=0 and MII_DUP_STA=1 Reg0.13=0, Reg0.8=1
Strapping MII_SPD_STA=0 and MII_DUP_STA=0 Reg0.13=0, Reg0.8=0
Defau1t value of Reg4.10 is strapped from pin MII_FCTRL_STA
Default value of Reg1.2 is strapped from pin MII_LNK_STA#.
MII_LNK_STA# pulled down Reg1.2=1.
MII_LNK_STA# pulled up Reg1.2=0.
After Reset If PHY 8 register 4 is configured as Reg4.8=1, Reg4.7=1, Reg4.6=1, Reg4.5=1, the RTL8309SB
will reflect this configuration in PHY 8 register 0 as Reg0.13=1 and Reg0.8=1.
If PHY 8 register 4 is configured as Reg4.8=0, Reg4.7=1, Reg4.6=1, Reg4.5=1, the RTL8309SB
will reflect this configuration in PHY 8 register 0 as Reg0.13=1 and Reg0.8=0.
If PHY 8 register 4 is configured as Reg4.8=0, Reg4.7=0, Reg4.6=1, Reg4.5=1, the RTL8309SB
will reflect this configuration in PHY 8 register 0 as Reg0.13=0 and Reg0.8=1.
If PHY 8 register 4 is configured as Reg4.8=0, Reg4.7=0, Reg4.6=0, Reg4.5=1, the RTL8309SB
will reflect this configuration in PHY 8 register 0 as Reg0.13=0 and Reg0.8=0.
If the CPU polls register 5, the RTL8309SB replies with the contents in register 4.
If the CPU polls register 4, the RTL8309SB replies with the contents in register 4.
Datasheet
7.9.5. MII Port Force Mode
Table 108. MII Port Force Mode
Condition Description
Upon Reset Strapping MII_SPD_STA=1 and MII_DUP_STA=1 Reg0.13=1, Reg0.8=1
Strapping MII_SPD_STA=1 and MII_DUP_STA=0 Reg0.13=1, Reg0.8=0
Strapping MII_SPD_STA=0 and MII_DUP_STA=1 Reg0.13=0, Reg0.8=1
Strapping MII_SPD_STA=0 and MII_DUP_STA=0 Reg0.13=0, Reg0.8=0
Defau1t value of Reg4.10 is strapped from pin MII_FCTRL_STA.
Default value of Reg1.2 is strapped from pin MII_LNK_STA#.
MII_LNK_STA# pulled down Reg1.2=1.
MII_LNK_STA# pulled up Reg1.2=0.
After Reset The CPU only writes register 0.13 and 0.8 to configure a link status, then reads register 1.2 to
determine whether the link partner can link with this status.
If the MII port connects with an external MAC, such as the processor of a router application, it will act as a PHY. This is PHY
mode MII, or PHY mode SNI. In PHY mode MII or PHY mode SNI, the MII port uses the MAC part only, and provides an
external MAC interface to connect MACs of external devices. In order to connect both MACs, the MII of the switch MAC
should be reversed into PHY mode.
If the MII port connects with an external PHY, such as the PHY of a HomePNA application, it will act as a MAC. This is
MAC mode MII. In MAC mode MII, the MII port uses its MAC to connect to an external PHY and ignores the internal PHY
part.
The following figures illustrate various utilizations of the ninth port by setting strapping pins. They consist of the following
general system applications:
• General standalone 8-port switch applications. • HomePNA applications.
• Router applications. • Other PHY applications.
Router Application
HomePNA or Other PHY Application
8 LAN
Ports
1 WAN
Interface
RX+-[0]
TX+-[0]
RX+-[1]
TX+-[1]
RX+-[7]
TX+-[7]
ADSL or Cable
(MII Interface PHY)
RTL8309SB
10Base-T or
100Base-TX
PHYceiver
10Base-T or
100Base-TX
PHYceiver
10Base-T or
100Base-TX
PHYceiver
Mode
Select
PHY
Mode
Interface
Modem
MAC
Mode
13
/
13
/
MAC
MAC
10/100
Router
10/100
MAC 0
10/100
MAC 1
10/100
MAC 7
MAC 8
Switch Fabric, VLAN, QoS, Trunking
8 LAN
Ports
Interface
RX+-[0]
TX+-[0]
RX+-[1]
TX+-[1]
RX+-[7]
TX+-[7]
1 WAN
RTL8309SB
10Base-T or
100Base-TX
PHYceiver
10Base-T or
100Base-TX
PHYceiver
10Base-T or
100Base-TX
PHYceiver
Mode
Select
MAC
PHY
Mode
Mode
Interface
/
13
HomePNA or
Other PHYs
10/100
MAC 0
10/100
MAC 1
10/100
MAC 7
10/100
MAC 8
Switch Fabric, VLAN, QoS, Trunking
Figure 3. MII Port Application
MII Interface
In order to act as a PHY when the MII port is in PHY mode, some pins of the external MAC interface must be changed. For
example, TXC are input pins for MAC but output pins for PHY; so the pin MTXC/PRXC is input for MAC mode and output
for PHY mode. Refer to Figure 4, on page 72 to check the relationship between the RTL8309SB and the external device.
Note: Connect the input of the RTL8309SB to the output of the external device. The RTL8309SB has no RXER, TXER, and CRS
pins for MII signaling. Because the RTL8309SB does not support pin CRS, it is necessary to connect the MTXEN/PRXDV
(output) of PHY mode to both CRS and RXDV (input) of the external device.
Note 1: Pulled high or floating sets the speed to 100Mbps. Pulled down sets the speed to 10Mbp s.
Note 2: Pulled high or floating enables full duplex. Pulled down sets half duplex.
Note 3: Pulled high or floating enables flow control or backpressure. Pulled down di sa bl es flow control or backp ressure.
When IP-based based priority is applied, any incoming packets with IP priority equal to IP address [A] AND IP mask [A] or IP
address [B] AND IP mask [B] will be treated as high priority packets. IP priority [A] and IP priority [B] may be enabled or
disabled independently.
Flow Control Auto Turn Off
The RTL8309SB can be configured to turn off 802.3x flow control and backpressure flow control for 1~2 seconds whenever
the port receives VLAN-tagged or TOS/DS high priority frames. Flow control is re-enabled when no priority frame is received
08-00 Version IPv4=
0100
IHL TOS[0:5]= DS-
field
----
----
for a 1~2 second duration. The purpose of this function is to avoid head-of-line blocking on priority classification.
8.3.4. Insert/Remove VLAN Priority Tag
The RTL8309SB supports four types of insertion/removal of VLAN tags in packet, controlled by internal registers on a per-
port basis. They are classified as follows:
Type 11: Do not change packets (Default).
Type 10: Insert input port’s PVID for non-tagged packets. Do not change packets if they are already tagged.
Type 01: Remove VLAN tags from tagged packets. Do not change packets if they are not tagged.
Type 00: Remove VLAN tags from tagged packets then insert the input port’s PVID. For non-tagged packets, insert the input
port’s PVID.
In Type 10, if Null VID replacement is enabled, this function has higher priority than type 10. If both type 10 is selected and
Null VID replacement is enabled, the RTL8309SB inserts a PVID to non-tagged packets and replaces a null VID with a PVID
for tagged packets, and does nothing in tagged packets with a non-null VID.
If the tag removed frame is less than 64 bytes, it will be padded with an 0x20 pattern before the packet’s CRC field to fit the
64-byte minimum packet length of the IEEE 802.3 spec. The RTL8309SB will recalculate the FCS (Frame Check Sequence) if
The EEPROM interface is a 2-wire serial EEPROM interface providing 2K bits of storage space. The external device
connected to the RTL8309SB should be 2.5V or 3.3V depending on the VDDIO setting.
8.3.13. 24LC02 Device Operation
Clock and Data transitions: The SDA pin is normally pulled high with an external resistor. Data on the SDA pin may change
only during SCL low periods. Data changes during SCL high periods will indicate a start or stop condition as defined below.
Start Condition: A high-to-low transition of SDA with SCL high is the start condition and must precede any other command.
Stop Condition: A low-to-high transition of SDA with SCL high is a stop condition.
Acknowledge: All addresses and data are transmitted serially to and from the EEPROM in 8-bit words. The 24LC02 sends a
zero to acknowledge that it has received each word. This happens during the ninth clock cycle.
Random Read: A random read requires a ‘dummy’ byte write sequence to load in the data word address.
Sequential Read: For the RTL8309SB, the sequential reads are initiated by a random address read. After the 24LC02 receives
a data word, it responds with an acknowledgement. As long as the 24LC02 receives an acknowledgement, it will continue to
increment the data word address and clock out sequential data words in series.