English
Language : 

MDS212 Datasheet, PDF (50/111 Pages) Zarlink Semiconductor Inc – 12-Port 10/100Mbps Ethernet Switch
MDS212
Data Sheet
13.1.1 Physical Pins
There are 6 related pins to Port Mirroring functions:
• PM_DI [1:0]
• PM_DENI
signals
PM_DENI
Port Mirroring Input Data Bit [1:0]
Receive the mirrored data signal from the remote MDS212.
Port Mirroring Data Enable signal for PM_DI Input Provide Data Enable signal for PM_DI
Port Mirroring Data Enable signal for PM_DI Input Provide Data Enable signal for PM_DI signals
PM_DO[1:0]
Port Mirroring Output Data Bit [1:0] Transmit the mirrored data signal to remote MDS212.
PM_DENO
Port Mirroring Data Enable Output. Provide Data Enable signal for PM_DO signals
Refer to Figure 17 for connecting above pins.
13.1.2 Setting Register For Port Mirroring
APMR register controls the mirrored port and the designated mirroring port. The definition of the register is shown in
section 13.1.2.1 “APMR- Port Mirroring Register” .
13.1.2.1 APMR- Port Mirroring Register
31
15 14
13
12 11
0
MPO Rx/Tx L/R
Mirror Port
Bit [11:0]
Mirr_Port
10/100 port is chosen to be mirrored, (port bit map)
Bit [12]
Local/Remote Indicate the mirrored port from local or remote device.
0=local
1=remote
Note that at most one of bits in Bit[11:0] can be set to 1.
Bit [13]
Rx/Tx
Whether mirror receiving data or transmitting data
0= Transmission Mirroring,
1=Receiving Mirroring
Bit [14]
MP0
Mirror to Port 0 (Default=0)
MP0=1 Mirror to port 0
MP0=0 Mirror not go to port 0. I.e., to PM_DO pins.
Bit [31:15]
Reserve
The following examples, based on the configuration of Figure 17, illustrate how to set the APMR register:
Example 1: Mirroring port 1 to port 0 and Mirror transmission direction.
For Chip 0
Set APMR[11:0]=0x002 Mirrored port=1
Set APMR[12]=0Local mirrored port
Set APMR[13]=0Transmission mirroring
Set APMR[14]=1Port 0 is the mirroring port
50
Zarlink Semiconductor Inc.