Cirrus Logic AN83 User Manual

AN83
&U\VWDO/$1 CS8900A ETHERNET CONTROLLER
TECHNICAL REFERENCE MANUAL
By Deva Bodas
Revised by James Ayres
Cirrus Logic, Inc.
P.O. Box 17847, Austin, Texas 78760 (512) 445 7222 FAX: (512) 445 7581 http://www.cirrus.com
Copyright Cirrus Logic, Inc. 2001
(All Rights Reserved)
JUN ‘01
AN83REV3
1
AN83
TABLE OF CONTENTS
SCHEMATIC CHECKLIST ...................................................................................................................................4
SOFTWARE CHECKLIST ....................................................................................................................................5
INTRODUCTION TO CS8900A TECHNICAL REFERENCE MANUAL ..............................................................6
HARDWARE DESIGN ..........................................................................................................................................7
CS8900A: CONNECTING TO NON-ISA BUS SYSTEMS ...................................................................................7
The CS8900A Architecture.............................................................................................................................7
ISA Bus ....................................................................................................................................................8
CS8900A in I/O Mode ..............................................................................................................................8
CS8900A in Memory Mode......................................................................................................................8
DMA Interface of the CS8900A................................................................................................................8
Selection of I/O, Memory and DMA Modes ....................................................................................................9
Design Example: CS8900A Interface to MC68302 ........................................................................................9
Address Generation .................................................................................................................................9
Read and Write Signals .........................................................................................................................10
SBHE Signal ..........................................................................................................................................10
Other Control Signals.............................................................................................................................10
Status Signals from CS8900A ...............................................................................................................11
Databus (SD[0:15]) Connection....................................................................................................................11
Checklist for Signal Connections to the CS8900A .......................................................................................11
EEPROM Optional........................................................................................................................................11
Design Example: CS8900A Interface to Cirrus Logic CL-PS7111 ...............................................................12
Design Example: CS8900A Interface to Hitachi SH3 ...................................................................................12
Summary ......................................................................................................................................................12
ETHERNET HARDWARE DESIGN FOR EMBEDDED SYSTEMS AND MOTHERBOARDS ..........................15
General Description ...............................................................................................................................15
Board Design Considerations ................................................................................................................15
Crystal Oscillator .............................................................................................................................15
ISA Bus Interface ............................................................................................................................15
External Decode Logic ....................................................................................................................15
EEPROM.........................................................................................................................................15
LEDs................................................................................................................................................18
10BASE-T Interface ........................................................................................................................18
10BASE-2 and AUI Interfaces.........................................................................................................18
Logic Schematics...................................................................................................................................18
Component Placement and Signal Routing........................................................................................20
Bill of Material ........................................................................................................................................20
Contacting Cirrus Logic Support
For a complete listing of Direct Sales, Distributor, and Sales Representative contacts, visit the Cirrus Logic web site at:
http://www.cirrus.com/corporate/contacts/
Crystal LAN, StreamTransfer, PacketPage, and SMART Analog are trademarks of Cirrus Logic.
Ethernet is a registered trademark of Xerox Corp.. Artisoft and LANtastic are registered trademarks of Artisoft, Inc.. Banyan and VINES are registered trademarks of Banyan Systems.. Digital and PATHWORKS are registered trademarks of Digital Equipment Corporation.. Intel is a registered trademark of Intel Corporation.. LAN Server and IBM are registered trademarks of International Business Machines Corp.. Microsoft, LAN Manager, Windows 95, Windows for Workgroups, and Windows NT are registered trademarks of Microsoft.. Novell and Netware are registered trademarks of Novell, Inc..
Cruz Organization, Inc
Preliminary product information describes products which are in production, but for which full characterization data is not yet available. Advance product infor­mation describes products which are in development and subject to development changes. Cirrus Logic, Inc. has made best efforts to ensure that the information contained in this document is accurate and reliable. However, the information is subject to change without notice and is provided “AS IS” without warranty of any kind (express or implied). No responsibility is assumed by Cirrus Logic, Inc. for the use of this information, nor for infringements of patents or other rights of third parties. This document is the property of Cirrus Logic, Inc. and implies no license under patents, copyrights, trademarks, or trade secrets. No part of this publication may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photographic, or otherwise) without the prior written consent of Cirrus Logic, Inc. Items from any Cirrus Logic website or disk may be printed for use by the user. However, no part of the printout or electronic files may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photographic, or otherwise) without the prior written consent of Cirrus Logic, Inc.Furthermore, no part of this publication may be used as a basis for manufacture or sale of any items without the prior written consent of Cirrus Logic, Inc. The names of products of Cirrus Logic, Inc. or other vendors and suppliers appearing in this document may be trademarks or service marks of their respective owners which may be registered in some jurisdictions. A list of Cirrus Logic, Inc. trade­marks and service marks can be found at http://www.cirrus.com.
.. UNIX is a registered trademark of AT&T Technologies, Inc.
2 AN83REV3
SCO is a registered trademark of Santa
AN83
LOW COST ETHERNET COMBO CARD REFERENCE DESIGN: CRD8900 ..................................................21
General Description ...............................................................................................................................21
Board Design .........................................................................................................................................21
Crystal Oscillator .............................................................................................................................21
ISA Bus Interface ............................................................................................................................21
External Decode Logic ....................................................................................................................21
EEPROM.........................................................................................................................................21
Socket for Optional Boot PROM .....................................................................................................21
LEDs ...............................................................................................................................................26
10BASE-T Interface ........................................................................................................................26
AUI Interface ...................................................................................................................................26
10BASE-2 Interface ........................................................................................................................27
Logic Schematics...................................................................................................................................27
Component Placement and Routing of Signals.....................................................................................27
Bill of Material ........................................................................................................................................27
Addressing the CS8900A: I/O Mode, Memory Mode ...................................................................................27
I/O Mode................................................................................................................................................27
Memory Mode........................................................................................................................................31
Lower Memory Mode ......................................................................................................................31
Extended Memory Mode .................................................................................................................31
Layout Considerations for the CS8900A......................................................................................................35
General Guidelines ................................................................................................................................35
Power Supply Connections....................................................................................................................35
Two Layered Printed Circuit Board (PCB) ......................................................................................35
Multi-layered Printed Circuit Board .................................................................................................35
Routing of the Digital Signals.................................................................................................................35
Routing of the Analog Signals ...............................................................................................................35
RECOMMENDED MAGNETICS FOR THE CS8900A .......................................................................................44
JUMPERLESS DESIGN.....................................................................................................................................45
Serial EEPROM............................................................................................................................................45
Reset Configuration Block .....................................................................................................................45
Driver Configuration Information............................................................................................................47
Format of Driver Configuration Block.....................................................................................................47
IEEE Physical Address ...................................................................................................................49
ISA Configuration Flags ..................................................................................................................49
PacketPage Memory Base..............................................................................................................50
Boot PROM Memory Base.............................................................................................................50
Boot PROM Mask ..........................................................................................................................50
Transmission Control ......................................................................................................................50
Adapter Configuration Word............................................................................................................51
EEPROM Revision..........................................................................................................................51
Manufacturing Date.........................................................................................................................52
IEEE Physical Address (Copy)........................................................................................................52
16-bit Checksum .............................................................................................................................52
EISA ID ...........................................................................................................................................52
Serial Number .................................................................................................................................53
Serial ID Checksum ........................................................................................................................ 53
Maintaining EEPROM Information......................................................................................................... 54
Embedded Designs......................................................................................................................................54
BIOS-Based Design Considerations......................................................................................................54
Driver Interface with BIOS-Based Configuration ...................................................................................54
OBTAINING IEEE ADDRESSES .......................................................................................................................55
DEVICE DRIVERS AND SETUP/INSTALLATION SOFTWARE .......................................................................56
DOS Setup and Installation Utility ................................................................................................................56
Installation Procedure............................................................................................................................56
CONTACTING CUSTOMER SUPPORT AT CIRRUS .......................................................................................57
Cirrus Web Site ............................................................................................................................................57
AN83REV3 3
AN83

SCHEMATIC CHECKLIST

Before getting into the meat of the technical refer­ence manual here is a schematic checklist. It’s pre­sented here, at the beginning, to help the hardware designer implement the design quickly and easily.
- No caps across the crystal. The CS8900A implements these internally.
- 4.99K 1% resistor between pin 93 and pin 94. A common mistake is the resistor is connected to Vcc instead of ground.
- RESET is active high, not active low.
- Check addressing.
- On non-ISA systems, if the processor is Big
Endian, it may be beneficial to byte swap the data lines to minimize byte swapping in software.
- SBHE (16 bit mode) -- must be low on IO or Mem address. And it must toggle at least once to put the CS8900 in 16 bit mode.
- IO and Memory Accesses: SBHE, AEN, etc. must be stable for 10ns (read) and 20ns (write) before access.
- IOCHRDY - Generally not connected in non-ISA bus.
- CHIPSEL (active low). Tie to ground if not using ELCS.
- Make sure interrupt line is active high. It is best to put a pull down (10K) on INT line since selected IRQ line is tristated during software initiated reset.
- ELCS should be pulled to ground or left floating if not used.
- EEDataIn should be pulled to ground if not used.
- 10Base-T circuit -- no caps on TX lines between
isolation transformer and 10 Base-T connector.
- 10Base-T circuit -- no center tap caps on isolation transformer and 10 Base-T connector.
Good to have pads, don’t populate except for EMI problems.
- Isolation transformer -- start with one that does not have a common mode choke. If there are EMI considerations, then use one with common mode choke. The pin outs are the same. For
3.3V operation, use a transformer with 1:2.5 turns ration on TX and 1:1 on RX like the Halo TG41-2006N.
- For EMI problems, 1) add choke, 2) add center tap caps on isolation transformer
- If using a shielded RJ45 connector, make sure the shield pins are connected to chassis ground.
- AEN connected to ground if not using DMA.
- AEN can be used as an active low chip select if
not using DMA.
- AUI Interface -- use a 1AMP fuse. MAU can use .5amps even better use a thermistor ("poly switch"). Also, use a diode so can’t back-drive from an externally powered MAU. Use a Halo TnT integrated module to simplify 10Base2 interface.
- TX series termination resistors are R: 24.3 Ohm 1% (8 or 8.2 Ohm 1% for 3.3V)
- RX shunt termination resistor is 100 Ohm
- Put a 68pF shunt across TX on primary side
(560pF for 3.3V)
- Don’t use split analog/digital power and ground planes.
- Void ground/power plane from transformer to RJ45
- Put .1uF cap on each supply pin very close to CS8900
The schematic checklist and the example connec­tion diagrams to the Hitachi SH3, Cirrus Logic CL­PS7211 and the Motorola MC68302 microproces­sors should make clear the necessary the hardware connections for a wide variety of situations.
4 AN83REV3
AN83

SOFTWARE CHECKLIST

- When servicing the interrupt always read the Interrupt Status Queue (ISQ) first. Process that individual event before reading the ISQ again.
- Having read an ISQ event indicating a valid recieve frame, never read the ISQ again before either 1) reading in the entire current receive frame or 2) issuing an explicit skip command. Either of these actions will correctly clear that frame from the CS8900As internal memory.
- Always continue reading and processing ISQ events until reading a 0x0000 from the ISQ.
- After a software or hardware reset, always wait until the SelfStatus register, bit 7 (INITD) is set before reading or writing any other registers.
- Allow only one transmit in progress at any given time. Since the chip dynamically allocates memory between transmit and recieve frames, it is possible to fill the internal buffers with transmit frames. This would prevent reception.
- Don’t reinvent the wheel. Port one of the sample drivers, if there isnt a driver for your operating system. You can find sample drivers at http://www.cirrus.com/drivers/ethernet/.
AN83REV3 5
AN83

INTRODUCTION TO CS8900A TECHNICAL REFERENCE MANUAL

This Technical Reference Manual provides the in­formation which will be helpful in designing a board using the CS8900A, programming the asso­ciated EEPROM, and installing and running the CS8900A device drivers. It is expected that the user of this technical reference manual will have a general knowledge of hardware design, Ethernet, the ISA bus, and networking software. Recom­mended sources of background information are:
ISA System Architecture Anderson, Mindshare Press, 1992, ISBN 1­881609-05-7
Ethernet, Building a Communication Infra­structure, by Hegering and Lapple, Addison­Wesley, 1993, ISBN 0-201-62405-2
Netware Training Guide: Networking Technol­ogies, by Debra Niedenmiller-Chaffis, New Riders Publishing, ISBN 1-56205-363-9
by Shanley and
As shown in the Figure 1, the CS8900A requires a minimum number of external components. The EEPROM stores configuration information such as interrupt number, DMA channel, I-O base address, memory base address, and IEEE Individual Ad­dress. The EEPROM can be eliminated on a PC motherboard if that information in stored in the sys­tem CMOS. Note also that the Boot PROM is only needed for diskless workstations that boot DOS at system power up, over the network. Also, the LEDs are optional.
The hardware design considerations for both moth­erboards and adapter cards are discussed in “HARDWARE DESIGN on page 7. The EE-
PROM programming considerations are described in JUMPERLESS DESIGN” on page 45.
Cirrus provides a complete set of device drivers, as discussed in DEVICE DRIVERS AND SET­UP/INSTALLATION SOFTWARE” on page 56. The drivers reside between the networking operat­ing system (NOS) and the CS8900A. On the CS8900A side, the drivers understand how to pro-
ISA Bus
57
pins
EEPROM:
Stores Configuration
Information & IEEE Address
EEPROM
Control
ISA Bus Logic
Media Access
Memory
Manager
Boot PROM:
Used to boot diskless
workstations.
Ethernet
processing.
RAM
Control (MAC).
protocol
LED
Control
Boundary
Scan
Test Logic
Clock
Encoder,
Decoder
&
PLL
Power
Manage

Figure 1. Hardware Application Summary

10BASE-T
RX Filters &
Receiver
10BASE-T
TX Filters &
Transmitter
AUI
Transmitter
AUI
Collision
AUI
Receiver
10BASE-T
Transformer
AUI
Transformer
(Attachment
Unit
Interface)
6 AN83REV3
AN83
Applications
Operating System Software
e.g., File Manager
Network Operating System
e.g., Novell or Microsoft
CS8900 - specific device drivers:
e.g., NDIS & ODI compatible drivers
CS8900 Registers & Memory EEPROM

Figure 2. Software Application Summary

gram and read the CS8900A control and status reg­isters, and how to transfer user data between the CS8900A and the PC main memory via the ISA bus. On the NOS side, the drivers provide the stan­dardized services and functions required by the NOS, and hide all details of the CS8900A hardware from the NOS. The EEPROM device programs the CS8900A whenever the a hardware reset occurs, and call also store state/configuration information for the driver.
Cirruss Software Driver (&U\VWDO /$1) Distribu­tion Policy is as follows. The CS8900A developer kit contains a single-user copy of object code which is available only for internal testing and evaluation purposes. This object code may not be distributed without first signing a LICENSE FOR DISTRIBU­TION OF EXECUTABLE SOFTWARE, which may be obtained by contacting your sales represen­tative. The LICENSE FOR DISTRIBUTION OF EXECUTABLE SOFTWARE gives you unlimit­ed, royalty-free rights to distribute Cirrus-provided object code.

HARDWARE DESIGN

