                 Macronix International Co., Ltd.
                  Diagnose program user's guide
              =======================================

	Copyright (C) 1996 by Macronix International Co., Ltd.
	All rights reserved.

About mx713.exe
==================================================
	This program is using for MX98713 test.
	Three sets of Vendor ID and Device ID will be searched automatically.
	If the parameters of the current LanCard do not match one of them,
 	"Device not found" error message will be reported.

	set1:
	Vendor ID :	0x10d9
	Device ID :	0x0512

	set2:
	Vendor ID :	0x1011
	Device ID :	0x0009

	set3:
	Parameters that defined in mx713.cfg


Contents of mx713.exe
==================================================

	 Ŀ 
	   Function Select      
	 Ĵ 
	 F1. Network Diagnose   
	 F2. PMAC Diagnose      
	 F3. EEPROM Access      
	 F4. PORT Selection     
	  

	1.Network Diagnose

	 6 network diagnose functions are provided in this item .

	Ŀ
	   Network  Diagnose    
	Ĵ
	 Transmit Monitor       
	 Receive Monitor        
	 Ping-Pong Master Mode  
	 Ping-Pong Slave  Mode  
	 External loopback      
	 Internal loopback      
	

	 1.1 Transmit Monitor:                                   
	 Transmit 6 consecutive packets repeatly.            
	 transmit condition: CAL=8 , TAP=01 , CSR6_SF        
						 packet size =  401
	                                                     
	 1.2 Receive Monitor:                                    
	 Receive all packets in the network, and place them  
	 into 6 consecutive RX buffers.                      
	 Receive condition: CSR6_PB,CSR6_PR,CSR6_PM          
	                                                     
	 1.3 Ping-Pong Master Mode:                              
	 This selection forces adapter to send out packets (random
  	 packet length ) and wait for echo. 
	 After receiving the echo, compare them and accumulate 
	 the error status. To do this, a responcer is needed in 
	 the network.
	 The packet size is a random number between 60 and 1514.
	                                                     
	 1.4 Ping-Pong Slave Mode:                               
	 As a network responcer, it echoes all received packets.                                            

	 1.5 External loopback:                              
	 In this item, the test signal will be send out of chip MX98713.
	 To do this test, an external loopback path should be provided.
	 The packet size is a random number between 60 and 1514.
 
	 1.6 Internal loopback:
	 Do an internal loopback test on MX98713.
	 The packet size is a random number between 60 and 1514.


	2.PMAC Diagnose

	This item do a basic function verification on MX98713.

	ͻ
	    MX98713 Function Test         
	͹
	 Internal    Loopback             
	 ISR         Test                 
	 CSR         Test                 
	 EEPROM      Test                 
	 Perfect     Test                 
	 Inverse     Test                 
	 Hash        Test                 
	 HashOnly    Test                 
	 Multi_PKT   Test                 
	 Burst_Len   Test                 
	ͼ


 	Internal loopback :	 internal loopback test
	ISR         Test  :  interrupt service test 
	CSR         Test  :  command and status register function test 
	EEPROM      Test  :  EEPROM read/write test 
	Perfect     Test  :  Perfect filtering function test 
	Inverse     Test  :  Inverse filtering function test 
	Hash        Test  :  Hash filtering function test 
	HashOnly    Test  :  HashOnly filtering function test
	Multi_PKT   Test  :  One packet in multi-descriptor function test 
	Burst_Len   Test  :  Burst length test 


	3. EEPROM Access 

	 ͻ 
	  MX98713 EEPROM Access       
	 ͹ 
	  Dump EEPROM                 
	  Edit C46.PKT                
	  Upload C46.PKT to EEPROM    
	  Download EEPROM to C46.PKT  
	 ͼ 

	 3.1 Dump EEPROM:
	      Dump the content of EEPROM.               

	 3.2 Edit C46.PKT:
	     Edit file c46.pkt. 
		 File c46.pkt posses the content of EEPROM and will be created
		 automatically when item "Download EEPROM to C46.PKT" is selected.
	                                               
	 3.3 Upload C46.PKT to EEPROM:                     
	     Write EEPROM by c46.pkt content.          
	                                               
	 3.4 Download EEPROM to C46.PKT:                   
	     Write file c46.pkt by EEPROM value.       


	4. PORT Selection

	 MX98713 provides 2 kinds of signal interface ( 4B/5B ).
	 It depends on the hareware design, for 4B connection the 
 	 "MII PORT" should be selected, and for 5B connection select
 	 item "SYMBOL PORT". The default selection is "SYMBOL PORT".
  	  
	Ŀ
	MX98713 PORT SELECT
	Ĵ
	 SYMBOL   PORT     
	 MII      PORT     
	


About "mx713 eep"
==================================================

Type "mx713 eep", it turns out to be an EEPROM auto programming routine.
Before using this function, make sure that the content of EEPROM should 
be all "0xff" ( a brand new EEPROM default value).

After executing "mx713 eep", the following action will be taken:
1. Upload the content of file c46.pkt to the current EEPROM.
2. The CRC value will be calculated and programmed into EEPROM automatically.
3. The Network ID that defined in c46.pkt will be increased by 1.

According to "MX98713 EEPROM FORMAT" we get an example.

The contents of c46.pkt are:

 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 01 01 00 00 12 34 56 78 00 1e 00 00 03 00
 1f 04 00 0b 8e 00 03 1b 6d 00 04 03 8e 00 05 1b
 6d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 14 00 00 00 00 00 00 00 00 00 12 05 d9 10 ab cd

After execute "mx713 eep", the format show above will be programmed 
into EEPROM. and the contents of c46.pkt turn out to be:

 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 01 01 00 00 12 34 56 79 00 1e 00 00 03 00
 1f 04 00 0b 8e 00 03 1b 6d 00 04 03 8e 00 05 1b
 6d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 14 00 00 00 00 00 00 00 00 00 12 05 d9 10 ab cd

MX98713 EEPROM FORMAT

Offset  0       2       4       6       8       a       c       e
       Ŀ
00-0f                                                                
       Ĵ
10-1f                                                                
       Ĵ
20-2f                                                                
       Ĵ
30-3f                                                                
       Ĵ
40-4f                                                                
       Ĵ
50-5f                                                                
       Ĵ
60-6f                                                                
       Ĵ
70-7f   N  L  M  R  csr0           csr16   DEV    VEN    CRC  
       

N  : Network ID index 
M  : 0         -> Symbol mode
     None zero -> MII address for MII mode
R  : 0         -> Csr0,16 = Defaul value
     None zero -> Csr0,16 load from EEPROM
DEV: Device ID
VEN: Vendor ID
CRC: Checksum


About "mx713 100FD"	,"mx713 100HD", "mx713 10FD", "mx713 10HD", "mx713 AUTO"
==================================================

Type "mx713 100FD", force MX98713 to 100M Full_Duplex mode.
Type "mx713 100HD", force MX98713 to 100M Half_Duplex mode.
Type "mx713 10FD" , force MX98713 to 10M Full_Duplex mode.
Type "mx713 10HD" , force MX98713 to 10M Half_Duplex mode.
Type "mx713 AUTO" , force MX98713 to Nway Auto_Negotiation mode.
These actions do not reset the MX98713.




-- THE END --
