Microchip Technology EVB-LAN9252-DIG-IO User Manual

EVB-LAN9252-DIG-IO
EtherCAT® DIG I/O
Evaluation Board
User’s Guide
2014 Microchip Technology Inc. Preliminary DS50002332A
Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIED BY DNV
== ISO/TS 16949 ==
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.
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, 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 trademarks 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.
© 2014, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
32
logo, RightTouch, SpyNIC, SST, SST Logo, SuperFlash and
EELOQ, KEELOQ logo, Kleer, LANCheck,
ISBN: 97816312769251
QUALITY MANAGEMENT S
DS50002332A-page 2 Preliminary  2014 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-DIG-IO
2014 Microchip Technology Inc. Preliminary DS50002332A-page 3
EVB-LAN9252-DIG-IO EtherCAT® DIG I/O User’s Guide
NOTES:
DS50002332A-page 4 Preliminary  2014 Microchip Technology Inc.
EVB-LAN9252-DIG-IO
ETHERCAT® DIG I/O
USER’S GUIDE
Table of Contents
Preface ........................................................................................................................... 7
Introduction............................................................................................................ 7
Document Layout .................................................................................................. 7
Conventions Used in this Guide ............................................................................ 8
The Microchip Web Site ........................................................................................ 9
Development Systems Customer Change Notification Service ............................ 9
Customer Support ................................................................................................. 9
Document Revision History ................................................................................. 10
Chapter 1. Overview
1.1 Introduction ................................................................................................... 11
1.2 References ................................................................................................... 12
1.3 Terms and Abbreviations ............................................................................. 12
Chapter 2. Board Details & Configuration
2.1 Power ........................................................................................................... 13
2.1.1 +5V Power ................................................................................................. 13
2.2 Resets .......................................................................................................... 13
2.2.1 Power-on Reset ......................................................................................... 13
2.2.2 Reset Out .................................................................................................. 13
2.2.3 GPIO Reset ............................................................................................... 13
2.3 Clock ............................................................................................................ 14
2.4 Configuration ................................................................................................ 14
2.4.1 Strap Options ............................................................................................ 15
2.4.2 LED Indicators ........................................................................................... 17
2.4.3 EEPROM Switch ....................................................................................... 18
2.4.4 DIG INPUT Mode ...................................................................................... 18
2.4.5 DIG OUTPUT Mode .................................................................................. 18
2.4.6 DIG Bidirectional Mode ............................................................................. 19
2.4.7 Control Signals .......................................................................................... 19
2.5 Mechanicals ................................................................................................. 20
Chapter 3. LAN9252 EEPROM Programming
3.1 Programming the LAN9252 EEPROM ......................................................... 21
Appendix A. EVB-LAN9252-DIG-IO Evaluation Board
A.1 Introduction .................................................................................................. 24
Appendix B. EVB-LAN9252-DIG-IO Evaluation Board Schematics
B.1 Introduction .................................................................................................. 25
Appendix C. Bill of Materials (BOM)
C.1 Introduction .................................................................................................. 33
2014 Microchip Technology Inc. Preliminary DS50002332A-page 5
EVB-LAN9252-DIG-IO EtherCAT® DIG I/O User’s Guide
Worldwide Sales and Service .....................................................................................37
DS50002332A-page 6 Preliminary  2014 Microchip Technology Inc.
EVB-LAN9252-DIG-IO
ETHERCAT® DIG I/O
USER’S GUIDE

Preface

NOTICE TO CUSTOMERS
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-DIG-IO. 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-DIG-IO as a development tool for the Microchip LAN9252 EtherCAT® slave controller. The manual layout is as follows:
Chapter 1. “Overview” – Shows a brief description of the EVB-LAN9252-DIG-IO.
Chapter 2. “Board Details & Configuration” – Includes details and instructions for using
the EVB-LAN9252-DIG-IO.
Chapter 3. “LAN9252 EEPROM Programming” – Includes details and instructions for
programming the LAN9252 EEPROM.
Appendix A. “EVB-LAN9252-DIG-IO Evaluation Board” – This appendix shows the
EVB-LAN9252-DIG-IO.
Appendix B. “EVB-LAN9252-DIG-IO Evaluation Board Schematics” – This appendix
shows the EVB-LAN9252-DIG-IO schematics.
Appendix C. “Bill of Materials (BOM)” – This appendix includes the
EVB-LAN9252-DIG-IO Bill of Materials (BOM).
2014 Microchip Technology Inc. Preliminary DS50002332A-page 7
EVB-LAN9252-DIG-IO ETHERCAT® DIG I/O USER’S GUIDE

CONVENTIONS USED IN THIS GUIDE

This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB
Emphasized text ...is the only compiler...
Initial caps A window the Output window
A dialog the Settings dialog A menu selection select Enable Programmer
Quotes A field name in a window or
dialog
Underlined, italic text with right angle bracket
Bold characters A dialog button Click OK
N‘Rnnnn A number in verilog format,
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code #define START
Italic Courier New A variable argument file.o, where file can be
Square brackets [ ] Optional arguments mcc18 [options] file
Curly brackets and pipe character: { | }
Ellipses... Replaces repeated text var_name [,
A menu path File>Save
A tab Click the Power tab
where N is the total number of digits, R is the radix and n is a digit.
Filenames autoexec.bat File paths c:\mcc18\h Keywords _asm, _endasm, static Command-line options -Opa+, -Opa- Bit values 0, 1 Constants 0xFF, ‘A’
Choice of mutually exclusive arguments; an OR selection
Represents code supplied by user
®
IDE User’s Guide
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options] errorlevel {0|1}
var_name...] void main (void)
{ ... }
DS50002332A-page 8 Preliminary  2014 Microchip Technology Inc.
Preface

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 produc-
tion programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included are nonproduction devel­opment programmers such as PICSTART Plus and PIC-kit 2 and 3.

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
2014 Microchip Technology Inc. Preliminary DS50002332A-page 9
EVB-LAN9252-DIG-IO ETHERCAT® DIG I/O USER’S GUIDE

DOCUMENT REVISION HISTORY

DS50002332A (December 2014)
• Initial Release of this Document.
DS50002332A-page 10 Preliminary  2014 Microchip Technology Inc.

1.1 INTRODUCTION

The LAN9252 is a 2-port EtherCAT® slave controller 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.
Each port receives an EtherCAT® frame, performs frame checking and forwards it to the next port. Time stamps of received frames are generated when they are received. The Loop-back function of each port forwards the frames to the next logical port if there is either no link at a port, if the port is not available, or if the loop is closed for that port. The Loop-back function of port 0 forwards the frames to the EtherCAT® Processing Unit. The loop settings can be controlled by the EtherCAT® master.
Packets are forwarded in the following order:
Port 0 -> EtherCAT® Processing Unit -> Port 1 -> Port 2.
The EtherCAT® Processing Unit (EPU) receives, analyzes and processes the Ether­CAT® data stream. The main purpose of the EtherCAT® Processing unit is to enable and coordinate access to the internal registers and the memory space of the ESC, which can be addressed both from the EtherCAT® master and from the local applica­tion. Data exchange between master and slave applications is comparable to a dual-ported memory (process memory), enhanced by special functions for consistency checking (SyncManager) and data mapping (FMMU). Each FMMU performs bitwise mapping of logical EtherCAT® system addresses to physical device addresses.
The scope of this document is to describe the EVB-LAN9252-DIG-IO setup, which sup­ports a Digital I/O Interface and corresponding jumper configurations. The LAN9252 is connected to an RJ45 Ethernet jack with integrated magnetics for 100BASE-TX con­nectivity. A simplified block diagram of the EVB-LAN9252-DIG-IO is shown in
Figure 1-1.
EVB-LAN9252-DIG-IO
ETHERCAT® DIG I/O
USER’S GUIDE

Chapter 1. Overview

2014 Microchip Technology Inc. Preliminary DS50002332A-page 11
EVB-LAN9252-DIG-IO EtherCAT® DIG I/O User’s Guide
Microchip
LAN9252
EEPROM
EVB-LAN9252-DIG-IO
Straps
Port 0 Port 1
Oscillator
Power
Supply
Module
Control Signals
5V
07815
07815
Jumper Selection
LEDs LEDs
Switches Switches
Digital I/O Circuit
100BASE-TX
Ethernet
Magnetics &
RJ45
100BASE-TX
Ethernet
Magnetics &
RJ45
Ethernet Ethernet
Fiber-
SFP
Port 0
Fiber-
SFP
Port 1

FIGURE 1-1: EVB-LAN9252-DIG-IO BLOCK DIAGRAM

1.2 REFERENCES

1.3 TERMS AND ABBREVIATIONS

Concepts and material available in the following documents may be helpful when read­ing this document. Visit www.microchip.com for the latest documentation.
• LAN9252 Data Sheet
• AN 8.13 Suggested Magnetics
• EVB-LAN9252-DIG-IO Schematics
IDE - Integrated Development Environment
ESC - EtherCAT® Slave Controller
EVB - Engineering Validation Board
HAL - Hardware Abstraction Layer
HBI - Host Bus Interface
SPI - Serial Protocol Interface
SSC - Slave Stack Code
DS50002332A-page 12 Preliminary  2014 Microchip Technology Inc.
Loading...
+ 25 hidden pages