background image

Z183 EMAC Board
User Manual

12

UM008301-0401

uint GetRxMissCount(void);

This function returns the accumulated count of frames that were missed.
Frames can be missed if there is a shortage of on-chip buffer space when the
frames are not picked up in time to make room for new frames arriving on the
wire. This call automatically resets the Rx missed error count to zero.

uint GetTxColCount(void);

This function returns the accumulated count of transmit collisions when
transmitting frames. This call automatically resets the collision count to zero.

Transmit and Receive Buffer Structure

The driver functions manage the send and receive operations that pointers use
to gain access to buffers provided by the user. These pointers are passed as
arguments/return values in function calls by the user program. The driver does
not assume any queuing or buffer chaining.

User programs, higher level drivers or protocol stacks should manage buffers (if
required) by deriving other forms of buffer definitions suitable for the application.

The driver internally uses the following internal structure:

typedef struct Frm {

usint

Flags;

usint

Length;

usint

DstAddr[3];

usint

SrcAddr[3];

usint

FrmType;

//can be type or length

usint

Payload[800]; //max size is 1500 bytes (< 800 words)

} EMACFRAME;

“usint” is defined as unsigned 16 bit integer.

Flags

Flags is NULL or set to one of the valid TxCMD bit value combinations on a
transmit operation request by the user program. In a receive operation, Flags
contains a receive event report provided by the hardware. The flag bits indicate
an error-free receive or CRC, Runt, and excess length errors. See the
ethdr183.h header file for a description of the flag bits.

Содержание Z183 EMAC

Страница 1: ...RS 910 E HAMILTON AVENUE CAMPBELL CA 95008 USA PHONE 1 408 558 8500 FAX 1 408 558 8300 WWW ZILOG COM User Manual Revision 1 UM008301 0401 10 Base T Ethernet Media Access Controller Add On Board for th...

Страница 2: ...described is intended to suggest possible uses and may be superseded ZiLOG INC DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE INFORMATION DEVICES OR TECHNOLOGY DESCRIBED...

Страница 3: ...Kit Contents 1 Configuring the Z183 Evaluation Board 1 Installing the EMAC Board 5 Interrupt Cabling 6 Interrupt Selection 7 Address Jumpers 7 Software Development 7 CS8900A Address Map 7 Device Drive...

Страница 4: ...Z183 EMAC Board User Manual iv UM008301 0401...

Страница 5: ...se items contact your local sales office One EMAC board labeled 10 Base T interface Interrupt wiring cable assembly Z183 EMAC Board User Manual Configuring the Z183 Evaluation Board To configure the Z...

Страница 6: ...Z183 EMAC Board User Manual 2 UM008301 0401 4 Select a name for your connection and click OK 5 When the Connect To window appears click Cancel...

Страница 7: ...C Board User Manual 3 UM008301 0401 6 In the Hyperterminal window pull down the FILE menu and select PROPERTIES 7 In the Connect Using field find the port that your serial cable is connected to and se...

Страница 8: ...Z183 EMAC Board User Manual 4 UM008301 0401 8 Click the Configure button and configure the screen as shown below Then click OK to return to the Hyperterminal window...

Страница 9: ...he EMAC board so that the components are facing upward 3 Make sure the Z183 board is turned off 4 Place the EMAC board s 50 pin J1 socket header directly over the J22 pin header of the Z183 board The...

Страница 10: ...1 Using the Debug Monitor send an I command to Input I O byte at 2000h When the I O port 2000h is read the Ethernet MAC chip on the EMAC board comes out of hardware reset condition 12 When the LINK LE...

Страница 11: ...ge of I O address map even though the Ethernet chip is tightly decoded at 2300H 230FH I O locations When specifying the PacketPage addresses via the on chip PacketPage pointer use the normal addresses...

Страница 12: ...r chain management that may be required The argument i available to your code is a bit mask indicating the receive error conditions applicable to the frame that you can now retrieve using a ReceivePkt...

Страница 13: ...ntry and a similar amount of instructions on exit are executed with a DI general master interrupt disable instruction The transmit and receive function callbacks are issued with all other general inte...

Страница 14: ...to accept broadcast frames CRCerrorA Specify to accept frames even with CRC errors RuntA Specify to accept frames that are less than 64 bytes long ExtradataA Specify to accept frames larger than 1518...

Страница 15: ...ransmitting an outbound queue int ReceivePkt EMACFRAME databuff This function retrieves a received frame into the user buffer that databuff points to You must ensure that the buffer at databuff contai...

Страница 16: ...d as arguments return values in function calls by the user program The driver does not assume any queuing or buffer chaining User programs higher level drivers or protocol stacks should manage buffers...

Страница 17: ...d contains the destination address of the packet and examining Flags indicates the Rx Filter criteria by which this packet has been accepted by the MAC SrcAddr For a transmit operation the three word...

Страница 18: ...GND D4 A17 SD10 10BT_RDN SD4 RESET_HIGH D0 A10 IORD A14 A9 D0 RESET D4 A15 INT1 SD12 SD5 SD13 D6 D7 SD7 SD15 A0 GND INT2 AM0 A17 RAMRD AM1 A18 INT0 D2 A16 GND A2 GND A11 ROMWR ROMRD NMI RESET Y1 20Mh...

Отзывы: