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.
Information contained in this publication regarding device
applications and t he lik e is provided only for your convenience
and may be su perseded by upda t es . It is y our 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 supp ort and/or safety ap plications is entir ely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless M icrochip from any and all dama ges, claims,
suits, or expenses re sulting from such use. No licens es are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights unless otherwise stated.
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
QUALITY MANAGEMENT S
Trademarks
The Microchip name and logo, the Microchip logo, AnyRate, AVR,
AVR logo, AVR Freaks, BeaconThings, BitCloud, CryptoMemory,
CryptoRF , dsPIC, FlashFlex, flexPWR, Held o, JukeBlox, K
EELOQ logo, Kleer, LANCheck, LINK MD, maXSty lus,
K
maXTouch, MediaLB, megaAVR, MOST, MOST logo, MPLAB,
OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, Prochip
Designer, QTouch, RightTouch, SAM-BA, SpyNIC, SST, SST
Logo, SuperFlash, tinyAVR, UNI/O, and XMEGA are registered
trademarks of Microchip Technology Incorporated in the U.S.A.
and other countries.
ClockWorks, The Embedded Control Solutions Company,
EtherSynch, Hyper Speed Control, HyperLight Load, IntelliMOS,
mTouch, Precision Edge, and Quiet-Wire are registered
trademarks of Microchip Technology Incorporated in the U.S.A.
Adjacent Key Suppress i on, AKS, Analog-for-the-Digital Age, A ny
Capacitor, AnyIn, AnyOut, BodyCom, chipKIT, chipKIT logo,
CodeGuard, CryptoAuthentication, CryptoCompanion,
CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average
Matching, DAM, EC A N , Et he r GREEN, In-Circuit Se r i al
Programming, ICSP, Inter-Chip Connectivit y, JitterBlocker,
KleerNet, KleerNet logo , Mindi, MiWi, motorBench, MP ASM, MPF,
MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach,
Omniscient Code Generation, PICDEM, PICDEM.net, PICkit,
PICtail, PureSilicon, QMatrix, RightTouch logo, REAL ICE, Ripple
Blocker, SAM-ICE, Serial Quad I/O, SMART-I.S., SQI,
SuperSwitcher, SuperS witcher II, Total Endurance, TSHARC,
USBCheck, V ariSense, ViewS pan, WiperLock , Wireless DNA, and
ZENA are trademarks of Microc hip T echnology Incorporated in the
U.S.A. and other countr ies.
SQTP is a service mark of Microchip Technology Incorporated in
the U.S.A.
Silicon Stora ge Technology is a registered trademark o f Microchip
Technology Inc. in other countries.
GestIC is a registered trademark of Microchip Technology
Germany II GmbH & Co. KG , a subsidiary of Microchip T echnolog y
Inc., in other countries.
All other trademarks mentioned herein are property of their
respective companies.
DS50002556A-page 2 2017 Microchip Technology Inc.
EU Declaration of Conformity
This declaration of conformity is issued by the manufacturer.
The development/evaluation tool is designed to be used for research and development in a laboratory environment. This
development/evaluation tool is not a Finished Appliance, nor is it intended for incorporation into Finished Appliances that are made
commercially available as single functional units to end users under EU EMC Directive 2004/108/EC and as supported by the European
Commission's Guide for the EMC Directive 2004/108/EC (8th February 2010).
This development/evaluation tool complies with EU RoHS2 Directive 2011/65/EU.
This development/evaluation tool, when incorporating wireless and radio-telecom functionality, is in compliance with the essential
requirement and other relevant provisions of the R&TTE Directive 1999/5/EC and the FCC rules as stated in the declaration of conformity
provided in the module datasheet and the module product page available at www.microchip.com.
For information regarding the exclusive, limited warranties applicable to Microchip products, please see Microchip’s standard terms and
conditions of sale, which are printed on our sales documentation and available at www.microchip.com.
Signed for and on behalf of Microchip Technology Inc. at Chandler, Arizona, USA.
Object of Declaration: MCP251XFD CAN FD Motherboard
C.3 Board – Top Vie w ............ .. .......................................................................... 37
C.4 Board – Bott o m Vi e w ......... .................................................................... ...... 38
Worldwide Sales and Service .....................................................................................39
DS50002556A-page 6 2017 Microchip Technology Inc.
MCP251XFD CAN FD MOTHERBOARD
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 website
(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 p age number. The numbering convention for the DS number is
“DSXXXXXXXA”, where “XXXXXXX” 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.
INTRODUCTION
®
IDE online help.
This chapter contains general information that will be useful to know before using the
MCP251XFD CAN FD Motherboard. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Website
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the MCP251XFD CAN FD Motherboard as a
demonstration board to evaluate the MCP2517FD device. The manual layout is as
follows:
• Chapter 1. “MCP251XFD CAN FD Motherboard” – Provides important
information about the MCP251XFD CAN FD Motherboard.
• Chapter 2. “Hardwa re ” – Includes a detailed description of the demo board and
instructions on how to use it.
• Chapter 3. “Software” – Helps getting started on firmware development.
• Appendix A. “Schematics and Layout” – Schematics and layout diagrams of
the MCP251XFD CAN FD Motherboard.
• Appendix B. “Bill of Materials (BOM)” – Lists the parts used to build the
MCP251XFD CAN FD Motherboard.
• Appendix C. “MCP2517FD click Board Schematics” – Schematics and layout
diagrams of the MCP2517FD click Board.
Choice of mut ually exclus ive
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)
{ ...
}
®
IDE User’s Guide
DS50002556A-page 8 2017 Microchip Technology Inc.
RECOMMENDED READING
This user's guide describes how to use MCP251XFD CAN FD Motherboard. The
following Microchip documents are available and recommended as supplemental
reference resources:
• MCP2517FD Data Sheet - “External CAN FD Controller with SPI Interface”
(DS20005688)
This data sheet provides detailed information regarding the MCP2517FD device.
• MCP2517FD FRM - “MCP2517FD Family Reference Manual” (DS2005678)
This FRM provides even more detailed information regarding the MCP2517FD.
THE MICROCHIP WEBSITE
Microchip provides on-line support via our website at www.mic rochip.com. This website
is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the website 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, on-line 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
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 website at: http://support.microchip.com.
DS50002556A-page 10 2017 Microchip Technology Inc.
MCP251XFD CAN FD MOTHERBOARD
USER’S GUIDE
Chapter 1. MCP251XFD CAN FD Motherboard
1.1INTRODUCTION
The MCP251XFD CAN FD Motherboard provides a simple, low-cost board to evaluate
the MCP2517FD family of devices. The board features one mikroBUS™ socket to
accommodate the MCP2517FD click Board.
The MCP251XFD CAN FD Motherboard together with the MCP2517FD click Board
can be used to implement a CAN FD node.
The MCP251XFD CAN FD Motherboard contains a PIC32MX470F512H
microcontroller with a Service Provider Interface (SPI) peripheral. The microcontroller
controls the MCP2517F D via the SPI interfac e.
A firmware Application Program Interface (API) is available for rapid application
development, which is written in C programming language for MPLAB Harmony
Integrated Software Framework. It can be easily ported to other microcontrollers.
1.2RECOMMENDED ITEMS TO IMPLEMENT A CAN FD NODE
In order to implement a CAN FD node using the MCP2517FD, the following items are
recommended:
Figure 1-1 illustrates the main features of the MCP251XFD CAN FD Motherboard:
1. PIC32MX470F512H microcontroller
2. mikroBUS socket
3. Debug headers for monitoring the MCP2517FD I/O
4. DSC1121 8 MHz MEMS Clock Generator
5. USB connector to supply regulated +5V DC to the LDO and mikroBUS socket
6. Test loops to supply regulated +5V DC to the LDO and mikroBUS socket
7. Jumper to select between USB and test loop power source
8. 3.3V LDO to supply microcontroller and mikroBUS socket, and power indicator
LEDs
9. Push button switches for user-defined inputs
10. Eight indicator LEDs
11. Microcontroller Reset push button
12. Six-pin interface for the PICkit™ 3 Programmer/Debugger
FIGURE 1-1:MCP251XFD CAN FD Motherboard.
DS50002556A-page 12 2017 Microchip Technology Inc.
1.5MCP2517FD CLICK BOARD FEATURES
1
2
4
3
5
6
The ATA6563 may not require the ESD protection diodes and capacitors.
The MCP2517FD click Board contains the MCP2517FD and a CAN FD transceiver.
The board can be connected to the CAN FD bus using a DB9 connector. The click
board is available for purchase from https://shop.mikroe.com/mcp2517fd-click
Figure 1-2 illustrates the main features of the MCP2517FD click Board:
1. MCP2517FD CAN FD Controller with SPI Interface
2. ATA6563 CAN FD Transceiver
3. DSC2311 20/40 MHz Dual MEMS Clock Generator
4. ESD protection and termination
5. DB9 CAN connector
6. mikroBUS click connector with MCP2517FD specific I/O pin assignment
DS50002556A-page 14 2017 Microchip Technology Inc.
MCP251XFD CAN FD MOTHERBOARD
Chapter 2. Hardware
2.1HARDWARE FEATURES
2.1.1Microcontroller
USER’S GUIDE
The MCP251XFD CAN FD Motherboard accommodates a PIC32MX470F512H
microcontroller with a 120 MHz/150 DMIPS MIPS32
controls the MCP2517FD via the SPI interface. The interrupt pins of the MCP2517FD
are connected to the microcontroller input pins. The microcontroller can control the
standby pin of the CAN FD transceiver on the MCP2517FD click Board using the STBY
output.
®
M4K® core. The microcontroller
2.1.2Clock Generator
The MCP251XFD CAN FD Motherboard uses the DSC1121, which is a Microchip
MEMS clock generator, as the default clock source into the microcontroller. The
DSC1121 on this board has been programmed to generate an output frequency of
8 MHz and is offered in a small 2.5 x 2.0 mm package.
2.1.3Switches
Five push button switches provide the following functions:
• S1: Active-low switch
• S2: Active-low switch
• S3: Active-low switch
• S4: Active-low switch
• RST (S5): Active-low MCLR
When Idle, the switches are pulled high; when pressed, they are grounded.
switch to hard reset the microcontroller
2.1.4LEDs
Eight LEDs (D1 through D8) are available. Set the corresponding microcontroller
output pins high to light the LEDs.
2.1.5PICkit™ 3 In-Circuit Debugger connector
Connector J11 provides the footprint for a 6-pin PICkit™ 3 interface.
2.1.6MikroBUS interface
Figure 2-1 shows the signal assignment to the mikroBUS connector. The MCP251XFD
CAN FD Motherboard is targeted to be used with the MCP2517FD click Board, but it
could also be used with a variety of other click boards.
The MCP251XFD CAN FD Motherboard must be powered using a +5V DC regulated
power source. The user has two options to connect the power:
• USB connector (J14), or
• Test loops: 5VIN and GND1.
The jumper (JP1) is used to select between the power sources, see Table 2-1.
TABLE 2-1:POWER SOURCE JUMPERS
IndexDescription
JP1• Powers-up the MCP251XFD CAN FD Motherboard from USB or an external
5V power supply between 5VIN and GND1.
• Short-circuit pins 2 and 3 (top and middle) to select VBUS, or pins 1 and 2
(middle and bottom) to select the external power supply.
(1)
JP2
Note 1: Jumper JP3 is not populated, however, it is short-circuited on the bottom layer (back) of the board. The
Could be used to select 5V VDD for a different microcontroller.
U1 is a 3.3V microcontroller.
trace can be cut in order to disconnec t it.
Default
Configuration
VBUS
2.3RESISTOR JUMPER SETTING ON MCP2517FD CLICK BOARD
Table 2-2 briefly describes the functions of all the board's resistor jumpers.
TABLE 2-2:JUMPER DESCRIPTIONS
IndexDescription
VIO_SELSelects 3.3V o r 5V for VIO of th e CAN FD transc eiver.3.3V
20/40 MHz The OSC1 of the MCP2517FD can be connected to the 20 or 40 MHz clock
output of U3.
STBYThe STBY pin of the CAN FD transceiver can be grounded (transceiver al ways
STBY_SEL Selects between the STBY output of the microcontroller or the I
DS50002556A-page 16 2017 Microchip Technology Inc.
in Normal mode); or controlled by the microcontroller or MCP2517FD.
of the MCP2517FD.
NT0/XSTBY pin
Default
Configuration
40 MHz
Grounded
(Normal mode)
Microcontroller
(STBY header)
2.4CONNECTING THE BOARD
Figure 2-2 illustrates an example CAN FD network. The MCP2517FD click Board is
plugged into the MCP251XFD CAN FD Motherboard. A CAN FD tool from K2L is
connected to the MCP2517FD click Board using twisted pair wires.
The demonstration board is powered using a Mini-USB cable. Alternatively, the board
can be powered using a 5V power supply connected between 5VIN and GND1.
There are two terminations on the CAN bus:
• Two 60 Ohm resistors in series on the MCP2517FD click Board.
• A 120 Ohm termination resistor at the connector of the K2L OptoLyzer
FD tool.
2.5OPERATION
The user can write firmware for the MCU in order to create a custom CAN FD node.
Check the MCP2517FD product page for the firmware API and for code examples.
The RST button ca n be used to reset the MCU. Switches S1-S4 ca n be used t o trigger
the transmission of CAN FD messages to the CAN FD tool. LEDs D1-D8 can be
controlled by the CAN F D tool using CAN FD messages.
All I/O pins of the MCP2517FD are easily accessible through pin headers.
The differential CAN bus signals, CAN_H and CAN_L, are accessible on the
MCP2517FD click Board, or on the DB9 connector: CAN_H on pin 7, and CAN_L on
pin 2.
®
MOCCA
FIGURE 2-2:Connecting the MCP251XFD CAN FD Motherboard.
DS50002556A-page 18 2017 Microchip Technology Inc.
MCP251XFD CAN FD MOTHERBOARD
Chapter 3. Software
3.1INTRODUCTION
The MCP251xFD CAN FD Motherboard can be used with MPLAB X Integrated
Development Environment (IDE), which is available free on Microchip’s website at
www.microchip.com. This software is used for programming and debugging the
PIC32MX470F512H on the MCP251xFD CAN FD Motherboard.
3.2SOFTWARE OVERVIEW
The PICkit™ 3 through MPLAB X, is a low-voltage in-circuit debugger, as well as a
low-voltage programmer, for the PIC32MX470F512H. In-circuit debugging allows the
user to run, examine and modify programs for the microcontroller embedded in the
board hardware. This facilitates the debugging of firmware and hardware concurrently.
Use the in-circuit debugger with MPLAB X IDE to run, stop and single-step through
programs; breakpoints can be set and the microcontroller can be reset. When the
microcontroller stops, the contents of the registers are available for examination and
modification.