Application Note. 1. Introduction. 2. Associated Documentation. 3. Gigabit Ethernet Implementation on SAMA5D3 Series. AT91SAM ARM-based Embedded MPU



Similar documents
Application Note. Atmel ATSHA204 Authentication Modes. Prerequisites. Overview. Introduction

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

APPLICATION NOTE. Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver. Atmel SAMD20. Description. Features

Application Note. Atmel CryptoAuthentication Product Uses. Atmel ATSHA204. Abstract. Overview

How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or

APPLICATION NOTE. Atmel LF-RFID Kits Overview. Atmel LF-RFID Kit. LF-RFID Kit Introduction

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

APPLICATION NOTE. Atmel AT02985: User s Guide for USB-CAN Demo on SAM4E-EK. Atmel AVR 32-bit Microcontroller. Features. Description.

Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2. 8-bit Atmel Microcontrollers. Application Note. Features.

How To Design An Ism Band Antenna For 915Mhz/2.4Ghz Ism Bands On A Pbbb (Bcm) Board

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

AT91SAM ARM-based Flash MCU. Application Note

Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures. Atmel Microcontrollers. Application Note. Features.

APPLICATION NOTE. Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor. Atmel AVR 8-bit Microcontrollers. Features.

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note.

AVR1510: Xplain training - XMEGA USART. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction

Atmel AVR4903: ASF - USB Device HID Mouse Application. Atmel Microcontrollers. Application Note. Features. 1 Introduction

AVR32788: AVR 32 How to use the SSC in I2S mode. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

APPLICATION NOTE. Atmel AT01095: Joystick Game Controller Reference Design. 8-/16-bit Atmel Microcontrollers. Features.

32-bit AVR UC3 Microcontrollers. 32-bit AtmelAVR Application Note. AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2

Using CryptoMemory in Full I 2 C Compliant Mode. Using CryptoMemory in Full I 2 C Compliant Mode AT88SC0104CA AT88SC0204CA AT88SC0404CA AT88SC0808CA

AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

USER GUIDE EDBG. Description

AVR1922: Xplain Board Controller Firmware. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

AVR115: Data Logging with Atmel File System on ATmega32U4. Microcontrollers. Application Note. 1 Introduction. Atmel

Atmel AVR1017: XMEGA - USB Hardware Design Recommendations. 8-bit Atmel Microcontrollers. Application Note. Features.

8051 Flash Microcontroller. Application Note. A Digital Thermometer Using the Atmel AT89LP2052 Microcontroller

Software Prerequisites Linux Ubuntu LTS. Estimated completion time: 15min. The goal of this hands-on is to:

Introducing a platform to facilitate reliable and highly productive embedded developments

AVR287: USB Host HID and Mass Storage Demonstration. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AVR2033: SAM-ICE Adapter Hardware User Manual. 8-bit Atmel Microcontrollers. Features. Introduction

AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction

APPLICATION NOTE. Atmel AVR600: STK600 Expansion, Routing and Socket Boards. Atmel Microcontrollers. Introduction

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features

AVR125: ADC of tinyavr in Single Ended Mode. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

AVR1321: Using the Atmel AVR XMEGA 32-bit Real Time Counter and Battery Backup System. 8-bit Microcontrollers. Application Note.

10/100/1000 Ethernet MAC with Protocol Acceleration MAC-NET Core

APPLICATION NOTE. Secure Personalization with Transport Key Authentication. ATSHA204A, ATECC108A, and ATECC508A. Introduction.

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter

8-bit. Application Note. Microcontrollers. AVR282: USB Firmware Upgrade for AT90USB

AVR1301: Using the XMEGA DAC. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1900: Getting started with ATxmega128A1 on STK bit Microcontrollers. Application Note. 1 Introduction

10/100/1000Mbps Ethernet MAC with Protocol Acceleration MAC-NET Core with Avalon Interface

AVR1318: Using the XMEGA built-in AES accelerator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Designing Feature-Rich User Interfaces for Home and Industrial Controllers

