
MVTX2802
Data Sheet
49
Zarlink Semiconductor Inc.
11.2 Directly Accessed Registers
11.2.1 INDEX_REG0
Address bits [7:0] for indirectly accessed register addresses
Address = 0 (write only)
11.2.2 INDEX_REG1 (only needed for CPU 8-bit bus mode)
Address bits [15:8] for indirectly accessed register addresses
Address = 1 (write only)
11.2.3 DATA_FRAME_REG
Data of indirectly accessed registers. (8 bits)
Address = 2 (read/write)
11.2.4 CONTROL_FRAME_REG
CPU transmit/receive switch frames. (8/16 bits)
Address = 3 (read/write)
Format: (see processor interface application note for more information)
-
Send frame from CPU: (In sequence)
Frame Data (size should be in multiple of 8-byte)
8-byte of Frame status (Frame size, Destination port #, Frame O.K. status)
-
CPU Received frame: (In sequence)
8-byte of Frame status (Frame size, Source port #, VLAN tag)
Frame Data
11.2.5 COMMAND&STATUS
CPU interface commands (write) and status
Address = 4 (read/write)
When the CPU
reads
this register:
Bit [0]: Transmit Control Command 1 Ready; Must read true before CPU writes new Control Command 1.
Bit [1]: Receive Control Command 1 Ready; Must read true before CPU reads a new Control Command 1.
Bit [2]: Receive Control Command 2 Ready; Must read true before CPU reads a new Control Command 2.
Bit [3]: Receive CPU Frame Ready; Must read true before receiving a CPU frame and at every 8-byte boundary within
a CPU frame.
Bit [4]: Transmit CPU Frame Ready; Must read true before transmitting a CPU frame and at every 16-byte boundary
within a CPU frame.
Bit [5]: End of Receive CPU Frame to indicate that the last 8 bytes need to be read.
Bit [15:6]: Reserved.
When the CPU
writes
to this register:
Bit [0]: End of Transmit Control Command indicator; Set after CPU writes a Control Command Frame into Rx buffer.
Bit [1]: End of Receive Control Command 1 indicator; Set after CPU reads out a Control Command 1 Frame from Tx
buffer 1.
Bit [2]: End of Receive Control Command 2 indicator; Set after CPU reads out a Control Command 2 Frame from Tx
buffer 2.
Bit [3]: End of Receive CPU Frame indicator. Set after CPU reads out a CPU frame or to flush out the rest of CPU