This section give design guidance for both embed­ded and adapter card designs, including recommen­dations for dealing with the upper ISA address lines (LA[20:23]), choosing transformers, and laying out the board.
AN83REV3 7

CS8900A: CONNECTING TO NON-ISA BUS SYSTEMS

The CS8900A includes a direct interface to the ISA bus. At the same time, the CS8900A offers a com­pact, efficient, and cost-effective, full-duplex Ethernet solution for non-ISA architectures. The purpose of this section is to illustrate how to inter­face the CS8900A to non-Intel and non ISA sys­tems. Design examples include the MC68302, Cirrus Logic CL-PS7211 ARM and Hitachi SH3.

The CS8900A Architecture

The CS8900A is a highly integrated Ethernet con­troller chip. It includes the digital logic, RAM and analog circuitry required for an Ethernet interface. This high level of integration allows a product de­signer to design an Ethernet interface in 1.5 square inches of space on a printed circuit board. The CS8900A has a powerful memory manager that dy­namically allocates the on-chip memory between transmit and receive functions. The on-chip mem­ory manager performs functions in hardware that are many times done by software. This reduces loading on the CPU and on the bus connected to the CS8900A. In fact, for 10 Megabit Ethernet, the CS8900A is the highest throughput solution in the market.
The integration of the analog transmit waveform filtering makes it easier to design a board that will pass EMC testing. When the analog filters are ex­ternal, the PCB traces have fast edge digital wave­forms coming out of the ICs 10BASE-T transmitter. The presence of high frequency energy in the fast edges causes major problem during EMC tests, such as FCC Part 15 class (B) or CISPR class (B). The 10BASE-T signals driven out of the
th
CS8900A are internally filtered with a 5 Butterworth filter and the signals lack fast edges. Lack of high frequency signals makes it straight forward to design a card that meets FCC class (B) or even CISPR class (B) requirements.
order
AN83

ISA Bus

An ISA bus is a simple, asynchronous bus that can easily be made to interface to most synchronous or asynchronous buses. An ISA bus has separate ad­dress and data lines as well as separate control lines for read and write. ISA supports IO address space of 64K bytes and Memory address space 32 Mega bytes.

CS8900A in I/O Mode

When the CS8900A is used in an IO mode, it re­sponds in the IO address space of the ISA. The CS8900A responds to an IO access when
- Either of the bus IO command lines (IOR or IOW
) is active,
- The address on bus signals SA[0:15] matches the address in the CS8900A IO base address register, and
- Bus signals AEN, REFRESH and RESET are inactive.
, TEST, SLEEP
All other control signals are ignored for the IO op­eration.
In an IO mode, the CS8900A uses 16 bytes of IO address space. The address map for this mode is described in Table 4.5 in the CS8900A datasheet.

CS8900A in Memory Mode

When the CS8900A is used in memory mode, the CS8900A responds in the memory address space of the ISA bus. The CS8900A responds to a memory mode access when
- The CHIPSEL pin is active,
- Either of the bus memory command lines
(MEMR
- Both of the IO command lines (IOR are inactive,
- the address on bus signals SA[0:19] matches the address in the CS8900As Memory Base address register,
- MemoryE (Bit A) in the CS8900A’s BusCTL (Register 17) is active and,
- Bus signals AEN, REFRESH and RESET are inactive.
or MEMW) is active,
and IOW)
, TEST, SLEEP
In memory mode, all the internal registers of the CS8900A can be accessed directly via memory reads/writes. Please refer to the CS8900A datasheet for the memory address map.

DMA Interface of the CS8900A

The CS8900A can interface to an external 16-bit DMA channel for receive operations. A DMA­mode receive operation can be selected by setting either RxDMAOnly (bit 9) or AutoRxDMA (bit
10) in the CS8900As RxCFG (Register 3) register. The CS8900A will request services of an external DMA after a receive frame is accepted by the CS8900A, completely received and stored in on chip RAM of the CS8900A. The CS8900A gener­ates a request for DMA access (DRQx) signal when it has at least one receive frame that can be trans­ferred to the system memory. The external DMA channel should assert DMACK signal when it is ready to transfer data. The DMA controller gener­ates address for the system memory and asserts the AEN signal. When DMACK and AEN signals are asserted, the CS8900A provides 16 bits of frame data for every pulse of the IOR signal. Notice that the CS8900A ignores address on the SA address lines for this operation. In this way the CS8900A supports direct mode of operation of DMA. In direct mode, the external DMA controller gener­ates addresses for the system RAM, and generates the appropriate control signals for the RAM and IO device. The data moves directly from the IO device to the RAM. In the case of the CS8900A, the DMA controller generates a write signal for RAM and a read signal for the CS8900A. The data flows di­rectly from the CS8900A to the system RAM. The direct mode of DMA operation is 100% more effi­cient than typical read-followed-by-write DMA operation.
The length of time that the CS8900A holds the DRQ signal active depends upon the DMABurst (bit B) bit of the BusCTL (Register 17) register. If the DMABurst is clear, the DRQ remains active as
8 AN83REV3
AN83
long as the CS8900A contains frames completely received. If ‘n’ words are to be transferred from the CS8900A to the system RAM, the DRQ signal re­mains active until the (n-1)th word is transferred. If the DMABurst is set, then the CS8900A deasserts DRQ signal for 1.3 µs after every 28 µs. This op­tion is provided so that in a system where multiple DMA channels are operational, the DMA used for the CS8900A will not take over the system bus for long periods of time.