APPLICATION NOTE. Atmel AT02971: Use of Ethernet on SAM4E-EK. Atmel 32-bit Microcontroller. Features. Introduction

General Porting Considerations. Memory EEPROM XRAM

AVR033: Getting Started with the CodeVisionAVR C Compiler. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. AT03155: Real-Time-Clock Calibration and Compensation. SAM3 / SAM4 Series. Scope

Atmel AVR4027: Tips and Tricks to Optimize Your C Code for 8-bit AVR Microcontrollers. 8-bit Atmel Microcontrollers. Application Note.

APPLICATION NOTE. Authentication Counting. Atmel CryptoAuthentication. Features. Introduction

APPLICATION NOTE. Atmel AT02845: Coexistence between ZigBee and Other 2.4GHz Products. Atmel MCU Wireless. Description. Features

AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors

Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration

10/100 Mbps Ethernet MAC

How To Write A Gmii Electrical Specifier

Reduced Gigabit Media Independent Interface (RGMII) 12/10/2000 Version 1.3. Reduced Pin-count Interface For Gigabit Ethernet Physical Layer Devices

AT88CK490 Evaluation Kit

AVR2006: Design and characterization of the Radio Controller Board's 2.4GHz PCB Antenna. Application Note. Features.

Atmel SMART ARM Core-based Embedded Microprocessors

APPLICATION NOTE. Atmel AT01180: Barcode and QR code scanner User Guide. Atmel 32-bit Microcontroller. Features. Introduction

1Mb (64K x 16) One-time Programmable Read-only Memory

AT11805: Capacitive Touch Long Slider Design with PTC. Introduction. Features. Touch Solutions APPLICATION NOTE

AN-1405 DP83848 Single 10/100 Mb/s Ethernet Transceiver Reduced Media Independent Interface (RMII ) Mode

Practical PCB design techniques for wireless ICs Controlled impedance layout 100Ω balanced transmission lines

AVR353: Voltage Reference Calibration and Voltage ADC Usage. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Gigabit Ethernet MAC. (1000 Mbps Ethernet MAC core with FIFO interface) PRODUCT BRIEF

AT91 ARM Thumb Microcontrollers. AT91SAM CAN Bootloader. AT91SAM CAN Bootloader User Notes. 1. Description. 2. Key Features

Atmel AVR ATxmega384C3 microcontroller OLED display with pixels resolution Analog sensors. Ambient light sensor Temperature sensor

USER GUIDE. ZigBit USB Stick User Guide. Introduction

Application Note. C51 Bootloaders. C51 General Information about Bootloader and In System Programming. Overview. Abreviations

8-bit Atmel Microcontrollers. Application Note. Atmel AVR211: Wafer Level Chip Scale Packages

Two mechanical buttons Two user LEDs Four expansion headers. Board controller with USB interface. One power LED and one status LED

10-/100-Mbps Ethernet Media Access Controller (MAC) Core

SAMA5D2. Scope. Reference Documents. Atmel SMART ARM-based MPU ERRATA

AVR2004: LC-Balun for AT86RF230. Application Note. Features. 1 Introduction

APPLICATION NOTE. AT16268: JD Smart Cloud Based Smart Plug Getting. Started Guide ATSAMW25. Introduction. Features

3-output Laser Driver for HD-DVD/ Blu-ray/DVD/ CD-ROM ATR0885. Preliminary. Summary. Features. Applications. 1. Description

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

CryptoAuth Xplained Pro

Initializing the TSEC Controller

MODFLEX MINI GATEWAY ETHERNET USER S GUIDE

More Secure, Less Costly IoT Edge Node Security Provisioning

CMA5000 SPECIFICATIONS Gigabit Ethernet Module

LAN7500/LAN7500i. Hi-Speed USB 2.0 to 10/100/1000 Ethernet Controller PRODUCT FEATURES PRODUCT PREVIEW. Highlights. Target Applications.

AVR1324: XMEGA ADC Selection Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

