ETH Ethernet MAC - AURIX Microcontroller Training V1.0 2019-03 - Infineon Technologies

Page created by Elaine Erickson
 
CONTINUE READING
ETH
Ethernet MAC

AURIX™ Microcontroller Training
V1.0 2019-03
               Please read the Important Notice and Warnings at the end of this document
ETH
Ethernet MAC

   TCP/IP    Tx FIFO   Rx FIFO
                                                                           Highlights
   Stack      (2KB)     (2KB)

                                                                           › The Ethernet core supports
             Tx Flow   Rx Flow
                                   Ethernet
                                     MAC
                                                         PHY                      10/100 Mbit/s data transfer rates
             Control   Control
                                 10/ 100 Mbps
                                                       RMII/ MII                  which is compliant with IEEE 802.3
    DMA
                                                                           › Allows an external Fast Ethernet
              DMA
              CSR
                        OMR
                        Reg
                                                                                  PHY interface with RMII/MII

 Key Features                                                              Customer Benefits
 Automatic CRC and pad generation                                          ›     User does not have to take care of CRC
                                                                                 calculation and pad insertion

 Flexible address filtering modes                                          ›     Auto checking of the destination and
                                                                                 source address of receive frame

 Support Ethernet frame time stamping                                      ›     Better accuracy to synchronize clocks
                                                                                 throughout a network

2019-03-27                              Copyright © Infineon Technologies AG 2019. All rights reserved.                  2
ETH
Automatic CRC and pad generation

› CRC and Pad generation for Transmission frame
     – When the number of bytes received falls below 60 bytes, the state machine
       automatically appends zeros to the Tx frame to make the data length exactly
       46 bytes.
     – The Transmit CRC Generator module calculate the CRC for the Frame Check
       Sequence (FCS) field before transmission to the TPE module.

                                                 Ethernet
                                                   Core
                  Transmit CRC
                 Generator ( CTX)                                               Automatic CRC and pad generation
                                            State machine
                                    ( DA+ SA+ LT+ DATA) < 60 bytes

                                          Data = 46 bytes
              Frame Check                                                 Ethernet Transmission Frame
                                    Pad
             Sequence CRC                                                     Type /           Source                Destination
                                                  Payload / Data                                                                   SFD   Preamble
                                                                              Length           address                address

2019-03-27                                         Copyright © Infineon Technologies AG 2019. All rights reserved.                                  3
ETH
Flexible address filtering modes

›    The Address Filtering (AFM) module performs the destination and source address checking
     function on all received frames and reports the address filtering status to the Receive Frame
     Controller module.
›    The Receive Frame Controller (RFC) module performs frame filtering based on the
     destination/source address.

                                                 Ethernet Core

                                                   Filtering status
              Receive Frame Controller Module

                                                                                                                   (AFM)

                                                    Unicast Destination
                                                                                                                 (AFM)

                                                      Address filter
                                                                                                          Module

                                                   Multicast Destination
                                                                                                Filtering module

                                                      Address filter                                                       Preamble
                                                                                                                                      Destination   Source
                                                                                                                                                              Ethertype   Data   CRC
                                                                                                                                      MAC address MAC address
                                                   Hash or Perfect Filter
                                                                                        AddressFiltering

                                                Disable all Broadcast Filter
                                                  Unitcast Source Address
                                                           Filter
                                                                                      Address

                                                Inverse Filtering Operation

2019-03-27                                                                  Copyright © Infineon Technologies AG 2019. All rights reserved.                                            4
ETH
Ethernet frame time stamping

›    If IEEE 1588 time stamping is enabled for the transmit frame, this block takes a snapshot of
     the system time when the SFD is put onto the transmit MII bus.
›    The time stamping feature can be use in Precision Time Protocol to synchronize clock
     thought out a network of rotary encoder and control stepping motor at required timing.
                                                                         Slave

                                                                                                          Microcontroller
                                                                           PHY

                                                                                    PTP Logic
                       Master

                   Ethernet MAC

                                                                         Slave
                  Ethernet
                   frame                                                                                  Microcontroller
                                MII /                                      PHY
                Time Stamp…
                          ..                  PHY
                                RMII
                                                                                    PTP Logic

                        Time Stamping
                                                                         Slave

                                                                                                          Microcontroller
                                                                           PHY

                                                                                    PTP Logic