Selection of I/O, Memory and DMA Modes

The CS8900A always responds to all IO-mode re­quests. After any reset, the CS8900A responds to default IO base address of 0300h. However, this default IO address can be changed by writing a dif­ferent base address into a EEPROM connected to the CS8900A. After any reset, the CS8900A reads the contents of the EEPROM. If the EEPROM is found valid, then the information in the EEPROM is used by the CS8900A to program its internal reg­isters.
Memory mode in the CS8900A can be enabled by programming a proper base-address value in the Memory Base Address register and setting the MemoryE bit. Enabling of the memory mode can be done by software or through an EEPROM con­nected to the CS8900A.
In an IO mode, the CS8900A takes the minimum space (16 bytes) in the system address space. For systems where the address space limited, the IO mode is a proper choice.
In the memory mode the CS8900A occupies 4K of the address space. The software can access any of the internal registers of the CS8900A directly. This reduces accesses to the CS8900A by half when ac­cessing registers.
In a system design, even if CS8900A is used in the memory mode, the designer should make provi­sions for accessing the CS8900A in the IO mode. This dual-mode access has two advantages.
1) If an EEPROM is not used in the Ethernet de­sign, the application can address the CS8900A in IO mode (0300h) in order to enable memory mode.
2) When the EEPROM is used, the EEPROM is usually blank when a board is manufactured. The CS8900A must be accessed in IO mode in order to program the EEPROM.
Use of DMA for receive is efficient in a multi-task­ing environment where the CPU could be busy ser­vicing several higher priority tasks before it can service receive frames off the Ethernet wire.

Design Example: CS8900A Interface to MC68302

In this example the CS8900A is connected to Mo­torola micro-controller MC68302. Please refer to Figure 3 to check the connection of control signals between CS8900A and Motorolas micro-control­ler MC68302.

Address Generation

The MC68302 has address decode generation logic internal to the micro-controller. It generates chip select signals such as CS1. In this example the CS1 is used to access the CS8900A in IO as well as in Memory mode. The behavior of the CS1 signal from the MC68302 is governed by values pro­grammed in the CS1 base address register and the CS1 option register. For example, if the CS1 base address register is programmed as 3A01h, the CS1 will have a base address of D00xxxh. The CS1 op­eration register controls the address range, number of wait states (to be inserted automatically), etc. It is recommended that the CS8900A be assigned 8K of address space (0D00000h-0D01FFFh). Memo­ry mode of the CS8900A is enabled with the mem­ory base address register with a value 001000h. The address line A12 separates IO address space and memory address space. When A12 is low, the CS8900A is accessed in an IO mode and when A12 is high, the CS8900A is accessed in memory mode.
AN83REV3 9
AN83
When the MC68302 generates address 0D00300h, the address seen by the CS8900A will be 00300h with one of the IO commands (IOR or IOW) active. Similarly when the MC68302 generates address 0D01400h, the address seen by the CS8900A will be 01400h with one of its memory commands (MEMR or MEMW) active. For a MC68302, you can also specify the number of wait states that should be inserted automatically when address space assigned to CS1 is accessed. The number of wait states used depends upon the clock input to the MC68302. Please do a complete timing analysis before defining wait states.

Read and Write Signals

The combination of OR gates and an inverter shown in Figure 3, generates IO commands (IOR, IOW) as well as memory commands (MEMR, MEMW) for the CS8900A. Since the CS1 gates these signals, the IO or memory commands are not
generated unless the address on the address bus is stable. Further, for an access in memory mode, an IO command is not active.

SBHE Signal

The CS8900A is a 16 bit device and it should be used as a 16 bit device. However, after a hardware or software reset, the CS8900A behaves as an 8 bit device. Any transition on pin SBHE places the CS8900A into 16-bit mode. Further, for a 16-bit access, the SBHE pin of the CS8900A must be low. In the design example, the CPU address line A0 is connected to SBHE. Before any access to the CS8900A, the design must guarantee one transition on SBHE pin.

Other Control Signals

All other control signals can be tied HIGH or LOW. The signal REFRESH, TEST, SLEEP, AEN should be tied inactive.
MC68302
UDS*/A0
A[1:11]
CS1*
R/W*
Interrupt Controller
INT*
A12
CS1*
R/W*
74F04
74F04

Figure 3. Connection of CS8900A to MC68302

74F32
74F32
74F32
74F32
CS8900
SBHE*
SA0
SA [1:11]
SA12 SA[13:19]
MEMW*
IOW*
MEMR*
IOR*
INTRQ0
10 AN83REV3
AN83

Status Signals from CS8900A

There are several status signals that are output from the CS8900A, such as IOCHRDY, IOCS16, MCS16, etc. In the most embedded designs, they are not needed. Those pins from the CS8900A should be left open.

Databus (SD[0:15]) Connection

All the internal registers of the CS8900A are 16 bit wide. For all the registers, bit F of the register is ac­cess via SD15 and bit 0 of register is accessed via SD0.
To be compatible with byte ordering with ISA bus, the CS8900A provides the bytes received from the Ethernet wire in the following fashion. Assume that the data received from the Ethernet wire is 01, 02, 03, 04, 05, ... where the 01 is the first byte, 02 is the second byte and so on. When the CS8900A transfers that data to the host CPU, the data words are read from the CS8900A as 0201, 0403, etc. For certain microprocessor systems, the designer may prefer to read the data as 0102, 0304, etc. In such a case, the databus connections to the CS8900A can be altered by connecting the CPU databus D[0:7] to the SD[8:15] pins of the CS8900A and the CPU databus D[8:15] to the SD[0:7] pins of the CS8900A. In such a case, make sure that all the register and bit definitions in the CS8900A are also byte swapped. Information that is normally appears at bits [0:7] will now appear on bits [8:15], and in­formation that usually appears on bits [8:15] will now appear on bits [0:7].

Checklist for Signal Connections to the CS8900A

MHz clock available in the system, it can be con­nected to the XTL1 (pin 97) pin of the CS8900A. It is important that this clock be TTL or CMOS with 40/60 duty cycle and ±50 ppm accuracy.
SBHE CS8900A be used in 16-bit mode. After a hard­ware or software reset, the CS8900A comes up as an 8-bit device. A transition on SBHE signal (pin
36) makes the CS8900A function as a 16-bit de-
vice. After this transition, the SBHE can be kept low. For a 16-bit access of the CS8900A, the SBHE and address line SA0 (pin 37) must be low. Un-aligned word accesses to the CS8900A are not supported. In a system, the SBHE line can be con­nected to address line SA0. In such a case, after a hardware or software reset, do a dummy read from an odd address to provide transition on the SBHE line. For memory mode, there is one more alterna­tive for the SBHE connection. For a memory mode operation, if a CHIPSEL pin is controlled by an ex­ternal chip select, the CHIPSEL can be connected to the SBHE. In this case, after a hardware and software reset, do a dummy access to the CS8900A and ignore data.
signal: It is recommended that the

EEPROM Optional

The CS8900A has an interface for a serial EE­PROM. Most of the networking applications use this EEPROM to store IEEE MAC (Media Access Control) address. Since the CS8900A supports 1 or 2 Kbits of EEPROM, the EEPROM is also used to store information such as hardware configuration, software driver configuration, etc. Any location in the EEPROM can be read or written through the CS8900A.
Please refer to the datasheet for the CS8900A for the pin assignment and pin descriptions of various signals discussed in this section.
Clock: There are two options for the clock connec­tion to the CS8900A. You may connect a 20.000 MHz crystal between XTL1 (pin 97) and XTL2 (pin 98) pins of the CS8900A. Or, if there a 20
AN83REV3 11
You will require EEPROM if the IO address for the CS8900A has to be other then 0300h, or the only mode supported by the CS8900A is memory mode. For all other cases an EEPROM is optional. How­ever, most of the software drivers supplied by Cir­rus assume that there is an EEPROM connected to the CS8900A or driver configuration data is stored
AN83
in BIOS. If the designer intends to use Cirrus sup­plied drivers and does not use an EEPROM or store driver configuration data in BIOS, then Cirrus sup­plied drivers must be modified by the designer.
We recommend that the system store the individual IEEE MAC address in a non-volatile memory somewhere in the system, and that the end-user of the system not be allowed to create an arbitrary ad­dress. In a LAN, the existence of network nodes that use the same MAC address will cause severe network problems including destruction of data and failure of various network nodes.

Design Example: CS8900A Interface to Cirrus Logic CL-PS7211

This design is similar to the MC68302 except that only the I/O mode data access is supported. This completely elimiates glue logic. See Figure 4. The highlights of the design are:
- CS8900A I/O space mapped into 7211 memory
- 3 address lines
- A8 and A9 tied high
- AEN used as active low chip select
- SBHE tied to 7211 chip select
- Only 16 bit accesses

Design Example: CS8900A Interface to Hitachi SH3

This design is almost identical to the CL-PS7211 connection diagram. It uses I/O mode only, elimi­nating glue logic. See Figure 5. The highlights of the design are:
- CS8900A I/O space mapped into SH3 memory
- 3 address lines - A0 is tied to ground.
- A8 and A9 tied high
- AEN used as active low chip select
- SBHE tied to SH3 chip select
- Inverter on the IRQ line.
- Only 16 bit accesses

Summary

