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
DS50002427A-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
Page 3
Object of Declaration: EVB-LAN9252-PICtail Add-On Board
DS50002427A-page 6 2015 Microchip Technology Inc.
Page 7
EVB-LAN9252-PICTAIL™
ADD-ON BOARD
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-PICtail Add-On Board. 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-PICtail Add-On Board as a
development tool for the LAN9252 and its connectivity to the Explorer 16 development
platform. The manual layout is as follows:
• Chapter 1. “Overview” – Shows a brief description of the EVB-LAN9252-PICtail
Add-On Board.
• Chapter 2. “Board Details” – Describes the various board features of the
EVB-LAN9252-PICtail Add-On Board, including jumpers, LEDs, test points, system connections, and switches.
• Chapter 3. “Board Configuration” – Provides information about the
EVB-LAN9252-PICtail Add-On Board configuration.
• Appendix A. “EVB-LAN9252-PICtail Add-On Board” – This appendix shows
the EVB-LAN9252-PICtail Add-On Board.
• Appendix B. “Schematics” – This appendix shows the EVB-LAN9252-PICtail
Add-On Board schematics.
• Appendix C. “Bill of Materials (BOM)” – This appendix includes the
EVB-LAN9252-PICtail Add-On Board Bill of Materials (BOM).
Choice of mutually exclusive
arguments; an OR selection
Represents code supplied by
user
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
DS50002427A-page 8 2015 Microchip Technology Inc.
Page 9
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
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.
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
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
Revision A (November 2015)
• Initial Release of this Document.
DS50002427A-page 10 2015 Microchip Technology Inc.
Page 11
1.1INTRODUCTION
PICtail™ Plus Interface
Straps
GPIOs /LEDs
I2C EEPROM
10/100 Ethernet
Magnetics and RJ45
LAN9252
10/100 Ethernet
Magnetics and RJ45
Power Block
Crystal
+5V
EVB-LAN9252-PICTAIL™
ADD-ON BOARD
USER’S GUIDE
Chapter 1. Overview
EVB-LAN9252-PICtail™ Add-On Board is used for evaluating Microchip Technology’s
LAN9252, a 2/3-port EtherCAT
is an expansion board compatible with Explorer 16 development platform.
This document details the EVB-LAN9252-PICtail Add-On Board features and its connectivity to the Explorer 16 development platform. This EVB currently supports 3
plug-in modules (PIMs), namely [MA320003 (PIC32MX795F512L), MA240011
(PIC24FJ128GA010), and MA320012 (PIC32MZxxxxECx100)], on this platform.
Concepts and material available in the following documents may be helpful when reading this document. Visit www.microchip.com for the latest documentation.
DocumentLocation
LAN9252 DatasheetVisit www.microchip.com.
AN8-13 Suggested Magnetics
EVB-LAN9252-PICtail
Add-On Board Schematic
1.3TERMS AND ABBREVIATIONS
• EVB - Evaluation Board
• DNP - Do Not Populate
• 100BASE-TX- 100 Mbps Fast Ethernet, IEEE 802.3u Compliant
DS50002427A-page 12 2015 Microchip Technology Inc.
Page 13
EVB-LAN9252-PICTAIL™
ADD-ON BOARD
USER’S GUIDE
Chapter 2. Board Details
The following sections describe the various board features, including jumpers, LEDs,
test points, system connections, and switches. A top view of the EVB-LAN9252-PICtail
Add-On Board is shown in Figure 2-1.
Power is supplied as +5V and +3.3V to the board via the PICtail™ Plus interface from
the Explorer 16 Development Board. LAN9252 has an internal 1.2 V regulator which
supplies power to the internal core logic.
2.2PICTAIL™ PLUS INTERFACE
Plug the EVB-LAN9252-PICtail Add-On Board J1 edge connector into the topmost
position of the J5 slot on the Explorer 16 Board, as shown in Figure 2-2.
FIGURE 2-2:EVB-LAN9252-PICTAIL ADD-ON BOARD WITH EXPLORER
16 DEVELOPMENT BOARD
The pin details of the connector J1 of EVB-LAN9252-PICtail Add-On Board are enumerated in Table 2-1.
TABLE 2-1:J1 CONNECTOR PIN DETAILS
Pin NumberSignalPin NumberSignalPin NumberSignal
1MX_SCS4NC7SDI
2NC5MX_SDO8NC
3SCK6NC9GND
DS50002427A-page 14 2015 Microchip Technology Inc.
Page 15
Board Details
TABLE 2-1:J1 CONNECTOR PIN DETAILS (CONTINUED)
Pin NumberSignalPin NumberSignalPin NumberSignal
10GND47GND86NC
11NC4 8GN D87N C
12NC49IRQ_MX-
_PIC24
13NC50NC89NC
14NC51NC90NC
15NC52NC91NC
16NC533V392NC
17SYNC1/LATCH1543V393SQI_D0
18SYNC0/LATCH0555V94NC
19NC565V95NC
20NC57NC96NC
213V358NC97WR/ENB
223V359NC98RD/RD_WR
235V60D899D14
245V61NC100D15
25NC62D9101NC
26NC65NC102SQI_CS0
27NC66SQI_D2103CS
28D1167SQI_D1104NC
29NC68NC105D12
30D1069NC106D13
31NC70NC1073V3
32NC71NC1083V3
33A272NC109D0
34NC73SQI_SCK110D1
35NC74SQI_D3111D2
36IRQ_MZ75NC112D3
37A476NC113D4
38NC77NC114D5
39A378NC115D6
40NC79MZ_SDO116D7
41GND80NC117NC
42GND81NC118NC
43NC82MZ_SCS119GND
44NC83ALEHI_A1_J5 120GND
45NC84ALELO_A0_J
5
46NC85NC
88NC
2.3CLOCK
The LAN9252 requires a fixed-frequency 25 MHz clock source for use by the internal
clock oscillator and phase-locked loop (PLL). This is typically provided by attaching a
25 MHz crystal to the OSCI and OSCO pins.
DS50002427A-page 16 2015 Microchip Technology Inc.
Page 17
Chapter 3. Board Configuration
3.1STRAPS AND LEDS
The following tables describe the default settings and jumper descriptions for the
EVB-LAN9252-PICtail Add-On Board. These defaults are the recommended configurations for evaluation of the LAN9252. These settings may be changed as needed,
however, any deviation from the defaults settings should be approached with care and
knowledge of the schematics and datasheet. An incorrect jumper setting may disable
the board.
3.1.1Chip Mode
By default, EVB-LAN9252-PICtail Add-On Board supports only the 2-port mode
(CHIP_MODE0 and CHIP_MODE1 signals pulled down).
3.1.2EEPROM Size Configuration
By default, the EEPROM size in this EVB-LAN9252-PICtail Add-On Board is 512k.
EVB-LAN9252-PICTAIL™
ADD-ON BOARD
USER’S GUIDE
3.1.3LEDs
D1 LED is used as a RUN indicator (green) to show the AL status of the EtherCAT State
Machine (ESM), as detailed in Ta bl e 3 -1 .
TABLE 3-1:D1 RUN LED STATUS INDICATOR
StateDescription
OffThe device is in the INITIALIZATION state
Blinking (on 200ms, off 200ms)The device is in the PRE-OPERATIONAL
Single Flash (on 200ms, off 1000ms)The device is in the SAFE-OPERATIONAL
OnThe device is in the OPERATIONAL state
Flickering (on 50ms, off 50ms)The device is booting and has not yet entered
3.2PROCESS DATA INTERFACE
The Process Data Interface (PDI) is used to communicate with external system-on-chip
(SoC). The EVB-LAN9252-PICtail Add-On Board supports three different PDI configurations:
• HBI (8-bit mode only)
• SPI (default)
• SQI [supported only with MA320003 (PIC32MX795F512L)]
The following sections detail the hardware configurations required for the
EVB-LAN9252-PICtail Add-On Board for all three PDI options.
state
state
the INITIALIZATION state, or the device is in
the BOOTSTRAP state and firmware download is in progress. (Optional. Off when not
implemented.)
Based on the PIMs on the Explorer 16 Development Board [MA320003 (PIC32MX795F512L), MA240011 (PIC24FJ128GA010) or with MA320012 (PIC32MZxxxxECx100)] the following configuration in Ta bl e 3 -2 has to be done in J3 for Interrupt
Request (IRQ) signal.
TABLE 3-2:IRQ SELECTION
Short Pins (J3)Plug-In Board with Explorer 16 Development Board
2-3MA320003 (PIC32MX795F512L)
MA240011 (PIC24FJ128GA010)
1-2MA320012 (PIC32MZxxxxECx100)
3.2.2HBI Mode
The Host Bus Interface (HBI) module provides a high-speed asynchronous slave interface that facilitates communication between LAN9252 and the host system. The HBI
allows access to the System CSRs and the internal FIFOs and memories, and also
handles byte swapping based on the endianness select.
To select HBI Mode, configuration should be done based on Tab le 3- 3. However, to further configure in indexed or multiplexed mode, refer to the subsections below.
TABLE 3-3:HBI MODE SWITCH CONFIGURATION
SwitchShort Pins
SW2 (D9 and D5)1-2 & 4-5
SW3 (D0 and D1)1-2 & 4-5
SW4 (D2 and D3)1-2 & 4-5
3.2.2.1HBI MULTIPLEXED MODE CONFIGURATION
In Multiplexed Address/Data mode, the address, FIFO Direct Select and endianness
select inputs are shared with the data bus.
To operate in the HBI Multiplexed mode, the following switch configurations in Ta bl e 3 -4
must be enabled.
In Indexed Address mode, access to the internal registers and memory of the device
are indirectly mapped using Index and Data registers.
DS50002427A-page 18 2015 Microchip Technology Inc.
Page 19
Board Configuration
To operate in the HBI Multiplexed mode, the following switch configurations in Ta bl e 3 - 6
must be enabled.
TABLE 3-6:HBI INDEXED MODE SWITCH CONFIGURATION
SwitchShort Pins
SW9 (A0 and A1)1-2 & 4-5
SW5 (A2 and A1)1-2 & 4-5
Along with the switch configuration, the following jumper configuration in Tab le 3 -7
must be done for 8-bit/16-bit mode.
TABLE 3-7:HBI INDEXED MODE JUMPER CONFIGURATION
JumperShort PinsMode
J2 (D15)2-3Indexed 8-bit
J3 (A0)1-2Indexed 16-bit
3.2.3SPI/SQI Mode
The SPI/SQI Slave module provides a low pin count synchronous slave interface that
facilitates communication between the device and a host system. The SPI/SQI Slave
allows access to the System CSRs and the internal FIFOs and memories. It supports
single and multiple register read and write commands with incrementing, decrementing
and static addressing. Single-bit lanes are supported in SPI mode.
To select SPI/SQI Mode, configuration should be done as in Ta bl e 3 -8 .
TABLE 3-8:SPI/SQI MODE SWITCH CONFIGURATION
JumperShort Pins
SW2 (SPI/SQI_CLK and SCS#)2-3 & 5-6
SW3 (SI/SIO0 and SO/SIO1)2-3 & 5-6
SW4 (SQI_D2 and SQI_D3)2-3 & 5-6
3.2.3.1SPI MODE CONFIGURATION
The following switches need to be configured as in Tab le 3 -9 to enable the SPI mode
to communicate with the Explorer 16 Development Board.
TABLE 3-9:SPI MODE SWITCH CONFIGURATION
JumperShort Pins
SW6 (SCK and SDI)2-3 & 5-6
SW7 (SCS and SO)2-3 & 5-6
Based on the plug-in boards on the Explorer 16 Development Board, [MA320003
(PIC32MX795F512L), MA240011 (PIC24FJ128GA010) or with MA320012
(PIC32MZxxxxECx100)] the following configuration in Ta bl e 3 -1 0 has to be done in
SW8.
TABLE 3-10:SPI CONFIGURATION
Short PinsPlug-In Board with Explorer 16 Development Board