2019-03-27                              Copyright © Infineon Technologies AG 2019. All rights reserved.                     5
ETH
System integration

The Ethernet MAC can make use of
the internal Flash/RAM for data
storage and handling. The internal
RAM is used as well for DMA
Transmit / Receive descriptors and                              RAM                        ETH                  Interrupt Router

Ethernet Frame storage. The
                                                                DMA
Interrupt Router handles all request                         Transmit /
                                                                                                     Software
                                                              Receive
coming from the Ethernet, as                                 descriptors                           RTOS/TCP IP

example a received frame                                                              FLASH            ADC                     GPIO

notification. Combined with the                                                            RAM         GTM                     LED

automotive AUTOSAR™ software                                                                                                  ASCLIN

new Applications can be developed.                                                  Data storage      Sensors                Actuators

Faster ECU Firmware updates,
Service oriented communication via
SOME/IP or Service and diagnosis
via DoIP are just some examples.

2019-03-27               Copyright © Infineon Technologies AG 2019. All rights reserved.                                              6
Application example
Firmware updates of multiple ECUs

                                                AURIX™ TC2xx
                                                         AUTOSAR™

        Host      PHY      ETH MAC                       PDU router                                CAN-FD   CAN ECUs

                                            TCP IP stack                   CAN

 Overview                                                          Advantages
 ›      Firmware updates in cars can make use                      ›       The Ethernet MAC allows with the high
        of Ethernet to exchange data much                                  speed data transfer to update multiple
        faster compared to other existing                                  ECUs in parallel in a car
        communication interfaces
                                                                   ›       The faster update time saves money at
                                                                           line end programming and in field garage
                                                                           firmware updates

2019-03-27                       Copyright © Infineon Technologies AG 2019. All rights reserved.                       7
Trademarks
All referenced product or service names and trademarks are the property of their respective owners.

Edition 2019-03                               IMPORTANT NOTICE                                        For further information on the product,
Published by                                  The information given in this document shall in no      technology, delivery terms and conditions and
Infineon Technologies AG                      event be regarded as a guarantee of conditions or       prices please contact your nearest Infineon
81726 Munich, Germany                         characteristics (“Beschaffenheitsgarantie”) .           Technologies office (www.infineon.com).
                                              With respect to any examples, hints or any typical
© 2019 Infineon Technologies AG.                                                                      WARNINGS
                                              values stated herein and/or any information
All Rights Reserved.                                                                                  Due to technical requirements products may
                                              regarding the application of the product, Infineon
                                                                                                      contain dangerous substances. For information
                                              Technologies hereby disclaims any and all
Do you have a question about this                                                                     on the types in question please contact your
                                              warranties and liabilities of any kind, including
document?                                                                                             nearest Infineon Technologies office.
                                              without limitation warranties of non-infringement
Email: erratum@infineon.com
                                              of intellectual property rights of any third party.     Except as otherwise explicitly approved by
                                                                                                      Infineon Technologies in a written document
Document reference                            In addition, any information given in this
                                                                                                      signed by authorized representatives of Infineon
AURIX_Training_1_Ethernet_MAC                 document is subject to customer’s compliance
                                                                                                      Technologies, Infineon Technologies’ products
                                              with its obligations stated in this document and
                                                                                                      may not be used in any applications where a
                                              any applicable legal requirements, norms and
                                                                                                      failure of the product or any consequences of the
                                              standards concerning customer’s products and
                                                                                                      use thereof can reasonably be expected to result
                                              any use of the product of Infineon Technologies in
                                                                                                      in personal injury.
                                              customer’s applications.
                                              The data contained in this document is exclusively
                                              intended for technically trained staff. It is the
                                              responsibility   of      customer’s     technical
                                              departments to evaluate the suitability of the
                                              product for the intended application and the
                                              completeness of the product information given in
                                              this document with respect to such application.
You can also read