The CS8900A can be interfaced to most non-ISA system with very minimum or no external logic. This allows a low cost, small size and very efficient Ethernet solution for non-ISA systems. Cirrus Logic will provide support for non-ISA designs, including logic schematic review and layout review for design engineers. Those reviews help prevent logic errors, and help to minimize EMI emissions.
12 AN83REV3
AN83
A[3:1]
D[15:0]
nMWE
nMO
nCS
R96
GND
4K99 1%
A[3:1]
A1 A2 A3
D
VD
GND
D[15:0]
D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11
D
VD
R97 100K
E
2
D12 D13 D14 D15
nMWE nMOE
nCS2
CS8900_RST
GND
GND
X3
20M
Hz
93
37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 58 59 60
65 66 67 68 71 72 73 74 27 26 25 24 21 20 19 18
28 29 62 61 49 36 63 75 77 76
97 98
7
2
RES
SA0 SA1 SA2 SA3 SA4 SA5 SA6 SA7 SA8 SA9 SA10 SA11 SA12 SA13 SA14 SA15 SA16 SA17 SA18 SA19
SD0 SD1 SD2 SD3 SD4 SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15
CHIPSEL MEMW MEMR IOW IOR REFRESH SBHE AEN RESET SLEEP TESTSEL ELCS
XTLI XTLO
U21 CS8900A
VDD
92256
VCC
VCC
698
VCC
GND
1898694969085
VCCGND
AVSS0
AVSS1
AVSS2
GND
GND
GND
1023555770
AVSS3
AVSS4
GND
GND
VD
AVDD1
AVDD2
D
95
AVDD3
EECS EESK
EEDATAOUT
EEDATAIN
LED0/HC0
BSTATUS/HC1
LANLED
RXD-
RXD+
TXD-
TXD+
INTRQ0 INTRQ1 INTRQ2 INTRQ3
MEMCS16
IOCS16
IOCHRDY
DMARQ0 DMARQ1 DMARQ2
DMACK0 DMACK2 DMACK3
CSOUT
DO+
DO-
3 4 5 6
D6 LED
99 78 100
84 83
82
CI-
81
CI+
80
DI-
79
DI+
92 91
88 87
32 31 30 35
34 33 64
15 13 11
16 14 12
17
R91
4K7
2 1
2 1
D7 LED
D
VD
ACTIVITY
LINK
R89 390R
R90 390R
R93 100R
R94 8R
R95 8R
EINT
D
VD
VD
D
RxD-
RxD+
TxD-
C62 560pF
TxD+
3
U30A
C94 100nF
1 2
74L
VD
D
C93 100nF
VX04
nURESE
T
VD
D
C89
C91 100nF
C92 100nF
100nF
GND GND GND GND GND GND GND
VDD VDDVDD VDD VDD
C90 100nF
CS8900_RSTnURESET
C88 100nF

Figure 4. CS8900A Interface to Cirrus Logic CL-PS7211

AN83REV3 13
3.3V
AN83
SH3 A1
SH3 A2
SH3 A3
SH3 [D15:D0]
SH3 WE1#
SH3 RO#
Chip Select#
3.3V
37
SA0
38
SA1
39
SA2
40
SA3
41
SA4
42
SA5
43
SA6
44
SA7
45
SA8
46
SA9
47
SA10
48
SA11
50
SA12
51
SA13
52
SA14
53
SA15
54
SA16
58
SA17
59
SA18
60
SA19
65
SD0
66
SD1
67
SD2
68
SD3
71
SD4
72
SD5
73
SD6
74
SD7
27
SD8
26
SD9
25
SD10
24
SD11
21
SD12
20
SD13
19
SD14
18
SD15
CS8900A-CQ3
3.3V
0.1uF
9
8
10
DVSS1
DVDD1
DVSS1A
MEMW
MEMR
IOW
28296261496375343364323130351513111614
0.1uF
0.1uF
22
DVDD2
IOR
REFRESH
AEN
23
DVSS2
RESET
56
55
57
DVSS3
DVDD3
DVSS3A
MEMCS16
IOCS16
IOCHRDY
INTRQ0
INTRQ1
INTRQ2
0.1uF
89
INTRQ3
90
AVSS1
DMARQ0
DMARQ1
69
70
DVSS4
DVDD4
RXD-
RXD+
TXD-
TXD+
BSTATUS/HC1
LINKLED/HC0
LANLED
CSOUT
XTAL1
XTAL2
ELCS
CHIPSEL
SBHE
2736
0.1uF
1
DO-
DO+
DI+
CI+
93
AVSS0
DI-
CI-
RES
4.99K
84 83
80 79
82 81
92 91 88 87
78 99 100 17
97
98
510
510
8
8
100
20MHz
LED
LED
RDX-
RXD+
TXD-
560pF
TXD+
3.3V
0.1uF
0.1uF
85
AVDD1
AVDD2
DMARQ2
DMACK0
DMACK1
12
86
DMACK2
77
AVSS2
HWSLEEP
TESTSEL
76
94
AVSS3
EESK
4
95
96
AVSS4
AVDD3
EECS
EEDATAIN
EEDATAOUT
365
RESET
SH3 IRQ0

Figure 5. CS8900A Interface to Hitachi SH3

14 AN83REV3
AN83

ETHERNET HARDWARE DESIGN FOR EMBEDDED SYSTEMS AND MOTHERBOARDS

This section describes the hardware design of a four-layer, 10BASE-T solution intended for use on PC motherboards, or in other embedded applica­tions. The goal of this design is minimal board space and minimal material cost. Therefore, a num­ber of features (BootPROM, AUI, 10BASE-2) are not supported in this particular PCB design. An ex­ample of this circuit is included in this technical reference manual, and is implemented in an ISA form factor. This same circuit can be implemented directly on the processor PCB.

General Description

The small footprint, high performance and low cost of the CS8900A Ethernet solution, makes the CS8900A an ideal choice for embedded systems like personal computer (PC) mother boards. The very high level of integration in the CS8900A re­sults in a very low component count Ethernet de­sign. This makes it possible to have a complete solution fit in an area of 1.5 square inches.

