AN2333 Freescale Semiconductor / Motorola, AN2333 Datasheet

no-image

AN2333

Manufacturer Part Number
AN2333
Description
Maximizing the Performance of Two Fast Ethernet Links on MSC8101 FCCs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
AN2333/D
Rev. 0, 10/2002
Maximizing the
Performance of Two
Fast Ethernet Links on
MSC8101 FCCs
by Philippe Chartier
CONTENTS
1 IEEE 802.3 Ethernet
1.1 Ethernet Transceiver... 2
1.2 Media Independent
1.3 MSC810ADS FCCs
1.4 Control and Data path 4
2 Two FCCs Project ......... 5
2.1 Hardware Set-up ......... 5
2.2 Software Modules........ 7
2.3 Software Configuration
3 Performance ................ 10
3.1 Accesses to MSC8101
3.2 Buffers ....................... 11
3.3 Buffer Descriptors..... 12
3.4 Interrupt Service
3.5 FCC Interrupt
3.6 Timer and Statistics... 14
4 Results and
5 CPM Performance
6 Related Reading .......... 18
Basics............................. 1
Conclusions ................. 14
Tool.............................. 15
Interface (MII)............. 3
Running Ethernet ........ 4
Options ........................ 9
Internal SRAM........... 10
Routine ...................... 12
Handler ..................... 13
This application note describes how to implement a dual full-duplex Fast Ethernet driver on the
MSC8101ADS board. It examines the on-board Ethernet transceiver configuration and the fast
communication controller (FCC) Ethernet configuration on the MSC8101. It considers different ways to
optimize these configurations and illustrates them with an example MSC8101 data processing set-up that
yields high performance in terms of Ethernet link bandwidth. Example code provided with this
application note is reusable and can be rapidly integrated into projects or a real-time operating system
(RTOS) board software package (BSP).
1
Ethernet is the most widely used local area network (LAN) technology and is specified in the IEEE 802.3
standard. An Ethernet LAN can use different media: coaxial cable, unshielded twisted pair copper wires,
radio frequencies, fiber, and so on. These Ethernet LAN can work at different frequencies, such as 10
Mbps, 100 Mbps, 1 Gpbs, and even 10 Gbps/s. Operating on the LAN are computers, terminal
equipment, and other devices that interconnect the LAN between them on a hub or switch. Devices
connect to the medium and compete for access using a carrier sense multiple access with collision
detection (CSMA/CD) protocol. The Ethernet frame is structured as follows:
• 7-byte preamble of alternating ones and zeros.
• Start frame delimiter (SFD) that marks the beginning of the frame.
• 48-bit destination address and 48-bit source address.
• Ethernet type IEEE 802.3-length field that signifies the protocol.
• Length field that specifies the length of the data portion of the frame. For Ethernet and IEEE 802.3
• Data (46–1500 bytes).
• Four-byte frame-check sequence (FCS), which is the standard 32-bit CCITT-cyclic reduncancy check
frames to exist on the same LAN, the length field must be unique on the Ethernet. This requirement
limits the length of the data portion of the frame to 1,500 bytes and therefore the total frame length to
1,518 bytes.
(CRC) polynomial used in many protocols.
Preamble
7 Bytes
IEEE 802.3 Ethernet Basics
Freescale Semiconductor, Inc.
For More Information On This Product,
Start Frame
Delimiter
1 Byte
Go to: www.freescale.com
Destination
Figure 1. Ethernet Frame Format
Address
6 Bytes
Address
6 Bytes
Source
Frame Length is 64–1,581 Bytes
2 Bytes
Length
Type
46–1500 Bytes
Data
Frame Check
Sequence
4 Bytes

Related parts for AN2333

AN2333 Summary of contents

Page 1

... Freescale Semiconductor, Inc. Application Note AN2333/D Rev. 0, 10/2002 Maximizing the Performance of Two Fast Ethernet Links on MSC8101 FCCs by Philippe Chartier This application note describes how to implement a dual full-duplex Fast Ethernet driver on the MSC8101ADS board. It examines the on-board Ethernet transceiver configuration and the fast communication controller (FCC) Ethernet configuration on the MSC8101 ...

Page 2

IEEE 802.3 Ethernet Basics 1.1 Ethernet Transceiver In most systems, the Ethernet medium is accessed from the controller through an Ethernet transceiver. This section discusses how the Ethernet transceiver on the MSC8101ADS is configured and also describes the bus interface ...

Page 3

Freescale Semiconductor, Inc. 1.2 Media Independent Interface (MII) There are different interconnect bus formats for interfacing Ethernet controllers and transceivers, such as MII, reduced media independent interface (RMII), and serial media independent interface (SMII). The MSC8101 FCCs use the MII ...

Page 4

