EtherCAT Click Board
EtherCAT Click Board
The EtherCAT Click Board™ is a compact add-on board that provides a cost-effective solution for realizing EtherCAT device solutions on various processors over the SPI interface. This board features the LAN9252, a 2-port EtherCAT device controller with dual integrated Ethernet PHYs from Microchip Technology. Each PHY contains a full-duplex 100BASE-TX transceiver and supports 100Mbps operation. The LAN9252 supports HP Auto-MDIX, allowing the use of direct connects or cross-over LAN cables. It communicates with MCU via a synchronous device SPI/SQI interface and can operate in Digital I/O Mode, where signals can be controlled or monitored by the EtherCAT Master. This Click Board™ is suitable for industrial control, process/factory automation, hydraulic and pneumatic valve systems, power, and many more.
The EtherCAT Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
How Does The EtherCAT Click Board™ Work?
The EtherCAT Click Board™ as its foundation uses the LAN9252, a 2-port EtherCAT device controller with dual integrated Ethernet PHYs from Microchip Technology. Each PHY contains a full-duplex 100BASE-TX transceiver and supports 100Mbps operation. Each port receives an EtherCAT frame, performs frame checking, and forwards it to the next port. Data exchange between master and device applications is comparable to a dual-ported memory (process memory), enhanced by special functions for consistency checking and data mapping (FMMU). The LAN9252 also supports HP Auto-MDIX, allowing the use of direct connects or cross-over LAN cables on the onboard 2x1 RJ-45 connector.
Within the LAN9252, two modes of operation are available: buffered or mailbox mode. In the buffered mode, both the local MCU and EtherCAT Master can write to the device concurrently. The buffer within the LAN9252 will always contain the latest data. If newer data arrives before a performed old data read, the old data will be dropped. In mailbox mode, buffer access by the local MCU and the EtherCAT Master is committed using handshakes, guaranteeing no data drop. The LAN9252 also contains an I2C master EEPROM controller for connection to the external 24FC64F, 64Kbit Microchip's EEPROM, which allows for the storage and retrieval of static data using the I2C serial interface.
The EtherCAT Click Board™ communicates with MCU via a synchronous slave SPI/SQI interface that facilitates communication between the device and a host system. It supports single/multiple registers read and write commands with incrementing, decrementing, and static addressing and allows access to the System CSRs, internal FIFOs, and memories. Single, Dual, and Quad bit lanes are supported in SPI mode with a clock rate of up to 80 MHz. For simple digital modules without MCUs, the LAN9252 can operate in Digital I/O Mode, where signals can be controlled or monitored by the EtherCAT Master.
The LAN9252 also provides operational green LED indicator labelled as RUN and a programmable interrupt structure controlled by the System Interrupt Controller. The interrupt pin labelled as INT on the mikroBUS™ socket can be configured as an open-drain output to facilitate the sharing of interrupts with other devices via onboard header. The programmable interrupt pin provides the user with the ability to optimize performance dependent upon the application requirements. Also, this Click board™ can reset through the Hardware Reset pin, labelled as RST on the mikroBUS™ socket.
The EtherCAT Core of the LAN9252 provides two input pins used for time stamping of external events, where both rising and falling edge time stamps are recorded. These pins are shared with the SL0 and SL1 pins on the mikroBUS™ socket and onboard header, respectively, to indicate the occurrence of time events. The LAN9252 supports numerous power management and Wake-Up features. It can be placed in a reduced power mode and be programmed to issue an external wake signal ideal for triggering system Power-Up using remote Ethernet Wake-Up events.
The EtherCAT Click Board™ operates only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before use with MCUs with different logic levels.
EtherCAT is a high-performance, low-cost, easy to use Industrial Ethernet technology with a flexible topology. This real-time Industrial Ethernet technology was originally developed by Beckhoff Automation. The EtherCAT protocol which is disclosed in the IEC standard IEC61158 is suitable for hard and soft real-time requirements in automation technology, in test and measurement and many other applications.
EtherCAT is also an open technology: anyone is allowed to implement or use it. MikroElektornika is from 2018 a proud member of the EtherCAT Technology Group. To find out more about this technology and how it can be used feel free to visit EtherCAT Technology page.
|Applications||The EtherCAT Click Board™ can be used for industrial control, process/factory automation, hydraulic and pneumatic valve systems, power, and many more.|
|On-board modules||LAN9252 - 2-port EtherCAT slave controller with dual integrated Ethernet PHYs from Microchip Technology|
|Key Features||2/3-port EtherCAT slave controller, integrated Ethernet PHYs with HP Auto-MDIX, wake on LAN (WoL) support, high performance, synchronous slave SPI/SQI interface, and more.|
|Click board size||L (57.15 x 25.4 mm)|
This table shows how the pinout of the EtherCAT Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
|External Time Event Indicator||SL1||1||AN||PWM||16||SLO||External Time Event Indicator|
|SPI Chip Select||CS||3||CS||RX||14||NC|
|SPI Data OUT||SDO||5||MISO||SCL||12||NC|
|SPI Data IN||SDI||6||MOSI||SDA||11||NC|
ONBOARD SETTINGS AND INDICATORS
|LD1||PWR||-||Power LED Indicator|
|LD2||RUN||-||RUN LED Indicator|
|J1||-||Unpopulated||External Time Event Indicators / Interrupt|
ETHERCAT CLICK ELECTRICAL SPECIFICATIONS
|Operating Temperature Range||-40||+25||+85||°C|
MikroElektronika does not provide direct software support for the EtherCAT Click Board™ in the form of libraries, functions, or example code at this moment. The software support is provided in MPLABX by the Microchip company, with Microchip EtherCAT Harmony 3 Driver.
Microchip Harmony 3 Driver can be found on the MicrochipTech GitHub account and represents the EtherCAT software development kit designed to be integrated into any suitably powerful MCU and is used to control LAN9252. Please refer to the LAN9252 Quick Start Guide for a quick getting up and running with EtherCAT Harmony 3 Driver.
EtherCAT Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.