10 Gigabit Ethernet MAC Core for Altera CPLDs. 1 Introduction. Product Brief Version February 2002

Programming Audio Applications in the i.mx21 MC9328MX21

AN3332 Application note

AT91 ARM Thumb Microcontrollers. Application Note. Interfacing a PC Card to an AT91RM9200-DK. Introduction. Hardware Interface

ACHILLES CERTIFICATION. SIS Module SLS 1508

APPLICATION NOTE. AT05558: Wireless Manufacturing Test Kit. Atmel ATmega256RFR2. Description. Features

AVR134: Real Time Clock (RTC) using the Asynchronous Timer. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Quest vworkspace Virtual Desktop Extensions for Linux

Wake on LAN Hardware Implementation Utilizing the Intel EP80579 Integrated Processor Product Line

Application Note. 8-bit Microcontrollers. AVR272: USB CDC Demonstration UART to USB Bridge

Transcription:

Application Note AT91SAM ARM-based Embedded MPU Gigabit Ethernet Implementation on SAMA5D3 Series 1. Introduction The SAMA5D3 series is a member of the Atmel microprocessor family which is based on the ARM Cortex -A5 processor core. This Application Note outlines the Gigabit Ethernet function embedded on SAMA5D3 Series. 2. Associated Documentation Before going further into this document, please refer to the latest documentation for the corresponding SAMA5D3 devices available on the Atmel web site at http//:www.atmel.com. SAMA5D3 Series Datasheet: lit 11121 SAMA5D3-EK User Guide: lit 11180 3. Gigabit Ethernet Implementation on SAMA5D3 Series Compatible with IEEE Standard 802.3 10, 100 and 1000 Mbit/s Operation Full and Half Duplex Operation at All Three Speeds of Operation Statistics Counter Registers for RMON/MIB MII/GMII/RGMII Interface to the Physical Layer RMII is Not Supported Integrated Physical Coding Direct Memory Access (DMA) Interface to External Memory Support for up to Eight Priority Queues in DMA Programmable Burst Length and Endianism for DMA Interrupt Generation to Signal Receive and Transmit Completion, or Errors Automatic Pad and Cyclic Redundancy Check (CRC) Generation on Transmitted Frames Frame Extension and Frame Bursting at 1000 Mbit/s in Half Duplex Mode Automatic Discard of Frames Received with Errors Receive and Transmit IP, TCP and UDP Checksum Offload. Both IPv4 and IPv6 Packet Types Supported Address Checking Logic for Four Specific 48-bit Addresses, Four Type IDs, Promiscuous Mode, Hash Matching of Unicast and Multicast Destination Addresses and Wake-on-LAN Management Data Input/Output (MDIO) Interface for Physical Layer Management

Support for Jumbo Frames up to 10240 Bytes Full Duplex Flow Control with Recognition of Incoming Pause Frames and Hardware Generation of Transmitted Pause Frames Half Duplex Flow Control by Forcing Collisions on Incoming Frames Support for 802.1Q VLAN Tagging with Recognition of Incoming VLAN and Priority Tagged Frames Support for 802.1Qbb Priority-Based Flow Control Programmable Inter Packet Gap (IPG) Stretch Recognition of IEEE 1588 PTP Frames IEEE 1588 Time Stamp Unit (TSU) Support for 802.1AS Timing and Synchronization 4. Signal Description and Connection The GMAC includes the following signal interfaces: GMII, MII, and RGMII to an external PHY MDIO interface for external PHY management Slave APB interface for accessing GMAC registers Master AHB interface for memory access Table 4-1. GMAC Connections in Different Modes Signal Name Function MII GMII RGMII GTXCK Transmit Clock or Reference Clock TXCK Not Used TXCK G125CK 125 MHz input Clock Not Used 125 MHz Ref Clk 125 MHz Ref Clk G125CKO 125 MHz output Clock Not Used TXCK Not Used GTXEN Transmit Enable TXEN TXEN TXCTL GTX[7..0] Transmit Data TXD[3:0] TXD[7:0] TXD[3:0] GTXER Transmit Coding Error TXER TXER Not Used GRXCK Receive Clock RXCK RXCK RXCK GRXDV Receive Data Valid RXDV RXDV Not Used GRX[7..0] Receive Data RXD[3:0] RXD[7:0] RXD[3:0] GRXER Receive Error RXER RXER RXCTL/RXDV GCRS Carrier Sense and Data Valid CRS CRS Not Used GCOL Collision Detect COL COL Not Used GMDC Management Data Clock MDC MDC MDC GMDIO Management Data Input/Output MDIO MDIO MDIO 2