Board Design Considerations

the CS8900A to interface with variety of micro­processors directly or with the help of simple pro­grammable logic like a PAL or a GAL.
This reference design uses the ISA adapter card form factor. All the ISA bus connections from the CS8900A are directly routed to the ISA connector. The pin-out of the CS8900A is such that if the CS8900A is placed as shown in Figures 6 and 7, there will be almost no cross-over of the ISA sig­nals.

External Decode Logic

The CS8900A can be accessed in I/O mode or memory mode. For this reference design, in mem­ory mode the CS8900A is in the conventional or upper memory of the PC. That is, it resides in the lower 1 Mega bytes of address space.
To use the CS8900A in extended memory address space requires an external address decoder. This decoder decodes upper 4 bits (LA[20:23]) of 24 bit ISA address lines. In many embedded micropro­cessors such decodes are available though the mi­croprocessors itself.
Please refer to Extended Memory Mode” on page 31 for further information.

Crystal Oscillator

The CS8900A, in this reference design, uses a
20.000 MHz crystal oscillator. The CS8900A has internal loading capacitance of 18pF on the XTAL1 and XTAL2 pins. No external loading ca­pacitors are needed. Please note that the crystal must be placed very close to XTL1 and XTL2 pins of the CS8900A.
This crystal oscillator can be eliminated if accurate clock signal (20.00 MHz ±0.01% and 45-55 duty cycle) available in the system.

ISA Bus Interface

The CS8900A has a direct ISA bus interface. Note that the ISA bus interface is simple enough to allow
AN83REV3 15

EEPROM

A 64 word (64 X16 bit) EEPROM (location U3) is used in the reference design to interface with the CS8900A. This EEPROM holds the IEEE as­signed Ethernet MAC (physical) address for the­board (see Obtaining IEEE Addresses” on page 55). The EEPROM also holds other configu­ration information for the CS8900A. The last few bytes of the EEPROM are used to store information about the hardware configuration and software re­quirements.
In an embedded system, such as a PC, the system CMOS RAM or any other non-volatile memory can be used to store the IEEE address and Ethernet configuration information. In such a case an EE-
AN83
CS8900 EVAL REV. B
CRYSTAL SEMICONDUCTOR CORPORATION
CS8900 EVAL BOARD REV. B
P/N CDB8900B

Figure 6. Placement of Components, Top Side

16 AN83REV3
CD B8900B© CO P YR IGH T 1994
AN83
CRYSTAL SEMICONDUCTOR CORPORATION
CS8900 EVAL BOARD REV. C
P/N CDB8900B

Figure 7. Placement of Components, Solder Side

AN83REV3 17
AN83
PROM is not necessary for the CS8900A, and the CS8900A will respond to IO addresses 0300h through 030Fh after a reset.
Please refer to the CS8900A data sheet for informa­tion about programming the EEPROM. Please re­fer to JUMPERLESS DESIGN on page 45 of this document for information about EEPROM in­ternal word assignments.

LEDs

Many embedded systems do not require LEDs for the Ethernet traffic. Therefore this reference de­sign does not implement any LEDs. However, the CS8900A has direct drives for the three LEDs. Please refer to the data sheet for the CS8900A for a description of the LED functions available on the CS8900A.

10BASE-T Interface

The 10BASE-T interface for the CS8900A is straight forward. Please refer to Figure 8 (3.3V) and Figure 10 (5V) for connections and compo­nents of this circuit. Transmit and receive signal lines from the CS8900A are connected to an isola-
tion transformer at location T1. This isolation transformer has a 1:1 ratio between the primary and the secondary windings on the receive side. It has a 1:2 (1:1.414) ratio between the primary and the secondary windings for the transmit lines for 5V operation or a ratio of 1:2.5 for 3.3V operation. Re­sistor R1 provides termination for the receive lines. Resistors R2 and R3 are in series with the differen­tial pair of transmit lines for impedance matching.

10BASE-2 and AUI Interfaces

As many embedded systems require only a 10BASE-T interface, this reference design imple­ments only the 10BASE-T interface. However, should a user require a 10BASE-2 or AUI inter­face, the CS8900A provides a direct interface to the AUI. Please refer to Low Cost Ethernet Combo Card Reference Design: CRD8900” on page 21 of this document for details about the AUI interface.

Logic Schematics

Figures 8, 9 and 10 detail the logic schematics for the various circuits used in the reference design.
10BT_RD-
10BT_RD+
10BT_TD-
10BT_TD+
8 R4
8 R5
100 R2
560pF C30
.1uF .1uF
Do Not Populate
1
1
2
2
(1-3) (16-14) 1:1
3
3
4
4
5
5
6
6
7
(6-8) (11-9) 1:2.5
7
8
8
10BaseT Transformer
C23
16 15
14 13
12 11
10
9
16 15
14 13
12 11
10
9
.1uF 2KV C29
Do Not Populate
.1uF 2KV C28
10
J21
8 7 6 5
4 3
2 1
9

Figure 8. 10BASE-T Schematic 3.3V

18 AN83REV3
Loading...
+ 40 hidden pages