background image

Z183 EMAC Board

User Manual

9

UM008301-0401

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.

The driver places the address of its interrupt handler into the word that this
argument points to.

Once inside its interrupt service routine, the driver prevents its own Ethernet
add-on board peripheral from issuing further interrupts and re-enables the
general interrupts using an EI instruction. This allows minimum latency on
other real-time interrupts in the Z183 microprocessor programming.
Approximately 15 instructions on entry 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
interrupts enabled.

extern void Reset8900(void);

This function resets the Ethernet MAC driver and hardware. Use Init8900( ) to
reactivate the Ethernet MAC hardware and driver. However, this is not a
hardware reset. Issuing this reset has no effect on the RESET button on the
Z183 board. The EMAC board remains addressable and accessible from
software.

Note:

The driver is unaware of the exact mechanism that causes its interrupt to be vectored to the

location specified by this pointer. You should check all the associated Z183 register programming,
as is necessary in an application scenario. Refer to the add-on board hardware manual for details
on wiring the interrupt signal between the add-on board and the Z183 board.

Summary of Contents for Z183 EMAC

Page 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...

Page 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...

Page 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...

Page 4: ...Z183 EMAC Board User Manual iv UM008301 0401...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: