Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIE DBYDNV
== ISO/TS16949==
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device applications and the like is provided only for your convenience and may be
superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO
REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE,
MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold
harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or
otherwise, under any Microchip intellectual property rights unless otherwise stated.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC, FlashFlex, flexPWR, JukeBlox, K
MediaLB, MOST, MOST logo, MPLAB, OptoLyzer, PIC, PICSTART, PIC
UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
The Embedded Control Solutions Company and mTouch are registered trademarks of Microchip Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net, ECAN, In-Circuit Serial
Programming, ICSP, Inter-Chip Connectivity, KleerNet, KleerNet logo, MiWi, motorBench, MPASM, MPF, MPLAB Certified logo,
MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, RightTouch logo, REAL
ICE, SQI, Serial Quad I/O, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are
trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.
Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries.
GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in
other countries.
All other trademarks mentioned herein are property of their respective companies.
logo, RightTouch, SpyNIC, SST, SST Logo, SuperFlash and
EELOQ, KEELOQ logo, Kleer, LANCheck,
QUALITYMANAGEMENTS
DS50002356B-page 2 2015 Microchip Technology Inc.
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
Object of Declaration: EVB-LAN9252-ADD-ON for Beckhoff EL9800
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the page number. The numbering convention for the DS number is
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available online help files.
®
IDE online help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
EVB-LAN9252-ADD-ON. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• The Microchip Web Site
• Development Systems Customer Change Notification Service
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the EVB-LAN9252-ADD-ON as a development
tool for the Microchip LAN9252 EtherCAT
follows:
• Chapter 1. “Overview” – Provides a brief description of the
EVB-LAN9252-ADD-ON.
• Chapter 2. “Board Details & Configuration” – Includes details and instructions
for using the EVB-LAN9252-ADD-ON.
• Appendix A. “Evaluation Board Photo” – This appendix shows the
EVB-LAN9252-ADD-ON.
• Appendix B. “Evaluation Board Schematics” – This appendix shows the
EVB-LAN9252-ADD-ON schematics.
• Appendix C. “Bill of Materials (BOM)” – This appendix includes the
EVB-LAN9252-ADD-ON for Beckhoff EL9800 User’s Guide
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at www.microchip.com. This web
site is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the web site contains the following
information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program
member listing
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices,
distributors and factory representatives
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail notification whenever there are changes,
updates, revisions or errata related to a specified product family or development tool of
interest.
To register, access the Microchip web site at www.microchip.com, click on Customer
Change Notification and follow the registration instructions.
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compilers, assemblers, linkers
and other language tools. These include all MPLAB C compilers; all MPLAB
assemblers (including MPASM assembler); all MPLAB linkers (including MPLINK
object linker); and all MPLAB librarians (including MPLIB object librarian).
• Emulators – The latest information on Microchip in-circuit emulators.This
includes the MPLAB REAL ICE and MPLAB ICE 2000 in-circuit emulators.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debuggers. This includes MPLAB ICD 3 in-circuit debuggers and PICkit 3 debug
express.
• MPLAB IDE – The latest information on Microchip MPLAB IDE, the Windows
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB IDE Project Manager, MPLAB Editor and
MPLAB SIM simulator, as well as general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
production programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB
ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included
are nonproduction development programmers such as PICSTART Plus and
PIC-kit 2 and 3.
DS50002356B-page 8 2015 Microchip Technology Inc.
Preface
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the web site at:
http://www.microchip.com/support
DOCUMENT REVISION HISTORY
RevisionSection/Figure/EntryCorrection
DS50002356A (03-19-15)Initial Release of document.
DS50002356B (10-08-15)(Throughout document.)Updated EVB-LAN9252-BECKHOFF-ADD-ON to
EVB-LAN9252-ADD-ON for Beckhoff EL9800 User’s Guide
RevisionSection/Figure/EntryCorrection
Figure B-3Updated schematic.
Ta bl e C -1Updated BOM.
Ta bl e C -2Updated BOM - DNP Components.
DS50002356B-page 10 2015 Microchip Technology Inc.
1.1INTRODUCTION
Microchip
LAN9252
Power
Module
EVB-LAN9252-ADD-ON
100BASE-TX
Ethernet
Magnetics &
RJ45
100BASE-TX
Ethernet
Magnetics &
RJ45
RST/
LEDs
Port 0Port 1
EthernetEthernet
SPI/DIGIO
Selection
EEPROM
Crystal
5V
Board to Board Connector
(To Beckhoff EL9800)
The LAN9252 is a 2-port EtherCAT® Slave Controller (ESC) with dual-integrated Ethernet PHYs which each contain a full-duplex 100BASE-TX transceiver and support
100Mbps (100BASE-TX) operation. 100BASE-FX is supported via an external fiber
transceiver.
The EtherCAT module implements a 3 port EtherCAT slave controller with 4K bytes of
Dual Port memory (DPRAM), 4 SyncManagers, 3 Fieldbus Memory Management Units
(FMMUs) and a 64-bit Distributed Clock.
This document details the various sections of the EVB-LAN9252-ADD-ON, which is
designed to be used as an add-on board (ESC board) with the Beckhoff EL9800 EtherCAT Evaluation Board.
This board supports the SPI and DIGIO PDI modes of the LAN9252 board, combining
a LAN9252 EtherCAT Slave Controller, two RJ45 1x1 Tab-DOWN with LEDs, 8-pin
integrated magnetics connector (ICM), and a PDI-Connector on a printed circuit board.
A simplified block diagram of the EVB-LAN9252-ADD-ON is displayed in Figure 1-1.
EVB-LAN9252-ADD-ON for Beckhoff EL9800 User’s Guide
1.2REFERENCES
Concepts and material available in the following documents may be helpful when reading this document. Visit www.microchip.com for the latest documentation.
• LAN9252 Data Sheet
• Beckhoff EL9800 EtherCAT Base Board Datasheet
• AN 8.13 Suggested Magnetics
• EVB-LAN9252-ADD-ON Schematics
1.3TERMS AND ABBREVIATIONS
ESC - EtherCAT® Slave Controller
EVB - Evaluation Board
HAL - Hardware Abstraction Layer
HBI - Host Bus Interface
IDE - Integrated Development Environment
PDI - Process Data Interface
SPI - Serial Protocol Interface
SSC - Slave Stack Code
DIGIO - Digital Input/Output
DS50002356B-page 12 2015 Microchip Technology Inc.
Chapter 2. Board Details & Configuration
2.1POWER
EVB-LAN9252-ADD-ON
FOR BECKHOFF EL9800
USER’S GUIDE
This chapter includes sub-sections on the following EVB-LAN9252-ADD-ON details:
•Power
• Board-to-Board Connector Pinout
• Clock
• Configuration
• Strap Options
• Process Data Interfaces
• Mechanicals
Power is supplied as +5V to the EVB-LAN9252-ADD-ON via the board-to-board connector. +3.3V is generated internally via an LDO. Assertion of the D2 green LED indicates +3.3V o/p. The LAN9252 includes an internal +1.2V regulator which supplies
power to the internal core logic.
2.2BOARD-TO-BOARD CONNECTOR PINOUT
Ta bl e 2 -1 details the pinout of connector J202 of the EVB-LAN9252 ADD ON
board-to-board connector, which connects to the Beckhoff EL9800 J202 connector.
EVB-LAN9252-ADD-ON for Beckhoff EL9800 User’s Guide
Selection Switches
y
LDOEEPROM
(with integrated
(with integrated
TABLE 2-1:EVB-LAN9252 CONNECTOR J202 PIN OUT (CONTINUED)
Pin
Number
Signal
39SOF46OE_EXT
40OUTVALID47NC
41SYNC/LATCH048VCC_5V_IN
42NC493V3
43LATCH_IN50VCC_5V_IN
44SYNC/LATCH151TP3
45GND52TP2
Pin
Number
Note:Pins 53-56 are NC.
2.3CLOCK
LAN9252 requires a fixed-frequency 25MHz clock source for use by the internal clock
oscillator and PLL. This is typically provided by attaching a 25MHz crystal to the OSCI
and OSCO pins.
Signal
2.4CONFIGURATION
The following sub-sections describe the various board features and configuration settings. A top view of the EVB-LAN9252-ADD-ON REV-B is displayed in Figure 2-1.
FIGURE 2-1:EVB-LAN9252-ADD-ON TOP VIEW WITH CALLOUTS
Board to Board Connector (J202)
DIGIO/SPI
Microchip
LAN9252
25 Mhz
Cr
stal
Port 0
magnetics &LEDs)
Port 1
magnetics &LEDs)
The EVB-LAN9252-ADD-ON connects with the Beckhoff EL9800 EtherCAT Base
Board as depicted in Figure 2-2.
DS50002356B-page 14 2015 Microchip Technology Inc.
Board Details & Configuration
Beckhoff EL9800 EtherCAT Base Board
Microchip EVB-LAN9252-ADD-ON
FIGURE 2-2:BECKHOFF EL9800
2.5STRAP OPTIONS
2.6PROCESS DATA INTERFACES
2.5.1Chip Mode
The chip mode straps determine the number of active ports and port types. EVBLAN9252 by default, supports only the 2 port mode (CHIP_MODE0 and CHIP_MODE1
signals pulled down).
2.5.2EEPROM Size Configuration
The EEPROM size configuration strap (LAN9252 E2PSIZE signal) determines the supported EEPROM size range. A low selects 1Kbits (128 x 8) through 16Kbits (2K x 8). A
high selects 32Kbits (4K x 8) through 512Kbits (64K x 8) or 4Mbits (512K x 8). On this
EVB, E2PSIZE is pulled high to select 512k EEPROM.
The Process Data Interface is used to communicate with external SoC. The
EVB-LAN9252-ADD-ON supports two different PDI configurations:
• SPI
• DIGIO (Default Configuration)
The following section details the hardware and software configurations required for the
EVB-LAN9252-ADD-ON and the Beckhoff EL9800 for both PDI configuration options.
Note:Pins 1-2 of J1201 must be shorted on the Beckhoff EL9800 board (under
PDI selection area). For DIGIO Switch SW904 must be move to ON position on the Beckhoff EL9800 board (under Digital I/O selection area).
The SPI Slave module provides a low pin count synchronous slave interface that facilitates communication between the LAN9252 and a host system. The SPI/Slave allows
access to the System CSRs, internal FIFOs and registers. It supports single and multiple register read and write commands with incrementing, decrementing and static
addressing. Single-bit lane is supported in SPI mode.
The jumper detailed in Table 2-2 and switch detailed in Tab l e 2- 3 should be configured
as shown in order to use SPI Mode.
TABLE 2-2:SPI MODE JUMPER CONFIGURATION
JumperShort Pins
J11,2
TABLE 2-3:SPI MODE SWITCH CONFIGURATION
SwitchShort PinsKnob Position
SW21-2, 4-5Right Side
2.6.1.1.2DIGIO Mode
For simple modules without microcontrollers, the LAN9252 can operate in Digital IO
mode where 16 digital signals can be controlled or monitored by the EtherCAT master.
Six control signals are also provided.
The jumper detailed in Table 2-4 and switch detailed in Ta bl e 2 -5 should be configured
as shown in order to use DIGIO Mode.
TABLE 2-4:DIGIO MODE JUMPER CONFIGURATION
JumperShort Pins
J12,3
TABLE 2-5:DIGIO MODE SWITCH CONFIGURATION
SwitchShort PinsKnob Position
SW22-3, 5-6Left Side
2.6.1.2EVB-LAN9252-ADD-ON SOFTWARE CONFIGURATION
To configure the LAN9252 in SPI/DIGIO mode, the appropriate binary files (ESI files)
must be programmed into the LAN9252 configuration EEPROM.
The LAN9252 configures itself to the desired mode by reading the strap settings
located in EEPROM. The LAN9252 EEPROM is programmed and validated via the
TwinCAT master tool. The programming procedure is as follows:
Note 1:This example utilizes the TwinCAT tool. Procedures may differ when
using other EtherCAT master tools.
2:Ensure the system network properties are configured properly for the
EtherCAT frames, Ethernet cable linking your system, and EtherCAT
slave board.
DS50002356B-page 16 2015 Microchip Technology Inc.
Board Details & Configuration
1. Load the corresponding EtherCAT Slave Information (ESI) file in the directory
path “C:\TwinCAT\Io\EtherCAT” and select the appropriate ESI file. For this
demo, the ESI file for the SPI Mode is used.
2. If TwinCAT installed successfully, a TwinCAT icon will be displayed in the bottom
right corner of the desktop. After clicking the icon, a pop-up list will display. Select
“System Manager,” as displayed in Figure 2-3.
FIGURE 2-3:TWINCAT SYSTEM MANAGER
3. If any devices are present, delete them accordingly by clicking the device and
selecting “Delete Device”, as displayed in Figure 2-4.
EVB-LAN9252-ADD-ON for Beckhoff EL9800 User’s Guide
FIGURE 2-4:TWINCAT DELETE DEVICE
4. Scan for EtherCAT slave devices by clicking “I/O devices” and selecting “Scan
Devices”, as displayed in Figure 2-5.
DS50002356B-page 18 2015 Microchip Technology Inc.
Board Details & Configuration
FIGURE 2-5:TWINCAT SCAN DEVICES
5. After scanning is complete, the right panel of the TwinCAT window will appear as
displayed in Figure 2-6.
FIGURE 2-6:TWINCAT DEVICE LIST
6. After a successful scan, click the “Device 2 (EtherCAT)” drop-down bar on the left
panel of the TwinCAT tool (as highlighted in Figure 2-5). Then click the “Online”
tab on the right-side panel of the TwinCAT tool, as displayed in Figure 2-6.
Right-click the LAN9252 listing and select “EEPROM Update” from the contextual menu as displayed in Figure 2-7.
EVB-LAN9252-ADD-ON for Beckhoff EL9800 User’s Guide
FIGURE 2-7:TWINCAT EEPROM UPDATE
7. Upon selecting “EEPROM Update”, the Write EEPROM window will open. Click
the “OK” button to initiate EEPROM programming as displayed in Figure 2-8.
FIGURE 2-8:TWINCAT WRITE EEPROM
DS50002356B-page 20 2015 Microchip Technology Inc.
Board Details & Configuration
2.6.2Configuring PDI Selection on the Beckhoff EL9800
Selection of the different PDIs on the EL9800 takes place using a rotary selector in the
PDI-Selection Area. Based on the four physical PDIs, eight logical PDIs are selectable
over the PDI-Selector. The selector positions listed in Table 2-6 activate the corre-
sponding PDI.
TABLE 2-6:BECKHOFF EL9800 SELECTOR POSITIONS
PositionProcess Data Interface
0OFF
18/16 Bit Microcontroller Interface
232-Bit Digital interface - 32 Inputs
332-Bit Digital interface - 32 Outputs
432-Bit Digital interface - 16 Inputs / 16 Outputs
532-Bit Digital interface - 24 Inputs / 8 Outputs
632-Bit Digital interface - 8 Inputs / 24 Outputs
7PIC (SPI)
8SPI
Note:The Selector Position must changed to Position 6 to select DIGIO -8 Ch.Dig
IN-/OUT Test by Default.
FIGURE 2-9:PDI SELECTOR HEX SWITCH ON THE BECKHOFF EL9800