IEEE 802.3 Ethernet Basics Port Line Port B15 (PA17) Port B16 (PA16) Port B17 (PA15) Port B18 (PA14) Port B02 (PA30) Port B01 (PA31) Port C12 (D20) Port C13 (D19) 1.3 MSC810ADS FCCs Running Ethernet The MSC8101 communications processor module ...

Page 5

Freescale Semiconductor, Inc. Ethernet Link 2 2FCCs Project This section describes the hardware set-up and the software modules of the 2FCCs project. 2.1 Hardware Set-up There are two example hardware configurations for the 2FCCs project. The first uses two MSC8101ADS ...

Page 6

Project MSC8101ADS FCC2 NOTE: The Ethernet link is Figure 3. Set-up Using Two MSC8101ADS Boards 2.1.2 MSC8101ADS and ECOM Set-up The MSC8101ADS-ECOM set-up is preferable to the two-MSC8101ADS set-up because it allows the MSC8101 device to handle two fast ...

Page 7

Freescale Semiconductor, Inc. 2.2 Software Modules Signal MII TX_ER MII RX_DV MII TX_EN MII RX_ER MII COL MII CRS NBL TXD3 NBL TXD2 NBL TXD1 NBL TXD0 NBL RXD0 NBL RXD1 NBL RXD2 NBL RXD3 CLK2 CLK1 PC13 PC12 HRESET ...

Page 8

Project The 2FCCs project was developed using Metrowerks® CodeWarrior® 1.5 for Windows. However compiler independent and therefore runs on any suitable IDE. Moreover, the project is host-independent and can run Solaris, Linux, ...

Page 9

Freescale Semiconductor, Inc. 2.2.4 Interrupt controller The interrupt controller used here is basic, but it performs all the required tasks: context saving, interrupt source determination, interrupt handler address match plus execution, and context restoring. Before the MSC8101 device enters normal ...

Page 10

Performance • Timer.h. Reflects the value of the on-board crystal: #define DIV16 #define BRG_VALUE 306 • Payload.h. Sets the frame size: #define FRAME_SIZE_1 64 #define FRAME_SIZE_2 64 • FCCs_Int_Handler.h. Uses the hand-optimized ASM (reduced register set version: #define ...

Page 11

Freescale Semiconductor, Inc. because read or write requests must cross the Q2PPC bridge and the system bus/local bus bridge. This requirement directly affects MSC8101 internal bus loading and global system speed, as well as all memory space to be accessed ...

Page 12

Performance 3.3 Buffer Descriptors set of structures containing information on the buffer size, status, properties, and pointers. BDs provide the means to manage buffers. The CPM/FCC reads and writes to BDs via SDMA transfers that are ...

Page 13

Freescale Semiconductor, Inc. The ISR decision logic is implemented through either the SIU Interrupt Vector Register (SIVEC) or through the SIU Interrupt Pending Register (SIPNR_H and SIPNR_L), as follows: • SIVEC. This register contains a 6-bit code representing the unmasked ...

Page 14

Results and Conclusions 3.6 Timer and Statistics In its default configuration, the 2FCC project works with a reduced context switching ISR in conjunction with an ASM FCC interrupt handler. However, the timer interrupt handler is not written in ASM and ...

Page 15

Freescale Semiconductor, Inc. interrupt, itself due to the basic buffer management. As expected, the interrupt frequency increases when frame size decreases. This demonstrates the need for care in both the interrupt controller and FCC interrupt handler design. The results obtained ...

Page 16

CPM Performance Tool 3. Set the speed, buffer size and other parameters for both FCC1 and FCC2. 16 Freescale Semiconductor, Inc. Figure 7. CPM Performance Tool, Screen 2 Figure 8. CPM Performance Tool, Screen 3 For More Information On This ...

Page 17

Freescale Semiconductor, Inc. 4. Directly watch the results or save them into a text file. Figure 9. CPM Performance Tool, Screen 4 The assumptions underlying the 2FCCs project settings are as follows: • CPM bus access schemes: — System bus ...

Page 18

Related Reading Speed Configuration Frame Size (Bytes) 1000 1500 6 Related Reading [1] MSC8101 Reference Manual, MSC8101RM/D, available at the website shown on the back cover of this document. [2] MSC8101ADS User’s Manual, available at the website shown on the ...

Page 19

Freescale Semiconductor, Inc. NOTES: For More Information On This Product, Go to: www.freescale.com Related Reading 19 ...

Page 20

... StarCore are trademarks of Motorola, Inc. Metrowerks and CodeWarrior are registered trademarks of Metrowerks Corp. in the U.S. and/or other countries. All other product or service names are the property of their respective owners. Motorola, Inc Equal Opportunity/Affirmative Action Employer. © Motorola, Inc. 2002 AN2333/D For More Information On This Product, Go to: www.freescale.com ...

Related keywords