Figure 4-1. Connection between Ethernet PHY and Ethernet MAC in the MII/GMII Mode. Figure 4-2. Connection between Ethernet PHY and Ethernet MAC in the RGMII Mode 3

5. MII: Media Independent Interface The MII bus (standardized by IEEE 802.3) is a generic bus that connects different types of PHYs to the same network controller (MAC). The network controller may interact with any PHY using the same hardware interface, independent of the media the PHYs are connected to. The MII transfers data using 4bit words (nibble) in each direction, clocked at 25 MHz to achieve 100 Mbit/s speed. The basic operation of data transmission is that the enable signal (TXEN) is set active to indicate start of frame and until it is completed. Then the clock signal (TXCLK) is set active for every group of bits (TXD[3:0]), at 2.5 MHz for 10 Mbit/s mode and 25 MHz for 100 Mbit/s mode. When the reception is valid, the RXDV signal goes active when the frame starts and throughout the frame duration. Then the clock signal (RXCLK) goes active for every group of bits (RXD[3:0]). For the shortest possible frame this means ~130 clocks. Any frame transferred begins with sync bits before the data payload. At power-up, the PHY adapts to whatever it is connected to, unless you alter settings via the MDIO interface. The following table describes MII signals: Table 5-1. MII Signals Channel Signal Direction (1) Description TXCK IN Transmit clock (generated by the PHY): 2.5 MHz for 10 Mbit/s and 25 MHz for 100 Mbit/s PHY to MAC TXD[4:0] OUT Data to be transmitted TXEN OUT Transmitter enable TXER OUT Transmitter error (used to corrupt a packet) RXCK IN Received clock MAC to PHY RXD[4:0] IN Received data RXDV IN Signifies that received data is valid RXER IN Signifies that received data has errors Carrier and Collision CRS IN Carrier Sense (half-duplex connections only) COL IN Collision Detect (half-duplex connections only) PHY Management MDCK MDIO OUT INOUT Note: 1. Direction is defined from the chip side: IN = PHY to MAC, OUT = MAC to PHY. 4

6. GMII: Gigabit Media Independent Interface GMII is an addendum to MII interface. It has been added to handle Gigabit Ethernet 1000 Mbit/s transfer rate. GMII does not replace MII, as it is not specified to work with 10 and 100 Mbit/s transfer rates. Therefore, for 10 or 100 Mbit/s transfer rates, MII interface is used instead of GMII. One of the major differences between MII and GMII is that TX clock (MAC to PHY clock) is not provided by the PHY anymore, it is the MAC that provides the clock. Then each of RX and TX channels provides its own clock. This prevents timing closure issues, as Gigabit mode frequency clock is 125 MHz (4 ns period). Four additional bits have been added on Data signals in order to reach the 1000 Mbit/s rate (frequency is 5 times the one of 100 Mbit/s rate, and data bus width is doubled, then the factor of 10 is reached). The following table describes GMII signals: Table 6-1. GMII Signals Channel Signal Direction (1) Description GTXCK OUT Transmit clock for 1000 Mbit/s: 125 MHz PHY to MAC TXCK IN Transmit clock (generated by the PHY for MII compatibility): 2.5 MHz for 10 Mbit/s and 25 MHz for 100 Mbit/s TXD[7:0] OUT Data to be transmitted (4 bits more than MII) TXEN OUT Transmitter enable TXER OUT Transmitter error (used to corrupt a packet) RXCK IN Received clock MAC to PHY RXD[7:0] IN Received data (4 bits more than MII) RXDV IN Signifies that received data is valid RXER IN Signifies that received data has errors Carrier and Collision CRS IN Carrier Sense (half-duplex connections only) COL IN Collision Detect (half-duplex connections only) PHY Management MDCK OUT SMI clock MDIO INOUT SMI data Note: 1. Direction is defined from the chip side: IN = PHY to MAC, OUT = MAC to PHY. 5

