8502 8502 Ethernet MII to AUI Interface Adapter 98210 Features Note: Check for latest Data Sheet revision before starting any designs. ■ Single Chip Connecting MII and AUI Interfaces SEEQ Data Sheets are now on the Web, at www.lsilogic.com. ■ AUI Interface to Ethernet Transceiver ■ MII Interface to Ethernet Controller ■ MI Interface for Configuration & Status This document is an LSI Logic document. Any reference to SEEQ Technology should be considered LSI Logic. ■ Few External Components ■ Meets All Applicable IEEE 802.3 Standards ■ Interface to External E 2PROM for Automatic Preloading of MI Serial Port Bits Description ■ Many User Features and Options - Full Duplex - Powerdown - Transmitter Disable/Powerdown - Loopback - MII Disable - Link and Jabber Status Passthrough - Multiple Register Access The 8502 is a interface IC that provides a single chip link between an Ethernet AUI (Attachment Unit Interface) and an Ethernet MII (Media Independent Interface). The 8502 is in a 44L package. The 8502 consists of Manchester encoder, AUI transmitter, AUI receiver, Manchester decoder, Media Independent Interface (MII) to an external controller, and Management Interface (MI) serial port. ■ LED Outputs - Activity, Transmit, Receive - Collision - Link - User Programmable The 8502 can access five 16 bit registers though the MI serial port. These registers contain configuration inputs, status outputs, and device capabilities. ■ 44L PLCC NC MDC TX_EN 40 OSCIN 41 NC 43 42 GND1 2 1 RXD3 VCC1 3 44 PLED1 PLED0 4 RXD2 5 Pin Configuration 6 The 8502 is ideal for external PHY's that connect AUI or other media to MII. They are also ideal as an AUI interface to MII based Ethernet controllers in adapter cards, motherboards, and hubs. RXD1 7 39 RXD0 8 38 EE_CS 9 37 EE_DI 10 36 LINKI EE_CLK/XMT_LED 11 35 MDIO EE_DO/RCV_LED 12 8502 44L PLCC Top View 34 33 28 RBIAS GND2 NC 27 29 DO– 26 17 DO+ 25 30 NC 24 31 16 VCC2 23 15 COL CI– 22 CRS CI+ 21 32 DI– 20 14 NC 18 13 RX_DV DI+ 19 RX_CLK 4-1 1 MD400157/D NC 8502 8502 Table of Contents 1.0 Pin Description 3.17.2 Timing 3.17.3 Multiple Register Access 2.0 Block Diagram 3.17.4 Bit Types 3.17.5 Frame Structure 3.0 Functional Description 3.1 General 3.17.6 Register Structure 3.2 Media Independent Interface (MII) 3.17.7 Link Status Bit 3.17.8 Jabber Detect Bit 3.2.1 General 3.18 Register Description 3.2.2 MII Disable 3.19 External EEPROM Interface (EEI) 3.3 Manchester Encoder 3.4 Manchester Decoder 3.19.1 General 3.5 AUI Transmitter 3.19.2 Signal Description 3.19.3 Frame Structure 3.5.1 Transmitter 3.5.2 Transmit Activity Indication 3.19.4 EE_CS Cycle Structure 3.5.3 Transmit Disable 3.19.5 Timing 3.5.4 Transmit Powerdown 4.0 Application Information 3.6 AUI Receiver 4.1 Example Schematics 3.6.1 Receiver 4.2 AUI Transmit Interface 3.6.2 Squelch 4.3 AUI Receive Interface 3.6.3 Receive Activity Indication 4.4 Controller Interface 3.7 Collision 4.4.1 General 3.7.1 General 4.4.2 Output Drivers 3.7.2 Collision Detect Algorithm 4.4.3 MII Disable 3.7.3 Collision Indication 4.5 MI Serial Port 3.7.4 Collision Test 4.5.1 General 3.8 SOI (Start of Idle) 4.5.2 Multiple Register Access 3.9 Full Duplex Mode 4.5.3 Serial Port Addressing 3.10 Loopback 4.6 Reset 3.11 Link 4.7 External EEPROM 3.11.1 General 4.8 Oscillator 3.11.2 Link Algorithm 4.9 Programmable Led Drivers 3.11.3 Link Indication 4.10 Link Passthrough 3.12 Jabber 4.11 Jabber Passthrough 3.13 Reset 4.12 Power Supply Decoupling 3.14 Powerdown 3.15 Oscillator 5.0 Specifications 3.16 LED Drivers 3.17 MI Serial Port 3.17.1 Signal Description 2 4-2 MD400157/D 8502 1.0 Pin Description Pin # 44L 8502 Pin Name I/O Description 2 23 VCC2 VCC1 — Positive Supply. +5 +/-5% Volts. 1 24 GND2 GND1 — Ground. 0 Volts. 25 DO+ O AUI Transmit Output, Positive. 26 DO- O AUI Transmit Output, Negative. 19 DI+ I AUI Receive Input, Positive. 20 DI- I AUI Receive Input, Negative. 21 CI+ I AUI Collision Input, Positive. 22 CI- I AUI Collision Input, Negative. 28 RBIAS — Internal Bias Current Set. An external resistor connected between this pin and GND will create a reference current for the internal bias circuits. 43 OSCIN I Clock Oscillator Input. There must be either a 20 MHz crystal or a 20 MHz clock tied between this pin and GND. TX_CLK output clock is generated from this input. 30 TX_CLK O Transmit Clock Output. This Media Independent Interface output provides a clock to the controller. Transmit data from the controller on TXD and TX_EN is clocked in on rising edges of TX_CLK and OSCIN. 40 TX_EN I Transmit Enable Input. This Media Independent Interface input has to be asserted active high to indicate that data on TXD is valid and is clocked in on rising edges of TX_CLK and OSCIN. 34 33 32 31 TXD3 TXD2 TXD1 TXD0 I Transmit Data Input. These Media Independent Interface inputs contain input nibble data to be transmitted on the AUI outputs and are clocked in on rising edges of TX_CLK and OSCIN. 13 RX_CLK O Receive Clock Output. This Media Independent Interface output provides a clock to the controller. Receive data on RXD and RX_DV is clocked out to the controller on falling edges of RX_CLK. 15 CRS O Carrier Sense Output. This Media Independent Interface output is asserted when valid data is detected on the AUI inputs and is clocked out on falling edges of RX_CLK. 14 RX_DV O Receive Data Valid Output. This Media Independent Interface output is asserted active high when valid decoded data is present on the RXD outputs and is clocked out on falling edges of RX_CLK. 3 6 7 8 RXD3 RXD2 RXD1 RXD0 O Receive Data Output. These Media Independent Interface outputs contain receive nibble data from the AUI input and are clocked out on falling edges of RX_CLK. 4-3 3 MD400157/D 8502 1.0 Pin Description continued Pin # 44L 8502 Pin Name I/O Description 16 COL O Collision Output. This Media Independent Interface output is asserted when collision between transmit and receive data is detected. 41 MDC I Management Interface Clock Input. This Management Interface clock shifts serial data into and out of MDIO on rising edges. 35 MDIO I/O 36 LINKI I Pullup To VCC/2 Management Interface Data Input/Output. This bidirectional pin contains serial Management Interface data that is clocked in and out on rising edges of the MDC clock. Link Input. The value on this pin is either passed through to the internal MI serial port Link Status output bit In Register 1 or it enables the internal Link algorithm. 1 = Link Status Bit Is Set To 0 (Link Fail) float = Link Status Bit Determined By The Internal Link Algorithm 0 = Link Status Bit Is Set To 1 (Link Pass) In 28L 8501, the Link Status Bit is always forced to 1 (Link Pass). 37 JABI I Pullup Jabber Input. The value on this pin is passed through to the internal MI serial port Jabber Detect output bit In Register 1. 1 0 = Jabber Detect Bit Is Set To 0 (No Jabber Detect) = Jabber Detect Bit Is Set To 1 (Jabber Detect) In 28L 8501, the Jabber Detect Bit is always forced to 0 (No Jabber Detect). 9 EE_CS O External EEPROM Chip Select Output. During powerup or reset, this pin is a chip select output to an external EEPROM that can preload the MI serial port input bits to values other than the defaults. 11 EE_CLK/ XMT_LED O External EEPROM Clock Output/Transmit LED. During powerup or reset, this pin is serial data clock output to an external EEPROM that can preload the MI serial port input bits to values other than the defaults. Data is shifted in and out on EE_DI and EE_DO, respectively, on rising edges of the EE_CLK clock. During normal operation, this pin can be used as Transmit LED and can drive an LED to GND. 0 1 10 EE_DI 12 EE_DO/ RCV_LED I Pullup O = No Detect = Transmit Activity Detected, On for 50 mS External EEPROM Data Input. During powerup or reset, this pin is a data input from an external EEPROM that can preload the MI serial port input bit to values other than the defaults. External EEPROM Data Output/Receive LED. During powerup or reset, this pin is a data output to an external EEPROM that can preload the MI serial port input bit to values other than the defaults. During normal operation, this pin can be used as Receive LED and can drive an LED to GND. 0 1 = No Detect = Receive Activity Detected, On for 50 mS 4 4-4 MD400157/D 8502 1.0 Pin Description continued Pin # 44L 8502 5 Pin Name PLED1 (MDA1) I/O I/O O.D. Pullup Description Programmable LED Output/Management Interface Address Input. This pin can be programmed through the MI serial port to be either a Collision Detect output or a user select output. This pin can drive an LED from VCC. During powerup or reset, this pin is high impedance and the value on this pin is latched in as an address for the MI serial port. When programmed as Collision Detect Output: 1 = No Detect 0 = Collision Detected, On For 50 mS 4 PLED0 (MDA0) I/O O.D. Pullup Programmable LED Output/Management Interface Address Input. This pin can be programmed through the MI serial port to be either a Activity Detect output or a user select output. This pin can drive an LED from VCC. During powerup or reset, this pin is high impedance and the value on this pin is latched in as an address for the MI serial port. When programmed as Activity Detect Output: 1 = No Detect 0 = Activity Detected, On For 50 mS 17 18 27 29 38 39 42 NC — No Connect. These pins are not connected but should be tied to GND to minimize noise. 4-5 5 MD400157/D MANCHESTER DECODER (PLL) 10 MHZ COLLISION DETECT SQUELCH SOI DETECT SOI GENERATOR – + +/– Vth COLLISION RECEIVER +/– Vth DATA RECEIVER – 6 4-6 + – + + MD400157/D – + + MANCHESTER ENCODER TRANSMITTER LP FILTER LP FILTER DI– DI+ CI– CI+ DO- DO+ 8502 8502 3.0 Functional Description 3.1 GENERAL 3.2 MEDIA INDEPENDENT INTERFACE (MII) The 8502 is a single chip interface IC's for connecting MII to AUI. MII and AUI are acronyms for Media Independent Interface and Attachment Unit Interface, respectively. Both of these interfaces are defined by IEEE 802.3 specifications. 3.2.1 General The Media Independent Interface, called MII, provides a standardized interface between the 8502 and an external Ethernet controller. The MII is a nibble wide packet data interface defined in IEEE 802.3 specifications and shown in Figure 2. The 8502 meets all the MII requirements outlined in IEEE 802.3 specifications. The 8502 can directly connect, without any external logic, to any Ethernet controllers which also comply with the IEEE 802.3 MII specifications. The 8502 has six main sections: Media Independent Interface (MII), Manchester encoder, Manchester decoder, AUI transmitter, AUI receiver, and MI serial port. On the transmit side, NRZ data is received on the MII from an external Ethernet controller per the MII format described in Figure 2. The NRZ data is then sent to the Manchester encoder for formatting. The Manchester encoded data is then sent to the AUI transmitter. The AUI transmitter shapes the output and drives a 78 ohm AUI cable. In addition, the transmitter generates start of idle (SOI) pulses. The MII consists of fourteen signals: four transmit data bits (TXD[3:0]), transmit clock (TX_CLK), transmit enable (TX_EN), four receive data bits (RXD[3:0]), receive clock (RX_CLK), carrier sense (CRS), receive data valid (RX_DV), and collision (COL). The transmit and receive clocks operate at 2.5 MHz. On the transmit side, the TX_CLK output runs continuously. When no data is to be transmitted, TX_EN input is deasserted and any data on TXD[3:0] is ignored. When TX_EN is asserted on rising edge of TX_CLK, data on TXD[3:0] is clocked into the device on rising edges of the TX_CLK. TXD[3:0] input data is actually nibble wide packet data whose format needs to be the same as specified in IEEE 802.3 specifications and shown in Figure 2. When all the data on TXD[3:0] has been latched into the device, TX_EN is deasserted on rising edge of TX_CLK. On the receive side, the AUI receiver receives incoming Manchester encoded data from the AUI cable, removes high frequency noise from the input, determines if the input signal is a valid packet, and then converts the data from AUI levels to internal digital levels. The AUI receiver also detects start of idle (SOI) pulses and implements a squelch algorithm to reject invalid signals. The output of the AUI receiver then goes to the Manchester decoder which recovers a clock from the AUI data stream, recovers the data, and converts the data back to NRZ. The NRZ data is then transmitted to an external Ethernet controller through the MII using the format shown in Figure 2. On the receive side, when invalid data is sensed on the AUI inputs, the receiver is idle. During idle, RX_CLK follows TX_CLK, RXD[3:0] is held low, and CRS and RX_DV are deasserted. When a valid packet is detected on the AUI receive inputs, CRS is asserted and the clock recovery process starts on the incoming data. After the receive clock has been recovered from the data, the RX_CLK is switched over to the recovered clock and the data valid signal RX_DV is asserted on a falling edge of RX_CLK. While RX_DV is asserted, valid data is clocked out of The MI (Management Interface) serial port is a two pin bidirectional port through which configuration inputs can be set, and device capabilities and status outputs can be read out. A crystal oscillator generates a master clock for the device. Each block plus the operating modes are described in more detail in the following sections. A block diagram of the 8502 is shown in Figure 1. 4-7 7 MD400157/D 8502 TX_EN = 1 TX_EN = 0 IDLE START OF FRAME DELIM. PREAMBLE PRMBLE SFD 62 BT 2T DATA NIBBLES DATA 1 DATA 2 DATA N-1 DATA N FIRST BIT PRMBLE = [1 0 1 0 ...], 62T LONG SFD = [1 1] a.) MII Frame Format FIRST BIT MAC’s SERIAL BIT STREAM D0 LSB D1 D2 D3 D4 D5 D6 D7 MSB FIRST NIBBLE SECOND NIBBLE TXD0 / RXD0 MII NIBBLE STREAM TXD1 / RXD1 TXD2 / RXD2 TXD3 / RXD3 b.) MII Nibble Order Signals TXDO TXD1 TXD2 TXD3 TX_EN 1. 2. 3. 4. Bit Value X X X X 0 X 11 X 0 X 1 X 0 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 12 0 0 1 1 0 0 1 1 1 0 1 1 1 D03 D1 D2 D3 1 D44 D5 D6 D7 1 1 0 1 1 1 D03 D1 D2 D3 1 D44 D5 D6 D7 1 1st preamble nibble transmitted. 1st sfd nibble transmittted. 1st data nibble transmitted. D0 thru D7 are the first 8 bits of the data field. c.) Transmit Preamble and SFD bits Signals Bit Value RXDO RXD1 RXD2 RXD3 RX_DV 1. 2. 3. 4. X X X X 0 X X X X 0 X X X X 0 X X X X 0 X X X X 0 X X X X 0 X X X X 0 X X X X 0 X X X X 0 X X X X 0 X X X X 0 X 11 X 0 X 1 X 0 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 12 0 1 0 1 1st preamble nibble received. Device guaranteed to provide a minimum of 6 preamble nibbles. 1st sfd nibble received. 1st data nibble received. D0 thru D7 are the first 8 bits of the data field. d.) Receive Preamble and SFD Bits Figure 2. MII Data Packet Format 8 4-8 MD400157/D 8502 RXD[3:0] on falling edges of the RX_CLK clock. The RXD[3:0] data has the same packet format as the TXD[3:0] data and is specified in IEEE 802.3 specifications as shown in Figure 2. When the end of packet is detected, CRS and RX_DV are deasserted. CRS and RX_DV also stay deasserted if the Link Detect bit in the MI serial port bit is set to the Link Fail state. recovery process with up to ±18 nS of jitter on the AUI input. While the PLL is in the process of locking onto the preamble signal, some of the preamble data symbols are lost. The clock recovery process recovers enough preamble data symbols to pass at least 6 nibbles to the receive MII Media Independent Interface as shown in Figure 2. The collision output, COL, is asserted whenever the collision condition is detected. Data recovery is performed by latching in data from the receiver with the recovered clock extracted by the PLL. The data is also converted from a single bit stream into nibble data according the format shown in Figure 2. 3.2.2 MII Disable The MII inputs and outputs can be disabled by setting the MII disable bit in the MI serial port Control register. When the MII is disabled, the MII inputs are ignored, the MII outputs are high impedance, and the AUI transmitter is idle. If the MI address lines, MDA[1:0], are pulled high during reset or powerup, the 8502 powers up and resets with the MII disabled. Otherwise, the 8501/8502 powers up and resets with the MII enabled. 3.5 AUI TRANSMITTER 3.5.1 Transmitter The AUI (Attachement Unit Interface) transmitter takes the Manchester encoded data, shapes it to meet the pulse template outlined in IEEE 802.3 and shown in Figure 3, adjusts the output voltage to meet the IEEE 802.3 required levels for AUI, and drives the 78 Ohm AUI cable. 3.3 MANCHESTER ENCODER The Manchester encoder converts the NRZ nibble data from the MII into a single Manchester encoded serial data stream and adds a start of idle (SOI) pulse at the end of the packet as specified in the IEEE 802.3 specifications. The Manchester encoding process combines clock and data such that the first half of the data bit contains the complement of the data, and the second half of the data bit contains the true data, as described in IEEE 802.3 specifications. This guarantees that a transition always occurs in the middle of the data bit cell. Manchester encoding of the data from TXD occurs only when TX_EN is asserted. 16 ns V dm 8 ns V1 mV V2 mV V3 mV 3.4 MANCHESTER DECODER The Manchester decoder converts the serial data stream from the AUI receiver into NRZ data for the MII. Thus, the Manchester decoder performs clock and data recovery from the Manchester encoded serial data stream. In Manchester encoded data, the first half of the data bit contains the complement of the data, and the second half of the data bit contains the true data. 0 mV t BT or BT/2 t t t = 2.5 ns V1 < 1315 mV. V3 > 450 mV V2 = 0.89 V1 Clock recovery is done with a PLL. When valid data is not detected on the AUI input, an internal 10 MHz clock is applied to the input of the PLL. When valid data is detected on the AUI input, the PLL input is switched to the incoming AUI data. The PLL then recovers the clock by locking onto zero crossings of the preamble of the incoming signal from the AUI cable. The recovered clock frequency is 10 MHz. The PLL can lock onto the preamble signal in less than 12 transitions (bit times) and can reliably perform the data V = 0.82 V 3 2 Figure 3. AUI Transmit Output Voltage Template 4-9 9 MD400157/D t 8502 3.5.2 Transmit Activity Indication Activity can be programmed to appear on the PLED0 pin by appropriately setting the programmable LED output select bits in the MI serial port Configuration register. When the PLED0 pin is programmed to be an activity detect output, this pin is asserted low for 50 mS every time a transmit or receive packet occurs. The PLED0 output is open drain with resistor pullup and can drive an LED from VCC or can drive another digital input. squelch circuit; the output of the zero crossing comparator is used for clock and data recovery. The AUI inputs on the CI± pins are internally biased to about 3V by internal 10K bias resistors. The AUI inputs first pass through low pass filter designed to eliminate high frequency noise on the input. The output of the collision receive filter then goes to a collision threshold comparator which converts the CI± inputs to internal digital levels. The output of the collision threshold comparator then goes to the collision detect circuit. XMT_LED is transmit activity output during normal operation. This pin is asserted high for 50 mS every time a transmit packet occurs. The XMT_LED output can drive an LED to GND or can drive another digital input. 3.6.2 Squelch The squelch block determines if the data from the threshold comparators (and hence, AUI inputs) contains valid data. The threshold comparator compares the DI± and CI± inputs against a fixed negative threshold, called the AUI squelch level. If the input voltage to the threshold comparator does not exceed the fixed negative threshold level, the receiver is in the squelched state. If the input voltage exceeds the negative squelch level for more than 20 nS, the data is considered to be valid and the receiver now enters into the unsquelch state. In the unsquelch state, the AUI receive threshold level is reduced by approximately 30% for noise immunity reasons and is called the unsquelch level. While in the unsquelch state, the receive squelch circuit looks for SOI (Start Of Idle) pulse to locate the end of the packet. When the SOI signal is detected, the receive squelch is turned on again. The AUI receiver meets the AUI receive requirements defined in IEEE 802.3 Section 7. 3.5.3 Transmit Disable The AUI transmitter can be disabled by setting the transmit disable bit in the MI serial port Configuration register. When the transmit disable bit is set, the AUI transmitter is forced into the idle state, and no data is transmitted regardless of the state of TX_EN. 3.5.4 Transmit Powerdown The AUI transmitter can be powered down by setting the transmit powerdown bit in the MI serial port Configuration register. When the transmit powerdown bit is set, the AUI transmitter is powered down, the AUI transmit output is high impedance, and the rest of the device operates normally. 3.6 AUI RECEIVER 3.6.1 Receiver 3.6.3 Receive Activity Indication The AUI (Attachement Unit Interface) receiver converts AUI levels to internal digital levels. There are two AUI receivers on the 8502, one for data (DI±) and one for collision (CI±). Activity can be programmed to appear on the PLED0 pin by appropriately setting the programmable LED output select bits in the MI serial port Configuration register. When the PLED0 pin is programmed to be an activity detect output, this pin is asserted low for 50 mS every time a transmit or receive packet occurs. The PLED0 output is open drain with resistor pullup and can drive an LED from VCC or can drive another digital input. The AUI inputs on the DI± pins are internally biased to about 3V by internal 10K bias resistors. The AUI inputs first pass through a low pass filter designed to eliminate high frequency noise on the input. The output of the receive filter then goes to two different types of comparators, threshold and zero crossing. The threshold comparator determines whether the signal is valid, and the zero crossing comparator is used to sense the actual data transitions once the signal is determined to be valid data. The output of the threshold comparator goes to the RCV_LED is receive activity output during normal operation. This pin is asserted high for 50 mS every time a receive packet occurs. The RCV_LED output can drive an LED to GND or can drive another digital input. 10 4-10 MD400157/D 8502 3.7 COLLISION 3.7.4 Collision Test 3.7.1 General The MII collision signal, COL, can be tested by setting the collision test bit in the MI serial port Control register. When this bit is set, TX_EN is looped back onto COL and the AUI trasmitter is forced to the idle state. Collision is detected whenever the collision detect algorithm senses a valid 10 MHz signal on the CI± collision inputs. When collision is detected, the COL output is asserted, CRS is asserted, and RX_DV is deasserted. The collision function is disabled if the device is in the Full Duplex mode or if the Link Status bit in the MI serial port Status register is set to the Link Fail state. 3.8 SOI (START OF IDLE) The SOI pulse is a positive pulse inserted at the end of every transmitted packet to indicate the end of data transmission and the start of idle. 3.7.2 Collision Detect Algorithm The AUI transmitter generates an SOI pulse at the end of data transmission when TX_EN is deasserted. The transmitted SOI output pulse meets the pulse template requirements specified in IEEE 802.3 Section 7 and shown in Figure 4. The collision detect circuit looks for a valid 10 MHz signal by monitoring the period of the waveform from the CI± inputs. If the period of the input waveform on CI± is between 77-200 nS, the collision signal is considered to be valid and collision is asserted. If the period of the input waveform on CI± is less than 48 nS or greater than 400 nS, then collision is deasserted. Any high and low pulse widths less than 10 nS are rejected as noise. The AUI receiver detects the SOI pulse by sensing missing data transitions. Once the SOI pulse is detected, data reception is ended and CRS is deasserted. 3.7.3 Collision Indication 3.9 FULL DUPLEX MODE Collision detect can be programmed to appear on the PLED1 pin by appropriately setting the programmable LED output select bits in the MI serial port Configuration register. When the PLED1 pin is programmed to be a collision detect output, this pin is asserted low for 50 mS every time a collision occurs. The PLED1 output is open drain with resistor pullup and can drive an LED from VCC or can drive another digital input. Full Duplex mode allows transmission and reception to occur simultaneously without a collision being signalled. When Full Duplex mode is enabled, collision is disabled, COL is deasserted regardless of the input on CI±, and any loopback of TX_EN to CRS is disabled, if enabled. The device can be forced into the Full Duplex Mode by setting the duplex bit in the MI serial port Control register. 3.10 LOOPBACK T1 +Vdm Two different loopback modes are available on the 8502: (1) TX_EN to CRS Loopback, and (2) diagnostic loopback. TX_EN to CRS Loopback is enabled by setting the TX_EN to CRS Loopback bit in the MI serial port Configuration register. When this loopback mode is enabled, TX_EN is looped back onto CRS during every transmit packet. This TX_EN to CRS Loopback is disabled during collision, when the device is placed in the Full Duplex mode, when the Link Status bit in the MI serial port Status register is in the Link Fail state, when the transmit disable bit is set in the MI serial port Configuration register, and any other conditions where the transmitter is disabled. 0 E R U –Vdm T2 T1 = 200 ns Minimum A diagnostic loopback mode can also be selected by setting the loopback bit in the MI serial port Control register. When diagnostic loopback is enabled, TXD[3:0] data is looped back onto RXD[3:0], TX_EN is looped back onto CRS, RX_DV operates normally, and the AUI receive and transmit paths are disabled. T2 = 8000 ns U = –100 mV Maximum Undershoot E = +/– 40 mV Max R = <200 mV PK – PK Figure 4. AUI Transmit SOI Output Voltage Template 4-11 11 MD400157/D 8502 3.11 LINK 3.13 RESET 3.11.1 General The 8502 is reset when either VCC is applied to the device or when the reset bit is set in the MI serial port Control register. When reset bit is set to a 1, an internal poweron reset pulse is generated which resets all internal circuits, attempts to access an external EEPROM to load the MI serial port bits, forces the MI serial port bits to either their default values or to the contents of the external EEPROM, and latches in the MI physical address values on PLED[1:0]/MDA[1:0]. After the power-on reset pulse has finished, the reset bit in the MI serial port Control register is cleared to a 0 and the device is ready for normal operation 500 mS after the reset was initiated. The status of the link is reported with the link status bit in the MI serial port Status register. The Link Status bit (LINK bit) can either be controlled by an internal link algorithm or externally with the LINKI pin. The selection of the method to set the LINK bit is determined by the LINKI pin. The LINKI input pin is a three level pin. If LINKI =1 or 0, the 1 or 0 value is inverted and automatically passed through to the LINK bit in the MI serial port Status register. If the LINKI pin is left floating, the pin floats to VCC/2 and this level indicates to the device that the internal link algorithm should be used for setting the LINK bit. 3.11.2 Link Algorithm 3.14 POWERDOWN The internal link algorithm is enabled by letting the LINKI pin float. The internal link algorithm starts by setting the LINK bit to the pass state when the device is powered up. This bit stays in the pass state until a packet is transmitted. When a packet is transmitted, the internal link algorithm expects a corresponding receive packet to arrive at the AUI inputs within 2 µS. If the expected receive packet arrives within 2 µS after the start of a transmission, the LINK bit stays in the Link Pass state. If the expected receive packet doesn't arrive within 2 µS, then the LINK bit goes to the Link Fail state. Since the LINK bit is an R/LL bit (see section 3.18.4), it latches itself whenever it goes low (Link Fail) and stays low until read out. Once it is read out, then it returns high to the Link Pass state. The 8502 can be powered down by setting the powerdown bit in the MI serial port Control register. In powerdown mode, the AUI outputs are in high impedance state, all functions are disabled except the MI serial port, and the power consumption is reduced to less than 10 mW. When the device goes from powerdown to powerup state, the device is ready for normal operation 500 mS after powerdown was deaserted (powerdown bit cleared). 3.15 OSCILLATOR The 8502 requires a 20 MHz reference frequency for internal signal generation. This 20 MHz reference frequency can be generated by either connecting an external 20 MHz crystal between OSCIN and GND or an external 20 MHz clock on OSCIN. 3.11.3 Link Indication 3.16 LED DRIVERS Link Detect can be programmed to appear on the PLED1 pin by appropriately setting the PLED configuration bit and the programmable LED output select bits in the MI serial port Configuration register. When the PLED1 pin is programmed to be a link detect output, this pin is asserted low whenever the device is in the Link Pass State. The PLED1 output is open drain with resistor pullup and can drive an LED from VCC or can drive another digital input. The PLED[1:0] outputs are open drain with a resistor pullup. These outputs can drive LED's tied to VCC. The PLED[1:0] outputs can be individually programmed through the MI serial port to do 4 different functions: (1) Normal Function (2) On, (3) Off, and (4) Blink. PLED[1:0] can be individually programmed by appropriately setting the LED output select bits in the MI serial port Configuration register. When PLED[1:0] are programmed for their Normal function, these outputs indicate the specific functions described in the MI serial port Configuration register shown on Table 9 (Collision, Activity, respectively). When PLED[1:0] are programmed to be On, the LED output drivers goes low, thus turning on the LED under user control. When PLED[1:0] are programmed to be Off, the LED output drivers will turn off, thus turning off 3.12 JABBER The Jabber Detect bit in the MI serial port Status register is used to report the jabber condition. The 8502 does not have a jabber detect circuit, but the Jabber Detect bit (JAB bit) can be controlled externally with the JABI pin. Thus, if JABI =1 or 0, the 1 or 0 value is inverted and automatically passed through to the JAB bit in the MI serial port Status register. 12 4-12 MD400157/D 8502 the LED under user control. When PLED[1:0] are programmed to Blink, the LED output drivers will continuously blink at a rate of 50 mS on, 50 mS off. depending on whether a write or read cycle was selected with the bits READ and WRITE. After the 32 MDC cycles have been completed, one complete register has been read/written, the serial shift process is halted, data is latched into the device, and MDIO goes into high impedance state. Another serial shift cycle cannot be initiated until the the idle condition (at least 32 continuous 1's) is detected. The default Normal functions for PLED1 and PLED0 are Collision Detect and Activity, respectively. The Normal function for PLED1 can be changed from Collision Detect to Link Detect by setting the PLED1 Configuration Select bit in the MI serial port Configuration register. When this bit is set, the Normal function for PLED1 changes from Collision to Link. That is, for PLED1 to be a Link Detect output, the PLED1 Configuration Select and PLED1 Output Select bits must all be high. 3.17.3 Multiple Register Access Multiple registers can be accessed on a single MI serial port access cycle with the multiple register access feature. The multiple register access feature can be enabled by setting the multiple register access enable bit in the MI serial port Configuration register. When the multiple register access feature is enabled, multiple registers can be accessed on a single MI serial port access cycle by setting the register address to 11111 during the first 16 MDC clock cycles. There is no actual register residing in register address location 11111, so when the register address is then set to 11111, all five registers are accessed on the 80 rising edges of MDC that occur after the first 16 MDC clock cycles of the MI serial port access cycle. The registers are accessed in numerical order from 0 to 16. After all 96 MDC clocks have been completed, all the registers have been read/written, the serial shift process is halted, data is latched into the device, and MDIO goes into high impedance state. Another serial shift cycle cannot be initiated until the the idle condition (at least 32 continuous 1's) is detected. XMT_LED and RCV_LED outputs can drive LEDs to GND indicating transmit and receive activity respectively. They are asserted high for 50 mS every time a transmit or a receive packet occurs. 3.17 MI SERIAL PORT 3.17.1 Signal Description The MI serial port has four pins, MDC, MDIO, and MDA[1:0]. MDC is the serial shift clock input. MDIO is a bidirectional data I/O pin. MDA[1:0] are address pins for the MI serial port. MDA[1:0] inputs share the same pins as the PLED[1:0] outputs, respectively. At powerup or reset, the PLED[1:0] output drivers are high impedance for an interval towards the end of the poweron reset time. During this interval, the values on these pins are latched into the device, inverted, and used as the MI serial port addresses. 3.17.4 Bit Types Since the serial port is bidirectional, there are many types of bits. Write bits (W) are inputs during a write cycle and are high impedance during a read cycle. Read bits (R) are outputs during a read cycle and high impedance during a write cycle. Read/Write bits (R/W) are actually write bits which can be read out during a read cycle. R/WSC bits are R/W bits that clear themselves after a set period of time or after a specific event has completed. R/LL bits are read bits that latch themselves when they go low, and they stay latched low until read. After they are read, they are reset 3.17.2 Timing The MI serial port is idle when at least 32 continuous 1's are detected on MDIO, and it remains idle as long as continuous 1's are detected. During idle, MDIO is in the high impedance state. When the MI serial port is in the idle state, a 01 pattern on the MDIO pin initiates a serial shift cycle. Data on MDIO is then shifted in on the next 14 rising edges of MDC (MDIO is high impedance). If the multiple register access mode is not enabled, on the next 16 rising edges of MDC, data is either shifted in or out on MDIO, 4-13 13 MD400157/D 8502 high. R/LH bits are the same as R/LL bits except that they latch high. The bit type definitions are summarized in Table 1 port access to continue. The next 2 bits are lower device address and must match the inverted values latched in from pins MDA[1:0] during the poweron reset time for the serial port access to continue. The next 5 bits are register address select bits which select one or all of the five data registers for access. The next 2 bits are turnaround bits which are not actual register bits but extra time to switch MDIO from write to read if necessary, as shown in Figure 5. The final 16 bits of the MI serial port cycle (or 80 bits if multiple register access is enabled and REGAD=11111) are to or from the data register designated in the register address bits REGAD[4:0]. Table 1. MI Register Bit Type Definition Sym. Name Definition Write Cycle Read Cycle W W r i e t I n p u t No Operation, H Z i R Read No Operation, H Z i Output R W / Read/ W r i e t I n p u t Ouput R W /S C Read/ W r i S t ee l f Clearing I n p u t R L /L Read/ Latching L o w No Operation, H Z i 3.17.6 Register Structure The 8502 has five internal 16 bit registers. All five registers are available for setting configuration inputs and reading status outputs. A map of the registers is shown in Table 3. The five registers consist of four registers that are defined by the IEEE 802.3 specification (Registers 0-3) and one register that is unique to the 8502 (Register 16). Output Clears Itself After Operation Completed Output The structure and bit definition of the Control register is shown in Table 4. This register stores various configuration inputs and its bit definition complies with the IEEE 802.3 specifications. WhenBitGoes L o w , Bit Latched. WhenBitIsRead, BitUpdated. R / L H Read/ Latching High No Operation, H Z i The structure and bit definition of the Status register is shown in Table 5. This register contains device capabilities and status output information. and its bit definition complies with the IEEE 802.3 specifications. Output WhenBitGoes High, Bit Latched. The structure and bit definition of the PHY ID #1 and #2 registers is shown in Tables 6 and 7, respectively. These registers contain an identification code unique to the 8502 and their bit definition complies with the IEEE 802.3 specifications. WhenBitIsRead, BitUpdated. The structure and bit definition of the Configuration register is shown in Table 8. This register stores various configuration inputs. 3.17.5 Frame Structure The structure of the serial port frame is shown in Table 2 and a timing diagram of a frame is shown in Figure 5. Each serial port access cycle consists of 32 bits (or 96 bits if multiple register access is enabled and REGAD=11111), exclusive of idle. The first 16 bits of the serial port cycle are always write bits and are used for addressing. The last 16(80) bits are to or from one(all) of the five data registers. 3.17.7 Link Status Bit The Link Status bit in the Status register is controlled by either the internal link algorithm or by direct pass through from the LINKI pin. Refer to the Link section for further details. 3.17.8 Jabber Detect Bit The first 2 bits in Table 2 and Figure 5 are start bits and need to be written as a 01 for the serial port cycle to continue. The next 2 bits are a read and write bit which determine if the accessed data register bits will be read from or written to. The next 3 bits are upper device addresses and they must be written as 111 for the serial The Jabber Detect bit in the Status register is controlled by direct pass through from the JABI pin. Refer to the Jabber section for further details. 14 4-14 MD400157/D MD400157/D Figure 5. MI Serial Port Frame Timing Diagram D7 24 DATA[15:0] D8 23 D6 25 D5 26 D4 27 D3 28 D2 29 D1 30 D0 31 8502 4-15 15 8502 3.18 Register Description Table 2. MI Serial Port Frame Structure <Idle> IDLE <Start> ST[1:0] <Read> READ <Write> WRITE <PHY Addr.> PHYAD[4:0] <Reg. Addr.> REGAD[4:0] <Turnaround> TA[1:0] Register 0 Register 1 Register 2 Register 3 Register 16 <Data> .... D[15:0].... Control Status PHY ID #1 PHY ID #2 Configuration Symbol Name Definition R/W IDLE Idle Pattern These Bits Are an Idle Pattern. Device Will Not Initiate An MI Cycle Until It Detects At Least 32 1's. W ST1 ST0 Start Bits When ST[1:0]=01, A MI Serial Port Access Cycle Starts. W READ Read Select 1 = Read Cycle W WRITE Write Select 1 = Write Cycle W PHYAD[4:0] Physical Device Address When PHYAD[4:2]=000 and PHY[1:0]=MDA[1:0] Pins Inverted, The MI Serial Port Is Selected For Operation. W REGAD[4:0] Register Address If REGAD=00000-11111, These Bits Determine The Register From Which D[15:0] Is Read/Written. If Multiple Register Access Is Enabled And REGAD=11111, All Registers Are Read/Written. W TA1 TA0 Turnaround Time These Bits Provide Some Turnaround Time For MDIO R/W When READ=1, TA[1:0]=Z0 When WRITE=1, TA[1:0]=ZZ D[15:0].... Data These 16 Bits Contain Data To/From One Of The Five Registers Selected By Register Address Bits REGAD[4:0]. IDLE is shifted in first 16 4-16 MD400157/D Any MD400157/D T4 10 PART2 R 0 R 0 R 0 R 0 PART3 OUI12 R 0 OUI11 R 0 R/W 0 0 x.4 R/W 0 0 x.3 OUI14 R 1 PART0 R 0 R 0 PART1 R 1 R 0 OUI13 R 0 R 0 REV3 R 0 OUI15 R 0 CAP_SUPR ANEG_ACK REM_FLT CAP_NWY R/W 0 0 0 R/W 0 0 R/W 0 COLTST LX W x.5 x.6 x.7 8 ort Register Map R 0 REV2 R 1 OUI16 R/LL 1 LINK R 0 REV1 R 1 OUI17 R 0 REV0 R 0 OUI18 R 1 EXREG R/LH 0 JAB 0 R/W 0 0 x.0 R/W 0 0 R/W 0 x.1 x.2 8502 4-17 17 8502 Table 4. MI Register 0 (Control) Structure And Bit Definition 0.15 0.14 0.13 0.12 0.11 0.10 0.9 0.8 RST LPBK SPEED ANEG_EN PDN MII_DIS ANEG_RST DPLX R/WSC R/W R/W R/W R/W R/W R/W R/W 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 COLTST 0 0 0 0 0 0 0 R/W R/W R/W R/W R/W R/W R/W R/W Bit Symbol Name Definition R/W Def. 0.15 RST Reset 1 = Reset 0 = Normal R/W SC 0 0.14 LPBK Loopback Enable 1 = Loopback Mode Enabled 0 = Normal R/W 0 0.13 SPEED Speed Select 0 = 10 Mbps Selected, No 100 Mbps Capability R/W 0 0.12 ANEG_EN AutoNegotiation Enable 0 = No Enable, No AutoNegotiation Capability R/W 0 0.11 PDN Powerdown Enable 1 = Powerdown 0 = Normal R/W 0 0.10 MII_DIS MII Interface Disable 1 = MII Interface Disabled, All MII Outputs Hi-z 0 = Normal R/W 1[1] 0.9 ANEG_RST AutoNegotiation Reset 0 = No Reset, No AutoNegotiation Capability R/W 0 0.8 DPLX Duplex Mode Select 1 = Full Duplex 0 = Half Duplex R/W 0 0.7 COLTST Collision Test Enable 1 = Collision Test Enabled 0 = Normal R/W 0 Reserved, Must Be 0 R/W 0 0.6 thru 0.0 x.15 Bit Is Shifted First 1. If MDA[1:0] Is Not =11 during reset, then the MII_DIS default value is changed to 0. 18 4-18 MD400157/D 8502 Table 5. MI Register 1 (Status) Structure and Bit Definition 1.15 1.14 1.13 1.12 1.11 1.10 1.9 1.8 CAP_T4 CAP_TXF CAP_TXH CAP_TF CAP_TH 0 0 0 R R R R R R R R 1.7 1.6 1.5 1.4 1.3 1.2 1.1 1.0 REM_FLT CAP_ANEG LINK JAB EXREG R R R/LL R/LH R 0 CAP_SUPR ANEG_ACK R R R Bit Symbol Name Definition R/W Def. 1.15 CAP_T4 100BaseT4 Capable 0 = Not Capable of 100BaseT4 Operation R 0 1.14 CAP_TXF 100BaseTX Full Duplex Capable 0 = Not Capable of 100BaseTX Full Duplex R 0 1.13 CAP_TXH 100BaseTX Half Duplex Capable 0 = Not Capable of 100BaseTX Half Duplex R 0 1.12 CAP_TF 10BaseT Full Duplex Capable 1 = Capable of 10 Mbps Full Duplex R 1 1.11 CAP_TH 10BaseT Half Duplex Capable 1 = Capable of 10 Mbps Half Duplex R 1 Reserved R 0 1.10 thru 1.7 1.6 CAP_SUPR MI Preamble Suppress Capable 0 = Not Capable of MI Preamble Suppression R 0 1.5 ANEG_ACK AutoNegotiation Acknowledgemnt 0 = No Acknowledgement, No AutoNegotiation Capability R 0 1.4 REM_FLT Remote Fault Detect 0 = No Remote Fault R 0 1.3 CAP_ANEG AutoNegotation Capable 0 = Not Capable of AutoNegotiation Operation R 0 1.2 LINK Link Status 1 = Link Pass 0 = Link Fail R/LL 11 1.1 JAB Jabber Detect 1 = Jabber Detected 0 = Jabber Not Detected R/LH 02 1.0 EXREG Extended Register Capable 1 = Extended Registers Exist R 1 x.15 Bit is Shifted First 1. The Default Value of LINK Bit is Determined by the LINKI Pin. 2. The Default Value of JAB Bit is Determined by the JABI Pin. 4-19 19 MD400157/D 8502 Table 6. MI Register 2 (PHY ID #1) Structure and Bit Definition 2.15 2.14 2.13 2.12 2.11 2.10 2.9 2.8 OUI3 OUI4 OUI5 OUI6 OUI7 OUI8 OUI9 OUI10 R R R R R R R R 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 OUI11 OUI12 OUI13 OUI14 OUI15 OUI16 OUI17 OUI18 R R R R R R R R Bit Symbol Name Definition 2.15 2.14 2.13 2.12 2.11 2.10 2.9 2.8 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 OUI3 OUI4 OUI5 OUI6 OUI7 OUI8 OUI9 OUI10 OUI11 OUI12 OUI13 OUI14 OUI15 OUI16 OUI17 OUI18 Company ID, Bits 3-18 SEEQ OUI = 00 – A0 – 7D x.15 Bit Is Shifted First 20 4-20 MD400157/D R/W Def. R 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 8502 Table 7. MI Register 3 (PHY ID #2) Structure and Bit Definition 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 OUI19 OUI20 OUI21 OUI22 OUI23 OUI24 PART5 PART4 R R R R R R R R 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0 PART3 PART2 PART1 PART0 REV3 REV2 REV1 REV0 R R R R R R R R Bit Symbol Name Definition R/W Def. 3.15 3.14 3.13 3.12 3.11 3.10 OUI19 OUI20 OUI21 OUI22 OUI23 OUI24 Company ID, Bits 19-24 SEEQ OUI = 00 – A0 – 7D R 1 1 1 1 1 0 3.9 3.8 3.7 3.6 3.5 3.4 PART5 PART4 PART3 PART2 PART1 PART0 Manufacturer's Part Number 0216 R 0 0 0 0 1 0 3.3 3.2 3.1 3.0 REV3 REV2 REV1 REV0 Manufacturer's Revision Number 016 R 0 0 0 0 x.15 Bit is Shifted First 4-21 21 MD400157/D 8502 Table 8. MI Register 16 (Configuration) Structure and Bit Definition 16.15 16.14 16.13 16.12 16.11 16.10 16.9 16.8 XMT_DIS XMT_PDN 0 TXEN_CRS MREG 0 0 0 R/W R/W R/W R/W R/W R/W R/W R/W 16.7 16.6 16.5 16.4 16.3 16.2 16.1 16.0 PLED1_1 R/W or R/WSC PLED1_0 R/W or R/WSC PLED0_1 R/W or R/WSC PLED0_0 R/W or R/WSC PLED1_CFG R/W 0 R/W 0 R/W 0 R/W Bit Symbol Name Definition R/W Def. 16.15 XMT_DIS AUI Transmit Disable 1 = AUI Transmitter Disabled, Force To Idle 0 = Normal R/W 0 16.14 XMT_PDN AUI Transmit Powerdown 1 = AUI Transmitter Powered Down 0 = Normal R/W 0 Reserved For Factory Use, Must Be 0 R/W 0 16.13 16.12 TXEN_CRS TXEN To CRS Loopback Enable 1 = TX_EN Looped Back To CRS While Non-Idle 0 = No Loopback R/W 0 16.11 MREG Multiple Register Access Enable 1 = Multiple Register Access Feature Enabled 0 = No Multiple Register Access R/W 0 Reserved For Factory Use, Must Be 0 R/W 0 0 0 11 = Collision (PLED1 Is Low For 100 mS When Collision Occurs,Then Pin Returns High and Bit Clears Itself) R/W or R/W SC 1 1 10 = LED Blink (PLED1 Is Toggling 100 mS Low, 100 mS High) (PLED1 Is Low) (PLED1 Is High) R/W or R/W SC 1 1 1 = PLED1 Is Link Detect When PLED1_[1:0]=11 0 = PLED1 Is Collision When PLED1_[1:0]=11 R/W 0 16.2 Reserved For Factory Use, Must Be 0 R/W 0 16.1 Reserved For Factory Use, Must Be 0 R/W 0 16.0 Reserved For Factory Use, Must Be 0 R/W 0 16.10 16.9 16.8 16.7 16.6 PLED1_1 PLED1_0 Programmable LED Output Select, Pin PLED1 01 = LED On 00 = LED Off 16.5 16.4 PLED0_1 PLED0_0 Programmable LED Output Select, Pin PLED0 11 = Activity (PLED0 Is Low For 100 mS When Activity Occurs,Then Pin Returns High and Bit Clears Itself) 10 = LED Blink (PLED0 Is Toggling 100 mS Low, 100 mS High) (PLED0 Is Low) (PLED0 Is High) 01 = LED On 00 = LED Off 16.3 PLED1_CFG PLED1 Configuration Select x.15 Bit is Shifted First 22 4-22 MD400157/D MD400157/D Figure 6. EEI Frame Timing Diagram EG. 31, EG. 3 DATA E #5 VALID DATA READ EEPROM REG. 63, LOAD INTO MI REG. 16 VALID DATA EE_CS CYCLE #6 8502 4-23 23 8502 3.19 EXTERNAL EEPROM INTERFACE (EEI) Table 9. EEI To MI Register Correspondance 3.19.1 General EE_CS Cycle The default values of the MI serial port registers can be modified externally through the External EEPROM Interface, called EEI. The EEI will automatically fetch data stored in an external EEPROM (or equivalent) and use this data to overwrite the default values in the MI registers. This automatic fetch and write function is initiated when VCC is applied to the device or when the MI serial port reset bit is set. The EEI can overwrite all the bits in the MI registers including the read bits (with the exception of RESET, JAB, and LINK). The EEI is intended to interface to the 9346 family of EEPROM's. 3.19.2 Signal Description MI Register Written To Address Name 1 000001 ----- ----- 2 000011 00000 Control 3 000111 00001 Status 4 001111 00010 PHY ID #1 5 011111 00011 PHY ID #2 6 111111 10000 Configuration 3.19.4 EE_CS Cycle Structure The EEI consists of four pins, EE_CS, EE_CLK, EE_DI, and EE_DO. EE_CS is a chip select output. EE_CLK is a serial shift clock output. EE_DI and EE_DO are the data in and data out pins, respectively. A description of the EE_CS cycle structure is shown in Table 10 and in Figure 6. Each EE_CS cycle consists of 25 bits. The first 9 bits of an EE_CS cycle are always read bits and are used to provide instructions and register addressing to the external EEPROM. The last 16 bits are write bits and are loaded from the external EEPROM into one of the MI registers per Table 9 and Figure 6. 3.19.3 Frame Structure Each EEI frame consists of six individual accesses of the external EEPROM memory, called EE_CS cycles. A diagram of the frame structure is shown in Figure 6. The first bit in a EE_CS cycle is read out on the EEI as a 1 and instructs the external EEPROM to start an access cycle. The next two bits are read out as a 10 and contain the opcode instruction for the external EEPROM to execute a read cycle. The next 6 bits are one of six register addresses read out to the external EEPROM and contain the address of the 16 bit register in the external EEPROM where the data is to be fetched. On the same clock cycle that the last register address bit is read out to the external EEPROM, the external EEPROM may also send back a "0" on EE_DO. The 8502 ignores this "0" data. The next 16 bits are written into the 8502 from the EEPROM and are written into a specific MI register as shown in Table 9 and Figure 6. Each EE_CS cycle (exclusive of the first cycle) accesses one 16 bit register in the external EEPROM and moves the contents of that EEPROM register into one of the five MI registers. The correspondance of EE_CS cycle number to which EEPROM register is read to which MI register is written to is shown in Table 9 as well as Figure 6. The first EE_CS cycle is used by the 8502 to determine if there is an EEPROM or equivalent connected to the EEI; it does not load any data into any MI register. This identification of an EEPROM or equivalent on the EEI is done by examination of a specific EEPROM register for a specific data pattern. If the contents of the first EEPROM register accessed (EEPROM register 000001) is A07D16 , then the remainder of the EEPROM data is fetched and written into the MI registers as described. If the content of EEPROM register 000001 is not A07D16 , the EEI frame is terminated, the contents of the EEPROM are not written into the MI registers, and the default values remain in the MI registers. There are three individual MI bits whose value will not be modified or should not be modified through the EII: (1) Reset, bit 0.15, (2) Link Detect, bit 1.2, and (3) Jabber Detect, 1.1. The Reset bit should not be modified through the EEI and should only be set to a 1 via a MI write to that bit; the Link Detect and Jabber Detect bits will not be modified by the EEI, so refer to the Link and Jabber sections for more details how these bits are set and reset. 24 4-24 MD400157/D EEI Register Read Out (REG[5:0]) 8502 3.19.5 Timing 8502 from the EEPROM on EE_DI (EE_DO is high impedance). After 25 EE_CLK cycles have been completed, EE_CS goes low, EE_DO goes to high impedance, EE_DI stops latching in data, the last 16 data bits shifted in are latched into the 8502, and the serial shifting process is halted. This process is repeated five more times, once for each of the five internal MI registers as shown in Tables 10 and 11 and Figure 6. Once all six EE_CS access cycles have been completed, then the EEI returns to the idle state. The total EEI cycle consists of six individual EE_CS cycles, one for each register accessed over the EEI. Before a reset is initiated, the EEI is in the idle state. During idle, EE_CS=0, EE_DO is in the high impedance state, EE_DI is ignored, and EE_CLK clock output is held low. When a reset is initiated, then EE_CS is asserted high, EE_CLK clock output is enabled, and a serial shift cycle is initiated between the external EEPROM and the 8502. Data on EE_DO is then shifted out from the 8502 to the EEPROM on the first 9 falling edges of EE_CLK. On the next 16 falling edges of EE_CLK, data is shifted into the Table 10. EEI EE_CS Cycle Structure <1> START <10> OP[1:0] <Register Addr.> A[5:0] 000001 000011 000111 001111 011111 111111 <Data> D[15:0] Identification MI Register 0 MI Register 1 MI Register 2 MI Register 3 MI Register 16 Symbol Name Definition R/W START Start Bit 1 Read Out To EEPROM On Every EE_CS Cycle R OP[1:0] EEPROM Opcode Instruction 10 Read Out To EEPROM On Every EE_CS Cycle R A[5:0] EEPROM Register Address EEPROM Register Address Where Data Will Be Fetched on Each of the 6 EE_CS Cycles and Loaded into the MI Registers as Shown in Table 10 And Figure 6. R D[15:0] MI Data These 16 Bits Contain Data Written from the External EEPROM into the MI Registers According to Table 10. The First Register Written from Regad = 000001 must Contain A07d16 for the Access to Continue. W START is Shifted Out First 4-25 25 MD400157/D 8502 1.5K 5% VCC [2:1] 24.9 1% 1:1 TX_CLK DO+ TXD3 TXD2 TXD1 DO– TXD0 TX_EN MII CONNECTOR 1:1 COL RX_CLK 8502 DI+ RXD3 RXD2 DI– RXD1 RXD0 CRS 39 1% RX_DV MDC MDIO 1:1 CI+ CI– OSCIN 20 MHz 39 1% VCC2 / GND Figure 7. External MII-AUI Schematic Using 8502 26 4-26 MD400157/D 8502 24.9 1% 1.5K 5% VCC [2:1] TX_CLK 1:1 DO+ TXD3 TXD2 DO– TXD1 TXD0 1:1 TX_EN MII CONNECTOR COL 8502 DI+ DB15 RX_CLK RXD3 DI– RXD2 RXD1 RXD0 CRS RX_DV MDC MDIO 1:1 CI+ CI– OSCIN 20 MHz 39 1% 2 / GND Figure 8. External MII-AUI Schematic Using 8502 with EEPROM and LED’s 4-27 27 MD400157/D 8502 24.9 1% 1.5K 5% VCC [2:1] TX_CLK DO+ TXD3 TXD2 DO– SEEQ EM2C TXD1 TXD0 DI+ TX_EN MII CONNECTOR COL 8502 DI– RX_CLK CI+ RXD3 RXD2 CI– RXD1 RXD0 CRS RX_DV MDC MDIO REXT OSCIN 20 MHz GND [2:1] 1 1 VCC2 / GND Figure 9. External MII-Coax PHY Schematic Using 8502 28 4-28 MD400157/D 8502 VCC [2:1] 1:1 TX_CLK TXD3 TXD2 TXD1 DO– TXD0 TX_EN COMPUTER BUS SEEQ 80C300 ETHERNET CONTROLLER 1:1 COL RX_CLK 8502 DB15 RXD3 RXD2 DI– RXD1 RXD0 CRS RX_DV MDC MDIO 1:1 OSCIN 20 MHz CI– VCC2 / GND Figure 10. Network Interface Card Schematic Using 8502 4-29 29 MD400157/D 8502 4.0 APPLICATION INFORMATION 4.3 AUI RECEIVE INTERFACE 4.1 EXAMPLE SCHEMATICS Receive data is typically transformer coupled into the receive inputs on DI± and terminated with an external resistor as shown in Figures 7-10. Typical examples of the 8502 used in external MII-AUI, external PHY, and Network Interface Card application are shown in Figures 7-10. Figure 7 is the 8502 used in an external MII-AUI application. Figure 8 is the 8502 used in an external MII-AUI application with LED's and external EEPROM. Figure 9 is the 8502 used in an external MIICOAX PHY application. Figure 10 is the 8502 in a Network Interface Card application. The AUI transformer specifications for the receiver are shown in Table 11. Some sources for the AUI transformer are listed in Table 12, but most standard AUI transformers should meet these requirements. Table 12. AUI Transformer Sources 4.2 AUI TRANSMIT INTERFACE Vendor The interface between the AUI outputs on DO± and the AUI cable requires a transformer as shown in Figures 710. A 10K resistor is also needed between RBIAS pin and GND to provide internal bias for the transmitter. For proper AUI output levels, the DO± outputs must be connected to a 78 Ohm cable or some other 78 Ohm load. No other external components are required. Valor ST7033 NanoPulse 5421-30 Pulse Engineering PE65728 Belfuse PCA The AUI transformer specifications for the transmitter are shown in Table 11. Some sources for the AUI transformer are listed in Table 12, but most standard AUI transformers should meet these requirements. Specification Turns Ratio 1:1 Inductance (µH Min) 75 Leakage Inductance (µH Max) 0.4 Capacitance (pF Max) 10 DC Resistance (Ohms Max) EPA 1885-6 0.25 In order to minimize noise pickup into the receive path, loading on DI± should be minimized and both inputs should be loaded equally. To minimize noise pickup, the loading on DO± should be minimized and both outputs should always be loaded equally. 30 4-30 MD400157/D S553-1006-AE The receive input needs to be terminated with 78 Ohms in order to meet input impedance requirements of IEEE 802.3 Section 7. Notice that in Figures 7, 8 and 10 the receive input has this input termination resistor broken up into two 39 ohm 1% resistors with a 0.1µF capacitor tied between the center points and GND. This capacitor attenuates common mode input noise. The 0.1µF capacitor is optional and is only needed if the device is required to meet the receive common mode input AC voltage specification in IEEE 802.3 Section 7. The 0.1µ F capacitors are not needed if the AUI is embedded, that is, restricted to a PCB or other piece of equipment where common mode noise is small on the AUI inputs. If the capacitor is not needed, then the two termination resistors can be lumped into one 78 Ohm 1% resistor across DI±. Table 11. AUI Transformer Specification Parameter Part Number 8502 4.4 CONTROLLER INTERFACE 4.4.1 General 4.4.3 MII Disable The 8502 will connect to any Ethernet controller without any glue logic provided that the external Ethernet controller has a MII interface that complies with IEEE 802.3. The MII inputs and outputs can be disabled by setting the MII disable bit in the MI serial port Control register. When the MII is disabled, the MII inputs don't respond to any input signals and the MII outputs are placed in the high impedance state. The default value of this bit when the device powers up or is reset is dependent on the device address. If the device address latched into MDA[1:0] at reset is not 11, it is assumed that the device is being used in applications where it is the only device on the MII bus, like adapter card, and the device powers up with the MII enabled. If the device address latched into MDA[1:0] at reset is 11, it is assumed that the device is being used in application where many devices could be sharing the same MII bus, like an external PHY, and the device powers up with the MII disabled. 4.4.2 Output Drivers The digital outputs on the 8502 MII signals can meet the external MII driver characteristics specified in IEEE 802.3 and shown in Figure 11 if external 24.9 ohm 1% termination resistors are added. These termination resistors are only needed if the outputs have to drive a MII cable or other transmission line type load, such as in the external MII applications shown in Figures 7-10. If the 8502 is used in internal MII applications such as adapter cards or on a motherboard, then these termination resistors are not needed, as shown in the schematic in Figure 10. Voh Vol VCC Rol min V4 V2 I2 I4 I1 V1 V3 Rol min I3 Ioh Iol I-V I (mA) V (Volts) I1, V1 –20 1.10 I2, V2 –4 2.4 I3, V3 4 0.40 I4, V4 43 3.05 Rohmin Rolmin equals 40 ohms Figure 11. MII Output Driver Characteristics 4-31 31 MD400157/D 8502 4.5 MI SERIAL PORT optional 10K resistor as shown in Figure 12c. The optional 10K resistor allows the pin to be used as a digital output under normal conditions. 4.5.1 General The 8502 has a MI serial port to set all of the devices's configuration inputs and read out the status outputs. Any external device that has a IEEE 802.3 compliant MI interface can connect directly to the 8502 without any glue logic, as shown in Figures 7-10. 4.6 RESET The reset function in the 8502 resets all the internal timers, sets all the input configuration bits in the MI serial port to their default values, loads data into the MI from an external EEPROM (if connected), and latches in the physical address values for the serial port on MDA[1:0]. Reset can be initiated internally or externally. As described earlier, the MI serial port consists of 4 lines: MDC, MDIO, and MDA[1:0]. However, only 2 lines, MDC and MDIO, are needed to shift data in and out. MDA[1:0] are provided for convenience only. An internal reset automatically occurs when VCC is applied to the 8502 or when the device comes out of the powerdown state. The MDA[1:0] addresses are inverted inside the 8502 before going to the MI serial port block. For example, the MDA[1:0] pins would have to be pin strapped to 11 externally in order to successfully match the MI physical address bits PHYAD[1:0]=00 internally. An external reset can be initiated by setting the reset bit in the serial port Control register. Setting this bit will create a reset and this bit will clear itself automatically when the reset is completed. 4.5.2 Multiple Register Access If the MI serial port needs to be constantly polled in order to monitor changes in status output bits, all registers can be accessed on a single MI serial port access cycle by setting the register address REGAD[4:0]=11111 with the multiple register access mode enabled. This eliminates the need to poll registers individually. Multiple register access is normally disabled but can be enabled by setting the multiple register access bit in the MI serial port Configuration register. It is not necessary to use the reset function in normal operation; it is available if external control of reset is desired. 4.7 EXTERNAL EEPROM The EEI is intended as an inexpensive and convenient way to override the MI serial port default values with a user defined set. The EEI provides a glueless interface to the industry standard 9346 EEPROM. The 8502 can automatically detect whether an external EEPROM is present, so no configuration is necessary. The schematic in Figure 8 shows how an external 9346 EEPROM can be connected directly to the 8502. A device other than the 9346 can be connected to the EEI provided it complies with the timing and frame structure of the EEI. 4.5.3 Serial Port Addressing The device address for the MI serial port is selected by tying the MDA[1:0] pins to the desired value. MDA[1:0] share the same pins as the PLED[1:0] outputs, respectively, as shown in Figure 12a. At powerup or reset, the output drivers are high impedance for an interval called the poweron reset time. During the power on reset interval, the value on these pins is latched into the device, inverted, and used as the MI serial port address. The LED outputs are open drain with internal resistor pullup to VCC. One unique feature of the EEI is that it can modify the default values of the read bits in the MI. Normally, when the read bits are accessed through the MI, they can only be read out and cannot be written into. When the read bits are accessed through the EEI, however, they become write bits and can be overwritten by the contents of the EEPROM. This feature allows the user to modify the OUI and other capability bits to match the characteristics of the end equipment, not the 8502 itself. If an LED is desired on the LED outputs, then an LED and resistor are tied to VCC as shown in Figures 12b. If a high address is desired, then the LED to VCC automatically makes the latched address value a high. If a low value for the address is desired, then a 50K resistor to GND must be added as shown in Figure 12b. If an external EEPROM or other device is used with the EEI to override the MI register default values, the EEPROM needs to be programmed according to the EEPROM memory map shown in Table 14. In Table 14, the names for individual bit locations correspond to the MI register bit names, and values in these register locations in the EEPROM will be automatically loaded into the corresponding MI bit locations when a reset is initiated. If no LED's are needed on the LED outputs, the selection of addresses can be done without any external components as shown in Figure 12c. If a high address is desired, the pin should be left floating and the internal pullup will pull the pin high during power on reset and latch in a high address value. If a low address is desired, then the output pin should be tied to GND or tied to GND through an 32 4-32 MD400157/D 8502 Note that the value of the Reset bit should always be written as a 0 from the EEI; if it is written to a 1, the device will be resetting for eternity. Also note that the Link Detect and Jabber Detect bits are not overwritten by the EEI. Also note that there are some reserved bits in the Configuration register that must be written to specific values for the device to function properly. The normal function for PLED1 can be changed from Collision to Link Detect by setting the PLED1 configuration select bit in the MI serial port Configuration register. The On and Off functions allow the LED driver to be controlled directly through the MI serial port to indicate any function that is desired under external control. The Blink function allows the same external control of the LED driver and also offers the provision to blink the LED without the need for any external timers. 4.8 OSCILLATOR The 8502 requires a 20 Mhz reference frequency for internal signal generation. This 20 Mhz reference frequency can be generated by either connecting an external 20 MHz crystal between OSCIN and GND or by applying an external 20 MHz clock to OSCIN. The PLED[1:0] outputs can also drive other digital inputs. Thus, PLED[1:0] can also be used as digital outputs whose function can be user defined and controlled through the MI serial port. 4.10 LINK PASSTHROUGH If the crystal oscillator is used, it needs only an external crystal, and no other external capacitors or other components are required. The crystal must have the characteristics shown in Table 13. The crystal must be placed as close as possible to OSCIN and GND so that parasitics on OSCIN are kept to a minimum. The LINKI pin can be used to force the status reported on the MI serial port Link Status output bit. If LINKI is tied to the Link Status output pin from an external transceiver, the link status from the external transceiver will be inverted and passed through to and be reported on the Link Status bit in the MI Status register. Table 13. Crystal Specifications 4.11 JABBER PASSTHROUGH Parameter Spec Type Parallel Resonant Frequency 20 Mhz +/- 0.01% Equivelent Series Resistance 25 ohms max Load Capacitance 18 pF typ Case Capacitance 7 pF max 4.12 POWER SUPPLY DECOUPLING Power Dissipation 1mW max There are two VCC's on the 8502 (VCC[2:1]) and two GND's (GND[2:1]). 4.9 PROGRAMMABLE LED DRIVERS Both VCC's should be connected together as close as possible to the device with a large VCC plane. If the VCC's vary in potential by even a small amount, noise and latchup can result. The two VCC's should be kept to within 50 mV of each other. The JABI pin is can be used to force the status reported on the MI serial port Jabber Detect output bit. If JABI is tied to the Jabber Detect output pin from an external transceiver, the Jabber Detect status from the external transceiver will be inverted and passed through to and be reported on the Jabber Detect bit in the MI Status register. The PLED[1:0] outputs can drive LED's tied to VCC as shown in Figure 6. The PLED[1:0] outputs can be programmed through the MI serial port to do 4 different functions: (1) Normal Function (2) On, (3) Off, and (4) Blink. PLED[1:0] can be programmed by appropriately setting the LED output select bits in the MI serial port Configuration register. When PLED[1:0] is programmed for its Normal function, these outputs indicate the specific functions described in the MI serial port Configuration register shown on Table 10 (Collision, Activity). When PLED[1:0] is programmed to be On, the LED output driver goes low, thus turning on the LED under user control. When PLED[1:0] is programmed to be Off, the LED output driver will turn off, thus turning off the LED under user control. When PLED[1:0] is programmed to Blink, the LED output driver will continuously blink at a rate of 100 mS on, 100 mS off. Both GND's should also be connected together as close as possible to the device with a large ground plane. If the GND's vary in potential by even a small amount, noise and latchup can result. The two VCC's should be kept to within 50 mV of each other. A 0.01-0.1 µ F decoupling capacitor should be connected between each VCC/GND set as close as possible to the device pins, preferably within 0.5". The value of the decoupling capacitor should be selected based on whether the noise on VCC-GND is high or low frequency. A conservative approach would be to use two decoupling 4-33 33 MD400157/D 8502 capacitors on each VCC/GND set, one 0.1µ F for low freuqency and one 0.001µF for high frequency noise on the power supply. 5.0 Specifications The PCB layout and power supply decoupling discussed above should provide sufficient decoupling to acheive the following when measured at the device: (1) the resultant AC noise voltage measured across each VCC/GND set should be less than 100 mVpp, (2) all VCC's should be within 50 mVpp of each other, and (3) all GND's should be within 50 mVpp of each other. Absolute maximum ratings are limits beyond which may cause permanent damage to the device or affect device reliability. All voltages are specified with respect to GND, GND unless otherwise specified. ABSOLUTE MAXIMUM RATINGS VCC Supply Voltage ........................................ –3V to 7V All Inputs and Outputs ............................ –3V to VCC+.3V Input Latchup Current ..................................... +/-25 mA a.) OUTPUT DRIVER / INPUT ADDRESS CORRESPONDENCE Package Power Dissipation ................... 3 Watt @ 25 °C Storage Temperature .............................. –65 to +150°C PLED1 MDA1 PLED0 MDA0 Operating Temperature ............................. –65 to +85°C Lead Temperature (Soldering, 10 Sec) ................ 250°C b.) SETTING ADDRESS WITH LEDs HIGH LOW 500 500 PLED1 PLED1 PLED0 PLED0 50 K c.) SETTING ADDRESS WITHOUT LEDs HIGH FLOAT LOW PLED1 PLED1 PLED0 PLED0 10 K (OPTIONAL) Figure 12. MI Serial Port Address Selection 34 4-34 MD400157/D MD400157/D T4 0 LX 8 PART3 PART2 OUI12 PART1 OUI13 REM_FLT ANEG_ACK CAP_SUPR 0 OUI11 0 0 0 COLTST PART0 OUI14 1 1 1 0 x.4 x.5 x.6 x.7 M Memory Map REV3 OUI15 CAP_NWY 0 1 x.3 REV2 OUI16 LINK 0 1 x.2 REV1 OUI17 JAB 0 0 x.1 REV0 OUI18 EXREG 0 1 x.0 8502 4-35 35 8502 DC Electrical Characteristics Unless otherwise noted, all test conditions are as follows: 1. TA = 0 to 70°C 2. VCC = 5V +/-5% 3. 20 MHz +/- 0.01% 4. RBIAS = 10K +/- 1%, no load LIMIT SYM PARAMETER VIL Input Low Voltage MIN TYP MAX UNIT CONDITIONS 0.8 Volt All except OSCIN, MDA[1:0], LINKI VCC–1.0 Volt MDA[1:0] 1.5 Volt OSCIN 0.5 Volt LINKI VCC–1.5 Volt LINKI VIM Input Intermediate Voltage 1.5 VIH Input High Voltage 2 Volt All except OSCIN, MDA[1:0], LINKI VCC– 0.3 Volt MDA[1:0] 3.5 Volt OSCIN VCC– 0.5 Volt LINKI -1 µA VIN = GND All Except MDA[1:0], OSCIN, EE_DI, LINKI -12 -50 µA VIN = GND EE_DI -5 -25 µA VIN = GND MDA [1:0] -150 µA VIN = GND OSCIN, LINKI 1 µA VIN = VCC All Except OSCIN, LINKI 150 µA VIN = VCC OSCIN, LINKI 0.4 Volt IOL = _4mA All except PLED[1:0] 1 Volt IOL = -20 mA PLED[1:0] Output High Voltage VCC - 1.0 Volt IOH = 4 mA All except PLED[1:0], XMT_LED, RCV_LED VCC - 1.0 Volt IOH = 10 mA, XMT_LED, RCV_LED 2.4 Volt IOH = 4µA PLED[1:0] IIL IIH VOL VOH Input Low Current Input High Current Output Low Voltage CIN Input Capacitance 5 ICC VCC Supply Current 85 110 mA pF Transmitting 1.3 3.06 mA Powerdown Mode 36 4-36 MD400157/D 8502 AUI CHARACTERISTICS, TRANSMIT Unless otherwise noted, all test conditions are as follows: 1. TA = 0 to 70°C 2. VCC = 5V +/-5% 3. 10 MHz +/- 0.01% 4. RBIAS = 10K +/- 1% 5. 78 ohm, 27µH load across DO± LIMIT SYM PARAMETER MIN TYP MAX UNIT TOV DO± Differential Output Voltage 550 1200 mV pk TOVT DO± Differential Output Voltage Template TORF DO± Output Rise And Fall Time 5 nS TOJ Transmit Output Jitter ± 0.5 nS TOIV DO± Differential Output Idle Voltage +/– 40 mV TOVU DO± Differential Output Undershoot During Idle –100 mV TCMD DO± Common Mode DC Output Voltage See Figure 3 VCC/4 +0.5 mV pk 4-37 37 MD400157/D CONDITIONS tr, tf measured at –450 mV and +450 mV points Voltage on Either DO+ or DO– Relative to GND 8502 AUI CHARACTERISTICS, RECEIVE Unless otherwise noted, all test conditions are as follows: 1. TA = 0 to 70°C 2. VCC = 5V +/-5% 3. 10 MHz +/- 0.01% 4. RBIAS = 10K +/- 1% 5. 10 MHz sinewave on DI±, C± LIMIT SYM PARAMETER MIN RST DI±, CI± Squelch Threshold RUT DI±, CI± Unsquelch Threshold ROCV DI±, CI± Input Open Circuit Voltage RCMR DI±, CI± Input Common Mode Voltage Range RDR DI±, CI± Input Differential Voltage Range RIR DI±, CI± Input Resistance RIC DI±, CI± Input Capacitance TYP MAX UNIT –175 –325 mV –100 –225 mV 3.0 ±0.5 Volt ROCV ±0.5 Volt GND VCC 5K Ohm 10 pF 38 4-38 MD400157/D Volt CONDITIONS Voltage on Either DI+/CI+ or DI–/CI– Relative to GND. Voltage on Either DI+/CI+ or DI–/CI– Relative to GND. 8502 AC Test Timing Conditions Unless otherwise noted, all test conditions are as follows: 1. TA = 0 to 70°C 2. VCC = 5V +/-5% 3. 20 MHz +/- 0.01% 4. RBIAS = 10K +/- 1%, no load 5. Input conditions: All Inputs: tr, tf <= 10nS, 20-80% 6. Output Loading DO±: 78 Ω, 27 µH Open Drain Outputs: 1K Ω Pullup, 50 pF All Other Digital Outputs: 50pF 7. Measurement Points: DO±, DI±, CI±: 0.0V During Data, ±0.3V at start/end of packet All other inputs and outputs: 1.5 Volts 20 MHz Clock Timing Charateristics Refer To Figure 13 For Timing Diagram LIMIT SYM PARAMETER MIN TYP MAX UNIT t1 OSCIN Cycle Time 49.995 50 50.005 nS t2 OSCIN High Time 15 nS OSCIN Driven by External Clock t3 OSCIN Low Time 15 nS OSCIN Driven by External Clock t4 OSCIN To TX_CLK Delay 20 CONDITIONS nS t1 OSCIN t4 t TX_CLK Figure 13. 20 MHz Clock Timing 4-39 39 MD400157/D 8502 Transmit Timing Charateristics Refer To Figure 14 For Timing Diagram LIMIT SYM PARAMETER MIN TYP MAX UNIT t11 TX_CLK Cycle Time 399.96 400 400.04 nS t12 TX_CLK High Time 160 200 240 nS t13 TX_CLK Low Time 160 200 240 nS t14 TX_CLK Rise/Fall Time 10 nS t15 TX_EN Setup Time 40 nS t16 TX_EN Hold Time 0 nS t17 CRS During Transmit Assert Time 40 nS t18 CRS During Transmit Deassert Time 40 nS t19 TXD Setup Time 40 nS t20 TXD Hold Time 0 nS t23 Transmit Propagation Delay 200 nS t24 Transmit Output Jitter ± 0.5 nS t25 Transmit SOI Pulse Width To 0.3V 350 nS t26 Transmit SOI Pulse Width to 40 mV 7000 nS t27 PLED0 Assert Time 55 mS PLED0 Programmed For Activity t28 PLED0 Pulse Width 55 mS PLED0 Programmed For Activity 225 45 40 4-40 MD400157/D CONDITIONS TXEN_CRS=1 8502 t TX_CLK t 16 t 15 t TXEN t 18 t 17 CRS [1] t 19 TXD [3:0] N0 N1 t 20 N2 N3 t 23 DO± PREAMBLE PREAMBLE t 27 PLED0 Note 1. CRS is asserted only when TX_EN to CRS Loopback select bit is programmed in MI Serial Port. Default is TX_EN to CRS Loopback Disabled. Figure 14. Transmit Timing 4-41 41 MD400157/D SOI 8502 Receive Timing Charateristics Refer To Figures 15 And 16 For Timing Diagram LIMIT SYM PARAMETER t31 MAX UNIT Start Of Packet To CRS Assert Delay 100 nS t32 End Of Packet To CRS Deassert Delay 250 nS t33 Start Of Packet To RX_DV Assert Delay 2000 nS t34 End Of Packet To RX_DV Deassert Delay 900 nS t36 Start Of Packet To First Data Nibble Delay 7300 nS t37 RX_CLK To RX_DV, RXD Delay 0 25 nS t38 RX_CLK High Time 180 200 220 nS t39 RX_CLK Low Time 180 200 1200 nS t40 Minimum SOI Pulse Width Required For Idle Detection 125 200 nS Measure On DI± from last zero cross in Middle of Manchester Bit Cell to 0.3V point. t41 Receive Input Jitter ±18.0 nS Data ±12.0 nS Preamble 55 mS PLED0 Programmed For Activity 55 mS PLED0 Programmed For Activity 10 nS t42 PLED0 Assert Time t43 PLED0 Pulse Width t44 RX_CLK, RXD, CRS, RX_DV Output Rise And Fall Times MIN 45 TYP 42 4-42 MD400157/D CONDITIONS 8502 DI± DATA t 31 t CRS t 38 RX_CLK TX TX TX TX t TX RX t 33 RX_DV t 36 t RXD [3:0] DATA t 42 t PLED0 Figure 15. Receive Timing, Start of Packet DI± DATA DATA DATA SOI DATA DATA t 40 t 32 CRS t RX_CLK RX RX RX RX RX RX RX DATA DATA t 34 RX_DV RXD [3:0] DATA DATA DATA DATA DATA Figure 16. Receive Timing, End of Packet 4-43 43 MD400157/D t TX 8502 Collision Timing Characteristics Refer To Figures 17 and 18 For Timing Diagram LIMIT SYM PARAMETER t51 MIN MAX UNIT CI± Start To COL Assert Time 200 nS t52 CI± Stop To COL Deassert Time 400 nS t53 CI± Start To CRS Assert Time 200 nS t54 Minimum CI± Pulse Width Required For Collision Detection 10 35 nS t55 CI± Minimum Cycle Time Required For Collision Detection 48 77 nS t56 CI± Maximum Cycle Time Required For Collision Detection 200 400 nS t57 COL Rise And Fall Time 10 nS t58 PLED1 Assert Time 55 mS PLED1 Programmed For Collision t59 PLED1 Pulse Width 55 mS PLED1 Programmed For Collision t60 Collision Test Assert Time 100 nS t61 Collision Test Deassert Time 40 nS 45 TYP 44 4-44 MD400157/D CONDITIONS 8502 t 55 t 56 CI± t 54 t 51 t 54 t 52 COL t 53 CRS t 58 t 59 PLED1 Figure 17. Collision Timing TX_EN t 60 t 61 COL Figure 18. Collision Test Timing 4-45 45 MD400157/D 8502 LED Driver Timing Characteristics Refer To Figure 19 For Timing Diagram LIMIT SYM PARAMETER MIN t66 PLED[1:0] XMT_LED, RCV_LED, On Time t67 PLED[1:0] XMT_LED, RCV_LED, Off Time TYP MAX UNIT 45 55 mS 45 55 mS t 66 t 67 t 66 t 67 PLED [1:0] XMT_LED RCV_LED Figure 19. LED Driver Timing 46 4-46 MD400157/D CONDITIONS 8502 MI Serial Port Timing Characteristics Refer To Figure 20 For Timing Diagram LIMIT SYM PARAMETER MIN TYP MAX UNIT t71 MDC High Time 20 nS t72 MDC Low Time 20 nS t73 MDIO Setup Time 10 nS Write Bits t74 MDIO Hold Time 10 nS Write Bits t75 MDC To MDIO Delay 20 nS Read Bits t76 MDIO Hi-Z To Active Delay 20 nS Write-Read Bit Transition t77 MDIO Active To HI-Z Delay 20 nS Read-Write Bit Transition t78 Frame Delimiter (Idle) 32 Clocks t 71 MDC 0 t 73 MDIO (READ) ST1 t 73 MDIO (WRITE) ST1 1 13 14 MDC Clocks With MDIO=1's t 72 15 16 t 76 t 74 ST0 CONDITIONS REGAD0 TA1 TA0 t t DATA 15 t 74 ST0 REGAD0 TA1 TA0 DATA 15 Figure 20. MI Serial Port Timing 4-47 47 MD400157/D 8502 EEI Timing Characteristics Refer To Figure 21 For Timing Diagram LIMIT SYM PARAMETER MIN t81 EE_CS Setup Time 1800 nS t82 EE_CS Hold Time 50 nS t83 EE_CLK High Time 3800 4000 4200 nS t84 EE_CLK Low Time 3800 4000 4200 nS t85 EE_CLK To EE_DO Delay 500 nS Read Bits t86 EE_DI Setup Time 500 nS Write Bits t87 EE_DI Hold Time 0 nS Write Bits t88 EE_DO Hi-Z To Active Delay 500 nS Write-Read Bit Transition t89 EE_DO Active To HI-Z Delay 500 nS Read-Write Bit Transition t90 EE_CS Deassert Time 8400 nS 7600 TYP 8000 MAX 48 4-48 MD400157/D UNIT CONDITIONS MD400157/D Figure 21. EEI Timing 9 D15 t 86 10 D14 t 87 11 D13 12 23 D1 24 D0 t 82 t 90 8502 4-49 49 8502 Ordering Information N Q 8502 PACKAGE TYPE TEMPERATURE RANGE PART TYPE N = Plastic Leaded Chip Carrier Q – 0°C to +70°C Ethernet MII to AUI Interface Adapter Revision History 9/23/96 Page 11, First Paragraph: - Reference to 75-200 nS has been changed to 77-200 nS. - Reference to 50 nS has been changed to 48 nS. - Reference to 15 nS has been changed to 10 nS. Page 26, Figure 7: References to 49 1 % resistors has changed to 39 1%. Page 27, Figure 8: References to 49 1 % resistors has changed to 39 1%. - Figure 8 Resistors 500 and LEDs have been flipped. Page 29, Figure 10: References to 49 1 % resistors has changed to 39 1%. Page 32, First column, last paragraph copy has been added, end of paragraph now reads: - ...tied to GND or tied to GND through an optional 10K resistor as shown in Figure 12c. The optional 10K resistor allows the pin to be used as a digital output under normal conditions. Page 34, Figure 12b. Resistors 500 and LEDs have been flipped. - Figure 12c. Setting Address Without LEDs: - 10K Resistor (Optional) has been added. Page 36, DC Electrical Characteristics: - VIL (max) 0.8 Conditions now reads, All except OSCIN, MDA[1:0], LINKI. - VIL (max) 0.5, row has been added. - VIM (max) has changed from 3.0 to VCC–1.5. - VIH (min) 3.5 Conditions is now OSCIN. - VIH (min) VCC–0.5, row has been added. - VIH (min) VCC–0.5, row has been added. - IIL (min) –12 Conditions is now VIN = GND, EE_DI. - IIL (min) –5, row has been added. - IIH Conditions has been changed from VIN = VCC C to VIN = VCC. - VOH (min) 4 Conditions, has been changed from IOL = 4mA to IOH = 4mA. - VOH (min) 2.4 Conditions, has changed from IOL = 12µA to IOH = 5µA. - ICC (max) has been changed from 85 to 70. - ICC (max) has been changed from 0.1 to 1.0. - ICC (max) 35 row has been deleted. 50 4-50 MD400157/D 8502 Revision History Page 37, AUI Characteristics, Transmit: - TOV (max) is now 1200. - TOV (unit) is now mV pk. - TCMD (min) VCC/3–0.5 has been deleted. - TCMD (typ) has changed VCC/3 to VCC/4 ±0.5. - TCMD (max) VCC/3 + 0.5 has been deleted. - TCMD Conditions now reads; Voltage on Either DO+ or DO– Relative to GND. - TCMA has been deleted. - TOR has been deleted. - TOC has been deleted. Page 38, AUI Characteristics, Receive: - ROCV Parameter now reads; DI±, CI± Input Open Circuit Voltage. - ROCV (min) has been deleted. - ROCV (typ) has changed from VCC/2 to VCC2 ± 0.5. - ROCV (max) has been deleted. - ROCV Conditions is now; Voltage on Either DI+/CI+ or DI–/CI_ Relative to GND. - RCMR (min) has been deleted. - RCMR (typ) is now; VCC/2 ± 1.0. - RCMR (max) has been deleted. - RDR Conditions is now; Voltage on Either DI+/CI+ or DI–/CI– Relative to GND. Page 39, 20 MHz Clock Timing Characteristics - t2 Conditions is now; OSCIN Driven by External Clock. - t3 Conditions is now; OSCIN Driven by External Clock. Page 40, Transmit Timing Characteristics: - t15 (min) has changed from 25 to 40. - t19 (min) has changed from 25 to 40. - t25 (min) has changed from 250 to 225. - t27 (max) has changed from 105 to 55. - t28 (min) has changed from 95 to 45. - t28 (max) has changed from 105 to 55. Page 43, Figure 15: RXD[3:0] has changed; additional DATA reference. Page 44, Collision Timing Characteristics: - t52 (max) has changed from 450 to 400. - t53 Parameter now reads; CI± Start to CRS Assert Time. - t53 (max) has changed from 400 to 200. - t54 Parameter now reads; Minimum CI± Pulse Width Required for Collision Detection. - t54 (min) has changed from 17.6 to 10. - t55 (min) has changed from 50 to 48. - t55 (max) has changed from 75 to 77. - t58 (max) has changed from 105 to 55. - t59 (min) has changed from 95 to 45. - t59 (max) has changed from 105 to 55. - t60 (max) has changed from 5.12 to 100. - t60 (unit) has changed from µS to nS. Page 45, Figure 17; CRS has changed. Page 46, LED Driver Timing Characteristics: - t66 (min) has changed from 95 to 45. - t66 (max) has changed from 105 to 55. - t67 (min) has changed from 95 to 45. - t67 (max) has changed from 105 to 55. 4-51 51 MD400157/D 8502 Revision History Page 48, EEI Timing Characteristics: - t86 (min) is now 500. - t86 (max) has been deleted. - t87 (min) is now 0. - t87 (max) has been deleted. 6/23/97 Document Revision Changed to MD400157/B Page 1, Features: - LED Outputs, Activity; has been changed to Activity, Transmit, Receive. - NOTES 1. 8502 only, has been added. Refers to features, LED Outputs, and Interface to External E2 PROM for Automatic Preloading of MI Serial Port Bits. - Pin Configuration 8502 44 PLCC; Pin #11 EE_CLK has been changed to EE_CLK/XMT_LED, and Pin #12 EE_DO has been changed to EE_DO/RCV_LED. Page 4, Pin Description continued: - Pin #11, Pin Name; EE_CLK has been changed to EE_CLK/XMT_LED - Pin #11, Description, copy change; External EEPROM Clock Output has been changed to External EEPROM Clock Output Transmit LED. - Pin #11, Description, copy; During normal operation, this pin can be used as Transmit LED and can drive an LED to GND. 0 = No Detect 1 = Transmit Activity Detected, On for 50 mS. copy has been added. - Pin #12, Pin Name; EE_DO has been changed to EE_DO/RCV_LED - Pin #12, Description, copy change; External EEPROM Clock Output has been changed to External EEPROM Clock Output Receive LED. - Pin #12, Description, copy; During normal operation, this pin can be used as Receive LED and can drive an LED to GND. 0 = No Detect 1 = Receive Activity Detected, On for 50 mS. copy has been added. Page 5, 1.0 Pin Description continued: - Pin #5 Description; reference to 100 mS has been changed to 50 mS. - Pin #4 Description; reference to 100 mS has been changed to 50 mS. Page 6, Figure 1. 8501, 8502 Block Diagram: - References to EE_CLK has been changed to EE_CLK/XMT_LED and EE_DO has been changed to EE_DO/RCV _LED. Page 10, Section 3.6.2 Transmit Activity Indication: - First paragraph, reference to 100 mS has been changed to 50mS. - New second paragraph copy; XMT_LED is transmit activity output during normal operation. This pin is asserted high for 50 mS every time a transmit packet occurs. The XMT_LED output can drive an LED to GND or can drive another digital input. - Paragraph three copy has been changed from ... The PLED0 pin is only available on the 8502 (44L) ... to... The PLED0 and XMT_LED pins are only available on the 8502 (44L). - Section 3.7.1 Receiver; Paragraphs 2, and 3 references to VCC/2 have been changed to, about 3. 52 4-52 MD400157/D 8502 Revision History Page 10, Section 3.7.3 Receive Activity Indication; reference to 100 mS has been changed to 50 mS. - New paragraph two copy; RCV_LED is receive activity output during normal operation. This pin is asserted high for 50 mS every time a receive packet occurs. The RCV_LED output can drive an LED to GND or can drive another digital input. - Paragraph three copy has been changed from ...The PLED0 pin is only available on the 8502 (44L)... to ...The PLED0 and RCV_LED pins are only available on the 8502 (44L). Page 11, Section 3.8.3 Collision Indication - Reference to 100 mS has been changed to 50 mS. Page 12, - Section 3.15 POWERDOWN; Reference to 0.5 mW has been changed to 10 mW. - Section 3.17 LED DRIVERS; Paragraph 3, reference to 100 mS have been changed to 50 mS. - New paragraph; XMT_LED and RCV_LED outputs can drive LEDs... has been added. Page 13, Section 3.18.1 Signal Description second paragraph; copy has change from ...PLED[1:0] output drivers are high impedance for an interval called the poweron reset time. During the poweron reset interval... to ...PLED[1:0] output drivers are high impedance for an interval towards the end of the poweron reset time. During this interval, Page 14, Section 3.18.5 Frame Structure, copy change, first paragraph; copy has been change from...The last 16/80 bits are from one/all of the five data registers... to ...The last 16(80) bits are to or from one(all) of the five data registers. - Second paragraph, copy has been change from ...accessed data register bits will be read or write. The next 3 bits are upper device ... to ... accessed data register bits will be read from or written to. The next 3 bits are upper device... - Second paragraph, copy has been change from ... The next 5 bits are register address select bits which select one of the five data registers for access ... to ... The next 5 bits are register address select bits which select one or all of the five data registers for access.... - Second paragraph, copy has been change from ... cycle (or 80 bits if multiple register access is enabled and REGAD=11111) come from the data register ... to ... cycle (or 80 bits if multiple register access is enabled and REGAD=11111) are to or from the data register ... - Table 2. MI Register Bit Type Definition, R/WS C Definition; Clears Itself After Operation Completed, has been moved from Write Cycle to Read Cycle. Page 15, Figure 5. MI Serial Port Frame Timing Diagram - References to ST, OP, PHYAD, REGAD, TA, DATA have been changed to ST[1:0], OP[1:0], PHYAD[4:0], REGAD[4:0], TA[1:0], DATA[15:0] Page 27, Figure 8. External MII -AUI Schematics Using 8502 with EEPROM and LED's - References to EE/DO and EE_CLK have been changed to EE_DO/RCV_LED and EE_CLK/XMT_LED. - 1K Resisters and LEDs have been added to EE_DO/RCV_LED and EE_CLK/XMT_LED. Page 36, DC Electrical Characteristics - IIL Conditions MDA[1:0] has been changed to VIN = GND MDA[1:0]. - IIL Conditions OSCIN LINKI has beeen changed to VIN = GND OSCIN LINKI. - VOH Limit (Min) has been changed from 4 to VCC - 1.0. - VOH Conditions, XMT_LED, RCV_LED have been added. - New VOH Row, Limit (MIN) = VCC -1.0, Limit (UNIT) = Volt, Conditions IOH = 10µA XMT_LED, RCV_LED has been added. - ICC Transmitting Limit (Typ) is now 85. - ICC Transmitting Limit (Max) has been changed from 85 to 110. - ICC Powerdown Mode Limit (Typ) is now 1.3. - ICC Powerdown Mode Limit (Max) is now 3.06. Page 38, AUI Characteristics Receive - ROCV Limit (TYP) has changed from VCC/2 ±0.5 to 3.0 ± 0.5. - RCMR Limit (TYP) has changed from VCC/2 ± 1.0 to ROVC ± 0.5 Page 39, Figure 13. 20 MHz Clock Timing - TX_CLK Timing has been changed. 20 MHz Clock Timing Characteristics - t4 Limit (Max) has been changed from 10 to 20. 4-53 53 MD400157/D 8502 Revision History Page 45, Figure 18. Collision Test Timing - Timing reference to t69 has been changed to t 61. Page 46, LED Driver Timing Characteristics - t66 Parameter, XMT_LED RCV_LED has been added. - t67 Parameter, XMT_LED RCV_LED has been added. Figure 19. LED Driver Timing - XMT_LED RCV_LED, Timing has been added to illustration. Page 47, Figure 20. MI Serial Port Timing - MDIO(READ) and MDIO(WRITE), timing labels have changed. - MDIO(WRITE) DATA 0 rising edge, is now rising falling. - t74 reference now extends to MDC timing. Page 55, 44 Pin PLCC Dimension Diagram has been added. Page 56, 28 Pin PLCC Dimension Diagram has been added. 7/14/97 Document Revision Changed to MD400157/C Page 5, Pin 4, Pin Name: - Corrected error, (MDA) changed to (MDA0). Page 22, Bit 16.5, 16.4, Definition - Corrected error, reference to PLED1 has been changed to PLED0. 7/29/97 Document Revision Changed to MD400157/D Global change: All references to VCC = 5 ± 10%, has been changed to V CC = 5 ± 5%. Global change: All references to 8501 have been deleted or changed to 8502. Page 36, DC Electrical Characteristics, SYM VOH Conditions: Reference to IOH = 5µA has been changed to IOH 4µA. 54 4-54 MD400157/D 8502 Surface Mount Packages 44 Pin Plastic Leaded Chip Carrier .048 (1.22) x 45° .042 (1.07) x 45° PIN NO. 1 IDENTIFIER PIN NO. 1 .056 (1.42) .042 (1.07) .656 (16.66) .650 (16.51) NQ8502 NQ80220 .695 (17.65) .685 (17.40) .656 (16.66) .650 (16.51) .695 (17.65) .685 (17.40) .500 (12.70) REF. .050 (1.27) BSC Notes 1. All dimensions are in inches and (millimeters). 2. Dimensions do not include mold flash. Maximum allowable flash is .008 (.20). 3. Formed leads shall be planar with respect to one another within 0.004 inches. 4-55 55 MD400157/D