ZiLOG Z183 EMAC User Manual

10 base-t ethernet media access controller add-on board for the z183 evaluation platform

Advertisement

Quick Links

10 Base-T Ethernet Media
Access Controller Add-On
Board for the Z183
Evaluation Platform
User Manual, Revision 1
UM008301-0401
Z
LOG W
H
• 910 E. H
A
• C
, CA 95008 USA
I
ORLDWIDE
EADQUARTERS
AMILTON
VENUE
AMPBELL
: 1.408.558.8500 • F
: 1.408.558.8300 •
.Z
LOG.
PHONE
AX
WWW
I
COM

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z183 EMAC and is the answer not in the manual?

Questions and answers

Summary of Contents for ZiLOG Z183 EMAC

  • Page 1 10 Base-T Ethernet Media Access Controller Add-On Board for the Z183 Evaluation Platform User Manual, Revision 1 UM008301-0401 LOG W • 910 E. H • C , CA 95008 USA ORLDWIDE EADQUARTERS AMILTON VENUE AMPBELL : 1.408.558.8500 • F : 1.408.558.8300 • LOG.
  • Page 2 Document Disclaimer © 2001 by ZiLOG, Inc. All rights reserved. Information in this publication concerning the devices, applications, or technology 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 IN THIS DOCUMENT.
  • Page 3: Table Of Contents

    Z183 EMAC Board User Manual Table of Contents Introduction ........... 1 Kit Contents .
  • Page 4 Z183 EMAC Board User Manual UM008301-0401...
  • Page 5: Introduction

    Z183 evaluation board. It has an RJ-45 jack that allows you to connect to a standard 10 Base-T hub for testing purposes. Kit Contents The Z183 EMAC kit contains the following items. If you did not receive one of these items, contact your local sales office. •...
  • Page 6 Z183 EMAC Board User Manual 4. Select a name for your connection and click OK. 5. When the Connect To window appears, click Cancel. UM008301-0401...
  • Page 7 Z183 EMAC Board User Manual 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 select it. UM008301-0401...
  • Page 8 Z183 EMAC Board User Manual 8. Click the Configure button and configure the screen as shown below. Then click OK to return to the Hyperterminal window. UM008301-0401...
  • Page 9: Installing The Emac Board

    (Windows 98) or Connect (Windows NT). The Hyperterminal window displays the following information, which indicates that the Z183 board is working properly. ZiLOG Z80183 Monitor Version 2.8 Z80183 10. Press the RESET button on the Z183 board to display the text message in the window shown above.
  • Page 10: Interrupt Cabling

    Z183 EMAC Board User Manual switch. Use the white Pin 1 dot on the cable to correctly orient the headers and then plug it in. INT2 INT1 INT0 Jumper Wire Supplied with Every 10-Base-T Board 7. Power up the Z183 board.
  • Page 11: Interrupt Selection

    Z183 EMAC Board User Manual Interrupt Selection Select the interrupt for EMAC service by placing the JP4 jumper in the appropriate position. JP4: 1-2 /INT0 JP4: 3-4 /INT1 JP4: 5-6 /INT2 Make sure there is only one jumper inserted in the JP4 jumper stack. It is recommended that you use rising edge trigger mode of interrupts with the CS8900A.
  • Page 12: Device Driver And Application Interface Routines

    Z183 EMAC Board User Manual Device Driver and Application Interface Routines extern int Init8900(char *ieeeaddr, void (*rxnotify)(), void (*txnotify)(), uint *intrvec); The Ethernet driver is initialized by a calling the Init8900() function. • ieeeaddr is a 6-byte (or 3-word) array that contains the unique 48-bit MAC address assigned to the Ethernet add-on adapter.
  • Page 13 Z183 EMAC Board User Manual • uint *intrvec is a pointer to an interrupt vector table entry as determined by the Z183 hardware interrupt line that is used to connect to the add-on board interrupt output, the value programmed into the I and IL registers of the Z183.
  • Page 14 Z183 EMAC Board User Manual extern int SetRxFilter(int rxflags, char *Hashbits); This function is used to specify the type of receive frames that are accepted by the driver. • rxflags is a bitfield used to set the following bits to 1, as defined in <ethdr183.h>.
  • Page 15 Z183 EMAC Board User Manual int TransmitPkt(EMACFRAME *databuff); This function is called to transmit a frame that is filled and placed at the pointer given by databuff. This function is called by the user program to initiate the transmit frame operation. When a call to this function is made, a user-specified txnotification interrupt callback is invoked to signal the completion of the frame transmission.
  • Page 16: Transmit And Receive Buffer Structure

    Z183 EMAC Board User Manual 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.
  • Page 17 Z183 EMAC Board User Manual Length For a transmit operation, you must fill the Length of the frame, including DstAddr and the last byte of data. For a received frame, the Length field contains the number of bytes received, including DstAddr and four CRC bytes at the end of frame.
  • Page 18 Z183 EMAC Board User Manual Figure 1. Z183 EMAC Board Schematic UM008301-0401...

Table of Contents