7. RGMII: Reduced Gigabit Media Independent Interface RGMII uses half the number of data pins used in the GMII interface. This reduction is achieved by clocking data on both the rising and the falling edges of the clock, and by eliminating non-essential signals (carrier sense and collision indication). Thus RGMII consists only of: RXC, RD[3:0], RX_CTL, TXC, TXD[3:0], and TX_CTL (12 pins, as opposed to 24 pins for GMII). Unlike MII, the transmit clock signal is always provided by the MAC on the TXC line, rather than being provided by the PHY for 10/100 Mbit/s operation and by the MAC at 1000 Mbit/s. RGMII supports Ethernet speeds of 10 Mbit/s, 100 Mbit/s and 1000 Mbit/s. The following table describes RGMII signals: Table 7-1. RGMII Signals Channel Signal Direction (1) Description Clock GTXCK IN 125 MHz reference clock PHY to MAC TX_CLK / GTXCKO OUT TXD[3:0] OUT Data to be transmitted Transmit clock (generated by the MAC with master clock GTXCK): 2.5 MHz for 10 Mbit/s, 25 MHz for 100 Mbit/s and 125 MHz for 1000 Mbit/s TXCTL OUT Transmitter enable / Transmitter error MAC to PHY RXC IN RXD[3:0] IN Received data Received clock: 2.5 MHz for 10 Mbit/s, 25 MHz for 100 Mbit/s and 125 MHz for 1000 Mbit/s RXCTL IN Signifies that received data has errors PHY Management MDCK OUT SMI clock MDIO INOUT SMI data Note: 1. Direction is defined from the chip side: IN = PHY to MAC, OUT = MAC to PHY. 6

8. Routing Considerations The user should refer to the design and layout guidelines of the PHY provider. 8.1 SAMA5D3 Example This example shows how SAMA5D3-EK connects to KSZ9021GN PHY. The functional mode is defined by the software. PHY is configured to operate in GMII, RGMII or MII mode, according to the chosen hardware connection. Figure 8-1. Functional Connection. 7

Figure 8-2. Schematics Extract of SAMA5D3-EK 8

Revision History In the table that follows, the most recent version of the document appears first. rfo indicates changes requested during the document review and approval loop. Doc. Rev 11164A Comments First issue. Change Request Ref. 9

Atmel Corporation 1600 Technology Drive San Jose, CA 95110 USA Tel: (+1) (408) 441-0311 Fax: (+1) (408) 487-2600 www.atmel.com Atmel Asia Limited Unit 01-5 & 16, 19F BEA Tower, Millennium City 5 418 Kwun Tong Road Kwun Tong, Kowloon HONG KONG Tel: (+852) 2245-6100 Fax: (+852) 2722-1369 Atmel Munich GmbH Business Campus Parkring 4 D-85748 Garching b. Munich GERMANY Tel: (+49) 89-31970-0 Fax: (+49) 89-3194621 Atmel Japan G.K. 16F Shin-Osaki Kangyo Bldg 1-6-4 Osaki, Shinagawa-ku Tokyo 141-0032 JAPAN Tel: (+81) (3) 6417-0300 Fax: (+81) (3) 6417-0370 2013 Atmel Corporation. All rights reserved. / Rev.: Atmel, Atmel logo and combinations thereof, Enabling Unlimited Possibilities, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. ARM, ARMPowered logo, Cortex are registered trademarks or trademarks of ARM Ltd.Other terms and product names may be trademarks of others. Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.