2003 Microchip Technology Inc. DS51416A
MCP2515
Development Kit
Users Guide
M
DS51416A-page ii 2003 Microchip Technology Inc.
Information contained in this publication regarding device
applications and the like is intended through suggestion only
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
No representation or warranty is given and no liability is
assumed by Microchip Technology Incorporated with respect
to the accuracy or use of such information, or infringement of
patents or other intellectual property rights arising from such
use or otherwise. Use of Microchip’s products as critical
components in life support systems is not authorized except
with express written approval by Microchip. No licenses are
conveyed, implicitly or otherwise, under any intellectual
property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
KEELOQ, MPLAB, PIC, PICmicro, PICSTART, PRO MATE and
PowerSmart are registered trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries.
FilterLab, microID, MXDEV, MXLAB, PICMASTER, SEEVAL
and The Embedded Control Solutions Company are
registered trademarks of Microchip Technology Incorporated
in the U.S.A.
Accuron, Application Maestro, dsPICDEM, dsPICDEM.net,
ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-
Circuit Serial Programming, ICSP, ICEPIC, microPort,
Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM,
PICC, PICkit, PICDEM, PICDEM.net, PowerCal, PowerInfo,
PowerMate, PowerTool, rfLAB, rfPIC, Select Mode,
SmartSensor, SmartShunt, SmartTel and Total Endurance are
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
Serialized Quick Turn Programming (SQTP) is a service mark
of Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
© 2003, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Note the following details of the code protection feature on Microchip devices:
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.
Microchip received QS-9000 quality system
certification for its worldwide headquarters,
design and wafer fabrication facilities in
Chandler and Tempe, Arizona in July 1999
and Mountain View, California in March 2002.
The Company’s quality system processes and
procedures are QS-9000 compliant for its
PICmicro® 8-bit MCUs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals,
non-volatile memory and analog products. In
addition, Microchip’s quality system for the
design and manufacture of development
systems is ISO 9001 certified.
MMCP2515 DEVELOPMENT KIT
USERS GUIDE
Table of Contents
2003 Microchip Technology Inc. DS51416A-page iii
Chapter 1. Introduction
1.1 Introduction ..................................................................................... 1
1.2 Highlights ........................................................................................ 1
1.3 What the MCP2515 Development Kit Is ......................................... 1
1.4 Multiple Uses for the MCP2515 Development Kit ........................... 2
1.5 How the MCP2515 Development Kit Helps You ............................. 3
1.6 Host Computer System Requirements ........................................... 3
Chapter 2. Installation
2.1 Introduction ..................................................................................... 5
2.2 Highlights ........................................................................................ 5
2.3 MCP2515 Development Kit Components ....................................... 6
2.4 Installing the Hardware ................................................................... 7
2.5 Installing the Software .................................................................... 7
Chapter 3. Getting Started
3.1 Introduction ..................................................................................... 9
3.2 Highlights ........................................................................................ 9
3.3 Software Overview .......................................................................... 9
3.4 Starting the Program ..................................................................... 12
3.5 Selecting the LPT Port .................................................................. 12
3.6 Hardware Overview ...................................................................... 13
Chapter 4. The Software Templates
4.1 Introduction ................................................................................... 15
4.2 Highlights ...................................................................................... 15
4.3 MCP2515 Register View Template ............................................... 15
4.4 Basic Template ............................................................................. 22
4.5 Menus ........................................................................................... 27
MCP2510 Development Kit User’s Guide
DS51416A-page iv 2003 Microchip Technology Inc.
Chapter 5. Reconfigure the Hardware
5.1 Introduction ...................................................................................29
5.2 Highlights ......................................................................................29
5.3 Node Configurations .....................................................................29
5.4 Oscillator Configurations ...............................................................30
5.5 The Jumper Settings .....................................................................31
Appendix A. Schematics
A.1 Introduction ...................................................................................33
A.2 Schematic .....................................................................................34
Appendix B. FAQs on Configuring the MCP2515
B.1 Introduction ...................................................................................37
B.2 FAQs .............................................................................................37
MMCP2515 DEVELOPMENT KIT
USERS GUIDE
2003 Microchip Technology Inc. DS51416A-page 1
Chapter 1. Introduction
1.1 INTRODUCTION
This user's guide is written assuming some basic knowledge of the CAN protocol and
the terms defined by the CAN protocol. Those users who do not have this basic CAN
knowledge are encouraged to read Microchip's Application Note 713, “CAN Basics”
(DS00713), the MCP2515 data sheet (DS21801) and/or the Bosch™ GmbH CAN
specification, version 2.0. AN713 and the MCP2510 data sheet are available on
Microchip's web site at www.microchip.com.
1.2 HIGHLIGHTS
This chapter discusses:
What the MCP2515 Development Kit is
Multiple uses for the MCP2515 Development Kit
How the MCP2515 Development Kit helps you
Host computer system requirements
1.3 WHAT THE MCP2515 DEVELOPMENT KIT IS
The MCP2515 Development Kit is a two-node Controller Area Network (CAN) tool that
can be used in the evaluation/implementation of the MCP2515 stand-alone CAN con-
troller. The software allows manipulation of the MCP2515 at the bit and byte levels with
one template, while providing high-level control with a second template.
One node is controlled by the PC that acts as a microcontroller using the provided
software. This node can be used for basic MCP2515 evaluation/development and
will be referred to as “node 0” throughout this document.
The second node is controlled by a microcontroller that is programed by the user
as part of device validation and/or system development.
The two nodes are connected via a CAN bus that is also routed off-board through a
connector, allowing the target board to be connected to an external CAN bus. This
node will be referred to as “node 1” throughout this document.
MCP2515 Development Kit User’s Guide
DS51416A-page 2 2003 Microchip Technology Inc.
1.4 MULTIPLE USES FOR THE MCP2515 DEVELOPMENT KIT
The MCP2515 Development Kit is used for evaluation of CAN node development uti-
lizing the MCP2515. The tool is ideal for beginner CAN designers and/or those new to
the MCP2515. Basic input and output functionality can be easily demonstrated by
transmitting and receiving CAN messages.
The MCP2515 Development Kit also has multiple board configurations (via cutting
traces between jumper holes) that allow the user to customize as needed.
1.4.1 Use as an Evaluation Tool
Evaluation of the CAN protocol and the MCP2515 is easily accomplished by utilizing
the software supplied with the kit. The software controls only one of the two nodes on
the board. There are two templates that can be used, depending on what end result is
desired. See Chapter 3 ”Getting Started” for more details on the templates.
1. The Register template is used primarily for configuring/controlling individual reg-
isters in the MCP2515. All of the registers are modifiable, both bit-by-bit and
byte-by-byte. This template allows the user to manipulate the MCP2515 registers
and observe the affect on functionality. Different configurations can be set up and
tested. Communication on the CAN bus is, typically, of secondary importance in
this template.
2. The Basic template is designed to observe the MCP2515 while on a CAN bus.
Direct register manipulation is not possible with this template, though bit rates
and messages can be changed. Timed transmissions can also be achieved
using this template. This template also serves as a simple bus monitor.
1.4.2 Use as a Development Tool
The MCP2515 Developer's Tool can assist in development of a MCP2515-based CAN
node by utilizing node 1, either by itself, or in conjunction with node 0. Example, node 0
could be used as a simple bus monitor (using the Basic template) in order to monitor the
development of node 1 (microcontroller node).
Node 0 may also be used to set/verify bit timings, masks and filters.
Introduction
2003 Microchip Technology Inc. DS51416A-page 3
1.4.3 Multiple Configurations Possible
There are multiple board configurations that give the user versatility in node
development/evaluation.
The board has three oscillator sockets, allowing multiple oscillator configurations.
The board has multiple CAN bus configurations (see Chapter 5 “Reconfigure
the Hardware”).
Prototyping areas are available to allow the use of other MCUs that are not
supported by the provided sockets and to change the CANs physical layer.
Some of the configurations are achieved by trace cutting and installing jumpers. The
board configurations and jumper locations are discussed in detail in Chapters 5 and 6.
1.5 HOW THE MCP2515 DEVELOPMENT KIT HELPS YOU
The MCP2515 Development Kit can help module and system designers get up to
speed with the MCP2515 and aids in the development of the MCP2515 into a CAN bus.
By using this tool, the time to design completion can be greatly reduced. Furthermore,
the multiple configurations makes development versatile and efficient.
1.6 HOST COMPUTER SYSTEM REQUIREMENTS
The software will run on Windows® 95/98, Windows NTSM/2000SM/XPSM. Windows XP
requires drivers (port95nt.exe) that are downloadable from the Kvaser web site
(www.kvaser.se) or by searching the internet for “port95nt”. The port95nt software
provides drivers for I/O access. The software can be installed with the minimal
configuration by selecting custom install and checking only the driver install box.
MCP2515 Development Kit User’s Guide
DS51416A-page 4 2003 Microchip Technology Inc.
NOTES:
MMCP2515 DEVELOPMENT KIT
USERS GUIDE
2003 Microchip Technology Inc. DS51416A-page 5
Chapter 2. Installation
2.1 INTRODUCTION
This chapter describes the procedure for installing the MCP2515 Development Kit.
2.2 HIGHLIGHTS
The items discussed in this chapter are:
MCP2515 Development Kit components
Installing the hardware
Installing the software
MCP2515 Development Kit User’s Guide
DS51416A-page 6 2003 Microchip Technology Inc.
2.3 MCP2515 DEVELOPMENT KIT COMPONENTS
The MCP2515 Development Kit consists of:
MCP2515 Development Board (contains PICmicro® MCU with demo firmware)
Male-to-male DB25 cable
CD-ROM with program software, Users Guide and other supporting documents
and code samples (forthcoming)
Power cable and adapter
Microchip Technical Library CD-ROM
FIGURE 2-1: MCP2515 DEVELOPMENT KIT COMPONENTS
Installation
2003 Microchip Technology Inc. DS51416A-page 7
2.4 INSTALLING THE HARDWARE
2.4.1 Required
The target board is connected to the PC via the provided 25-pin parallel cable (a stan-
dard male-to-male DB25 cable). LPT addresses supported are 0x3BC, 0x378 and
0x278.
Power to the target board is supplied by the included 9V power adapter.
2.4.2 Optional
There are two DB9 connectors:
One is a RS-232 interface for connecting to the PC as applications permit. This con-
nector is connected to node 1 and is typically used during PICmicro MCU development
to assist the user designing and/or debugging (e.g., it may be used to print register
and/or receive buffer contents to the PC screen for debugging).
The other connector is a CAN bus interface that can be used to connect the board to
an existing CAN bus. The pinout for this connector follows the defacto standard
recommended pinout of pin 7 = CANH and pin 2 = CANL.
FIGURE 2-2: DB9 CAN BUS CONNECTOR
2.5 INSTALLING THE SOFTWARE
Insert the CD into the PC. Click the Start button and select Run. Enter the path to the
file wc32n.exe or select Browse and find the file. Alternate method: Through Win-
dows Explorer®, run the file named wc32n.exe. Follow the instructions for installing
the software program.
1
2
3
4
5
9
8
7
6
Not Connected
CANH
Not Connected
In Use
Not Connected
CANL
In Use
In Use
Not Connected
Note: If installing on a Windows NT/2000/XP platform, third party drivers must be
installed to allow I/O access to the parallel port. Refer to Section 1.6 “Host
Computer System Requirements”.
MCP2515 Development Kit User’s Guide
DS51416A-page 8 2003 Microchip Technology Inc.
NOTES:
MMCP2515 DEVELOPMENT KIT
USERS GUIDE
2003 Microchip Technology Inc. DS51416A-page 9
Chapter 3. Getting Started
3.1 INTRODUCTION
This chapter explains how to set up the MCP2515 Development Kit for basic evaluation
operation.
3.2 HIGHLIGHTS
The items discussed in this chapter are:
Software Overview
Starting the Program
Selecting the LPT Port
Hardware Overview
3.3 SOFTWARE OVERVIEW
The software is an easy-to-use program with two templates that perform different
functions. Chapter 4 “The Software Templates” details the operation of the
templates and menu functions.
There are a couple of symbols that need explanation:
- A ‘$’ in front of the numbers represent hexadecimal.
- An ‘x’ after the number indicates a CAN protocol extended message. To type
in an extended message, put the ‘x’ before the numbers to indicate that an
extended message is being entered.
3.3.1 MCP2515 Register View Template
This template allows low-level control of the MCP2515 and would typically be used to
evaluate/test the MCP2515 at the bit level. All registers required for complete
configuration are available in this template.
MCP2515 Development Kit User’s Guide
DS51416A-page 10 2003 Microchip Technology Inc.
FIGURE 3-3: MCP2515 REGISTER VIEW TEMPLATE
The following windows are available in this template:
Message
Filter
Configuration
Transmit
Receive
Status
Window Physical Layer
Status The status window shows the contents of the CANSTAT register
(operation mode and interrupt flag codes), TX and RX error
counts and EFLG register contents.
Additionally, there are buttons to clear the overflow flag bits in
the EFLG register.
Message Filters The masks and filters are configurable in this window, allowing
the user to set up and test for message acceptance. The
Message Filters window allows messages to be tested against
the masks and filters without physically going on a bus.
Physical Layer The three CNF registers used for all CAN bit timings are
configured in this window.
Configuration TXRTSCTRL, BFPCTRL, CANINTF, CANINTE and CANCTRL are
all modified from this window. These are the control and flag
registers.
Transmit The transmit window controls the buffer contents for the transmit
registers, including TXBnCTRL, the identifier registers and the
data registers.
Receive This window contains all of the buffer contents for the receive
buffers, including RXBnCTRL, the identifier registers and the data
registers.
Getting Started
2003 Microchip Technology Inc. DS51416A-page 11
3.3.2 Basic Template
The Basic template is a high-level tool that focuses on CAN bus traffic. This template
would typically be used to observe the MCP2515 while on the bus. Node 1
development can be evaluated by using the basic template with node 0.
FIGURE 3-4: BASIC TEMPLATE
The following windows are associated with the Basic Template:
Output
History
Bus
Timed
Transmissions
Status
Window
Message Format
List
Bus Status This window, labeled MCP2515 CAN Controller, provides
several pieces of information about the status of the bus,
including nominal bus loading, status of the node (on or off the
bus) and bus bit rate.
Output The Output window displays the messages that are received and
transmitted. A time stamp indicates either delta times or running
times between messages.
History List The History List window is used to collect transmitted messages
for saving to a file. This file can be opened later and messages
can be selected for retransmission. Some or all messages can
be selected for transmission. This window works in conjunction
with the Timed Transmissions window.
Timed
Transmissions
The Timed Transmissions window is used to send the messages
in the History List window. The messages can be sent either one
time (one shot) or repeatedly at regular intervals (cyclic).
Message Format
Window
The Message Format window determines the format of the dis-
played data in the output window. The default is Standard Text
Format, which displays the message data as normal data.
MCP2515 Development Kit User’s Guide
DS51416A-page 12 2003 Microchip Technology Inc.
3.4 STARTING THE PROGRAM
1. To run the software, either select Start > Programs> Microchip> CANKing or find
WC32.exe using Windows Explorer.
2. A dialog box will appear stating that putting this system on a CAN bus without
proper configuration may adversely affect the bus. Click Okay.
3. A window will appear prompting to open a template or a project. If this is the first
time running the program, select Te mplate (no projects exist yet).
4. Select a template to open (Basic or MCP2515 Register View).
3.5 SELECTING THE LPT PORT
When starting the program for the first time after installation, it may be necessary to
select the proper LPT port address from the available list (Options > MCP2515...).
Getting Started
2003 Microchip Technology Inc. DS51416A-page 13
3.6 HARDWARE OVERVIEW
The target board consists of two CAN nodes (MCU, MCP2515), a transceiver, an
embedded CAN bus and support components.
The two nodes are connected to the embedded bus. By default, the embedded CAN
bus is connected to the CAN connector (DB9), which is a link to an external CAN bus.
The support components are defined as all of the components that interface with the
nodes as controls, indicators and other peripherals.
Figure 3-5 shows the main components of the board.
LPT Port The link between the MCP2515 and the PC that acts as the
MCU for node0. The parallel port is used to allow the PC to
communicate with MCP2515 via SPI.
COM Port The communications port (COM) is connected to the PICmicro
MCU sockets (USART pins) via a MAX-232 device so that serial
communication is possible between the PICmicro MCU and PC.
Oscillators The three oscillator socket’s outputs are connected together by
default, so only one oscillator is needed to clock both MCP2515s
and the PICmicro MCU. By cutting traces and installing jumpers,
other oscillator configurations can be achieved. See Chapter 5
“Reconfigure the Hardware” for more detail on configuring the
oscillator sockets.
PICmicro MCU
Sockets
Three sockets are provided to give the user a wide range of
PICmicro MCUs to choose from when developing firmware.
MCU Prototype
Area
This area was created for prototyping MCUs that are not
supported with the sockets or for prototyping complete CAN
nodes.
Nonvolatile
Memory
Use of the 64-kbit SPI EEPROM is defined by the user. Since it
is on the same SPI bus as the MCP2515, care has to be taken to
utilize the chip selects properly.
MCP2515 The MCP2515 is the interface between the CAN bus and the
MCU.
CAN Transceiver The CAN transceiver converts the differential signal on the bus
to digital levels for the CAN controller and vice versa.
LED Banks The LED banks reflect the state of many of the pins on the
MCP2515.
RTS Buttons These buttons are used to request transmission of the
corresponding MCP2515’s transmit buffer if the pin is configured
as RTS inputs or used as digital inputs.
CAN Connector The CAN connector is used to connect the
MCP2515 Development Kit to an external bus.
MCP2515 Development Kit User’s Guide
DS51416A-page 14 2003 Microchip Technology Inc.
FIGURE 3-5: MCP2515 CAN DEVELOPMENT BOARD
LPT Port
Oscillator
Socket
Oscillator
Socket
Oscillator
Socket
COM Port
PICmicro® MCU
PICmicro® MCU
PICmicro® MCU
CAN Connector
MCP2515
MCP2515
Transceiver
Prototyping
Area
MCU
Prototyping Area
Transceiver
Prototyping
Area
MMCP2515 DEVELOPMENT KIT
USERS GUIDE
2003 Microchip Technology Inc. DS51416A-page 15
Chapter 4. The Software Templates
4.1 INTRODUCTION
There are two templates included with the MCP2515 Development Kit that give the
user low-level bit control, or high-level message control, of the MCP2515.
4.2 HIGHLIGHTS
The items discussed in this chapter are:
MCP2515 Register View template
Basic template
Menus
4.3 MCP2515 REGISTER VIEW TEMPLATE
This template allows low-level control of the MCP2515 and is typically used to
evaluate/test the MCP2515 at the bit level. All registers required for complete
configuration are available in this template.
Register values can be changed on both a byte level and a bit level. To modify the
register on a byte level, simply enter the value in the boxes next to the register names.
Notice that the bit values will reflect the entered byte values.
To modify the registers at the bit level, double-click the desired bit. The bit will toggle
for each double-click and the byte representation will be reflected next to the register
name.
The bit boxes are only modifiable when unshaded. Shaded bit boxes are read-only bits.
MCP2515 Development Kit User’s Guide
DS51416A-page 16 2003 Microchip Technology Inc.
FIGURE 4-6: MCP2515 REGISTER VIEW TEMPLATE
This section discusses each of the template windows in detail.
4.3.1 Status Window
The Status window displays the contents of the CANSTAT register, the EFLG register
and the counts for the receive and transmit error counters. In addition, it contains
buttons to clear each of the receive buffers’ overrun conditions.
The condition of the registers are also shown (e.g., CANSTAT = 80h displays the
condition as Configuration mode with no interrupts pending).
FIGURE 4-7: STATUS WINDOW
Message
Filter
Configuration
Transmit
Receive
Status
Window Physical Layer
The Software Templates
2003 Microchip Technology Inc. DS51416A-page 17
4.3.2 Message Filters Window
This window is used to set up and test mask and filter combinations with different
message identifiers. Each mask and filter can be tested without actually writing the
configuration to the MCP2515. This is done to allow the user to test different
configurations against message identifiers that would appear on the bus.
For example, Figure 4-8 shows an identifier of 155h matching up against filter RXF1
and shows that the message would be accepted into receive buffer 0.
When the desired mask and filter combinations are achieved, the values can be written
to the MCP2515 by clicking the Write button.
FIGURE 4-8: MESSAGE FILTER WINDOW
Note: The masks and filters can be written only when the MCP2515 is
in Configuration mode.
MCP2515 Development Kit User’s Guide
DS51416A-page 18 2003 Microchip Technology Inc.
4.3.3 Physical Layer Window
The Physical Layer window is where the CAN bus rate is configured. The user has
bit-level control of the three CNF registers (CNF1, CNF2 and CNF3) that set up all items
required for CAN bit timing, including the time quanta (TQ), bit segments, the
synchronization jump width (SJW) and the baud rate prescaler (BRP).
The calculated bit rate is shown at the bottom of the window. For this calculation to be
correct, the oscillator value must be correct. To change oscillator values, select Options
> MCP2515… from the menu bar.
FIGURE 4-9: PHYSICAL LAYER WINDOW
Note: The CNF registers can be modified only when the MCP2515 is in
Configuration mode and will display shaded in all other modes of
operation.
The Software Templates
2003 Microchip Technology Inc. DS51416A-page 19
4.3.4 Configuration Window
TXRTSCTRL, BFPCTRL, CANINTF, CANINTE and CANCTRL are all modified from this
window. These are the control and flag registers for the MCP2515.
4.3.4.1 TXRTSCTRL
This register configures the RTS pins (TXnRTS) as either request-to-send or as digital
inputs. The pin values are displayed in the register if configured as digital inputs.
4.3.4.2 BFPCTRL
This register configures the receive buffer full pins (RXnBF) as buffer full interrupts or
digital outputs. The value of the pins are displayed if configured as digital outputs.
4.3.4.3 CANINTF
CANINTF is the flag register for the eight sources of interrupts.
4.3.4.4 CANINTE
This register is the interrupt-enable for the eight interrupt sources. Enabled interrupts
are mapped to the INT pin.
4.3.4.5 CANCTRL
CANCTRL sets the modes of operation and the clock out enable and prescaler
(CLKOUT pin).
FIGURE 4-10: CONFIGURATION WINDOW
MCP2515 Development Kit User’s Guide
DS51416A-page 20 2003 Microchip Technology Inc.
4.3.5 Transmit Window
The Transmit window controls the buffer contents for the three transmit registers,
including TXBnCTRL, the identifier registers and the data registers. The transmit buffers
are selected using the Tx Buffer pull-down box.
Like the other register windows, the Transmit window maps the byte values to the bit
boxes. Entering data into the CAN ID box maps to multiple registers (SIDH, SIDL,
EID8 and EID0). Example: Entering 1FFFFFFFFh in the CAN ID box maps all ‘1s’ to
SIDH, SIDL, EID8 and EID0.
FIGURE 4-11: TRANSMIT WINDOW
The Software Templates
2003 Microchip Technology Inc. DS51416A-page 21
4.3.6 Receive Window
This window contains all buffer contents for the receive buffers, including RXBnCTRL,
the identifier registers and the data registers.
RXB0CTRL and RXB1CTRL are the only registers in this window that are not read-only,
as indicated by the unshaded bit locations. These two registers set up the receive
modes and enables/disables the rollover function.
FIGURE 4-12: RECEIVE WINDOW
Note: Selecting Messages > MCP2515 Eval Board > Receive Buffer (or Transmit
Buffer) while holding down the shift key will open up duplicate windows so
multiple transmit or receive windows can be monitored simultaneously.
MCP2515 Development Kit User’s Guide
DS51416A-page 22 2003 Microchip Technology Inc.
4.4 BASIC TEMPLATE
The Basic template is a high-level tool that focuses on CAN bus traffic. The user only
has high-level control of the MCP2515 (i.e., no direct register control) that includes:
Configuring the bus rate
Changing modes of operation (Configuration and Normal)
Configuring a transmit register (the register number is predefined)
Transmitting messages
Resetting the MCP2515
Other functions of the Basic template include receiving messages, saving transmitted
messages, starting timed transmissions and observing the bus loading. Details of these
functions can be found later in this section under the details of the individual windows.
This template would typically be used as a simple bus monitor for evaluating the
MCP2515 on a CAN bus or in assisting development by monitoring how node 1 is
operating.
FIGURE 4-13: THE BASIC TEMPLATE
Note: Node 0 is configured to receive ALL messages by default while in the
Basic template. The user has the option to maintain MCP2515 configura-
tions when switching templates by selecting Options > MCP2515… and
deselecting the Reset MCP2515 on Opening box. Keep in mind that
deselecting this box may create unforeseen problems if the MCP2515
was not previously configured properly.
Output
History
Bus
Timed
Transmissions
Status
Window
Message Format
List
The Software Templates
2003 Microchip Technology Inc. DS51416A-page 23
4.4.1 Bus Status Window
This window, labeledMCP2515 CAN Controller”, provides several pieces of
information about the status of the bus, including nominal bus loading, status of node
(on or off the bus) and bus bit rate. The tabs at the top of the window toggle between
the Bus Statistics and Bus Parameters view.
In the Bus Statistics view, the bus loading, bus parameters and bus status may be
viewed. The bus loading shows the nominal load on the CAN bus as a percentage and
as a number, as well as the total number of messages sent and received. The bus
parameters simply reflect the parameters that were set in the Bus Parameters view
(i.e., bit rate, number of TQ, bit segment lengths and the location of the sample point).
The bus status shows the mode of operation, error states and gives the user the ability
to switch modes of operation between Normal and Configuration.
The Bus Parameters view allows configuration of the bus rate, the sample point, the
synchronizing jump width (SJW) and switching between Normal and Listen-Only
modes of operation.
FIGURE 4-14: BUS STATUS
MCP2515 Development Kit User’s Guide
DS51416A-page 24 2003 Microchip Technology Inc.
4.4.2 Output Window
The output window displays the messages that are received and transmitted by node 0.
This window can be reconfigured to display messages in different formats. The formats
are changed using a combination of the Message Format window and the right mouse
button.
Changing the format type and/or the properties in the Message Format window alters
the display in the output window. The numeric base (base 8, base 10 or base 16) can
be changed. The time stamping function can also be changed to either a running time
or a delta time. See Section 4.4.5 Message Formats Window for more details.
Clicking the right mouse button while in this window brings up a menu that includes
auto-scroll, fixed positions and cut/paste functions.
Auto-Scroll appends new messages to the bottom of the displayed messages so all
messages are captured in the window. This feature allows the user to observe the order
and frequency of messages on the bus.
Selecting Fixed Positions effectively assigns a slot for each message identifier. As
messages with the same ID are received or transmitted, they overwrite the data
contents of the previous message with the same ID. Used in conjunction with the delta
time feature, the frequency of each message type can be observed.
The cut and paste menu items are standard operating system features.
FIGURE 4-15: OUTPUT WINDOW
The Software Templates
2003 Microchip Technology Inc. DS51416A-page 25
4.4.3 History List Window
The History List window is used to collect transmitted messages for saving to a file. This
window is not opened by default when opening a new template and is opened by
selecting View > History List. Once opened, every transmitted message is captured in
the History List window for saving to a file, if desired.
One or more messages can be selected for retransmission. There is also a button for
sending all the captured messages.
FIGURE 4-16: HISTORY LIST WINDOW
Note: The History List window works in conjunction with the Timed
Transmission window. Messages can be retransmitted once or
continually at defined intervals. See the Timed Transmission description
for more details.
MCP2515 Development Kit User’s Guide
DS51416A-page 26 2003 Microchip Technology Inc.
4.4.4 Timed Transmissions Window
The Timed Transmissions window is used to send the messages in the History List
window, either one time or continually at timed intervals.
The One Shot mode sends the selected (in the History List window) messages once
each time the send buttons are pressed in the History List window.
The Cyclic selection sends the selected messages at regular selectable intervals
(100 ms – 10 s). The other selections, Just-in-Time and Manual are not available in this
software.
FIGURE 4-17: TIMED TRANSMISSION WINDOW
4.4.5 Message Formats Window
This window determines the format of the displayed data in the output window. The
default is Standard Text Format, which displays the message data as normal data. The
properties of the Standard Text format can be changed by pressing the Properties
button while highlighted. The properties are the numeric base and whether or not to
display the message time stamp as a running total or as a delta.
FIGURE 4-18: MESSAGE FORMATS WINDOW
The Software Templates
2003 Microchip Technology Inc. DS51416A-page 27
4.5 MENUS
The menu items, for the most part, are identical in both the Register and Basic template
views. The few exceptions will be indicated in the descriptions below. Only two menu
items will be discussed in this section, as the others are self-explanatory.
4.5.1 Messages menu
In the Basic template, this menu contains the message types to be transmitted.
Selecting message types opens a window that the user can configure to transmit a
message. Example, selecting Messages > Universal > Universal opens a window for
transmitting a normal (up to eight bytes) message.
The CAN Kingdom message-type menu items are for transmitting messages that
adhere to the CAN Kingdom higher-layer protocol (HLP).
4.5.2 Options menu
The options menu contains the configurable properties of both the hardware and the
software.
The default numeric base is selected by Options > Global. Auto-save switches are also
contained here.
Options > MCP2515… is where the LPT port address is selected. It is also where the
oscillator frequency is set in software. Additionally, this menu contains a switch that
determines whether or not the MCP2515 will be reset on file open. This feature is for
those users who want to switch between templates without changing the MCP2515
configuration (e.g., masks and filters are set to receive ALL messages in the Basic
template, unless this box is deselected).
FIGURE 4-19: MENU BAR
Note: The oscillator frequency must be set in software to match the hardware
so the software can configure the bit timing registers correctly. The
formulas for bit timing contain an oscillator frequency.
MCP2515 Development Kit User’s Guide
DS51416A-page 28 2003 Microchip Technology Inc.
NOTES:
MMCP2515 DEVELOPMENT KIT
USERS GUIDE
2003 Microchip Technology Inc. DS51416A-page 29
Chapter 5. Reconfigure the Hardware
5.1 INTRODUCTION
The MCP2515 Development Kit has several different configurations that make it a
versatile tool.
5.2 HIGHLIGHTS
The items discussed in this chapter are:
Node Configurations
Oscillator Routing
The Jumper Settings
5.3 NODE CONFIGURATIONS
The versatility of the MCP2515 Development Kit is possible by changing the
configuration of the board. Refer to Section 5.5 “The Jumper Settings” for a list of
the various jumper settings required to change board configurations. There are five
common configurations.
5.3.1 PC Node Non-Distributed (one node, no CAN bus)
This is a default configuration in which the PC acts as a microcontroller for node 0. This
configuration does not have to be connected to the CAN bus because no CAN
communication occurs. This configuration is used for evaluation of, or familiarization
with, the MCP2515. The Register template would be used. The masks, filters and
register functions can easily be evaluated in this configuration.
Note: All jumper locations are shorted by default, unless otherwise specified.
The traces must be cut if the installed jumpers are to function properly.
MCP2515 Development Kit User’s Guide
DS51416A-page 30 2003 Microchip Technology Inc.
5.3.2 PC Node Distributed (one node, on CAN bus)
This configuration is the same as above, with the exception that it is connected to an
external CAN bus via the CAN connector (DB9).
Typically, this configuration would be used to further evaluate the MCP2515 by
observing how it functions on an external CAN bus. Experimentation with bit timings,
masks and filters, interrupts, RTS pins, etc. can be performed while using the Register
template. While in the configuration, simple bus monitoring can be achieved using the
Basic template.
5.3.3 Two Node Embedded System
This configuration utilizes node 0 and node 1 to create a two node, embedded system
(no external bus).
This configuration can be used for evaluation or development. The microcontroller
firmware is being developed at this point. As an example, the firmware may be written
to observe how the MCP2515 uses masks and filters to accept/reject messages. SPI
modules and interrupt handlers may be under development at this stage.
5.3.4 Two Node Distributed System
This configuration places both nodes on the CAN bus.
One scenario utilizes the microcontroller node as the node under development, while
the PC node is simply a bus monitor to assist in debugging.
5.3.5 Microcontroller Distributed System (One Node)
This configuration places the microcontroller node (node 1) on the CAN bus.
5.4 OSCILLATOR CONFIGURATIONS
There are three oscillator sockets. By default, both MCP2515s and the PICmicro®
MCU sockets use a common oscillator. Since all three socket outputs are tied together,
the oscillator can be placed in any socket.
It is possible for each node and the microcontrollers to have their own oscillator by
configuring the jumpers as described later in this chapter.
Warning: Care must be taken when installing more than one oscillator. The jumper
settings must be correct or contention will occur at some or all of the
device oscillator inputs. This could have catastrophic results.
Reconfigure the Hardware
2003 Microchip Technology Inc. DS51416A-page 31
5.5 THE JUMPER SETTINGS
There are multiple jumper settings that allow the MCP2515 Development Kit to be
configured in different ways.
There are jumpers that allow the transceivers to be disconnected so another physical
layer can be added either in the prototyping area or by adding a daughter board that is
manufactured by a third party. Contact Kvaser AB for more information
(www.kvaser.se).
There are also jumpers that disconnect the three oscillators from each other. A CAN
bus-terminating resistor (120 ohm) can be jumpered in. Finally, the LED banks can be
disconnected, if so desired.
.
Note: All jumpers are shorted with a copper trace (bottom-side of board) by
default and require cutting to open. Jumper pins can be soldered in the
holes to allow jumper connectors to be used.
TABLE 5-1: JUMPER DESCRIPTION
Jumper Description
JP1 Connects LEDs for Node 0
JP2 Connects Node0 MCP2551 RS pin to external bus (DB9 J4)
JP3 Connects Node0 MCP2551 CANH pin to external bus (DB9 J4)
JP4 Connects Node0 MCP2551 CANL pin to external bus (DB9 J4)
JP5 Connects Node0 MCP2551 RXD pin to external bus (DB9 J4)
JP6 Connects oscillator O2 to oscillator O1
JP7 Connects LEDs for Node 1
JP8 Connects oscillator O3 to oscillator O1
JP9 Connects oscillator O3 to oscillator O2
JP10 Connects Node 1 MCP2515 INT pin to PICmicro® MCU RB0 pin
JP11 Connects Node 1 MCP2551 RS pin to external bus (DB9 J4)
JP12 Connects Node 1 MCP2551 CANH pin to external bus (DB9 J4)
JP13 Connects Node 1 MCP2551 CANL pin to external bus (DB9 J4)
JP14 Connects Node 1 MCP2551 RXD pin to external bus (DB9 J4)
JP15 Connects 120 ohm terminating resister to the CAN bus
These jumpers are provided to disconnect the MCP2551 device from the
bus so other physical layers can be used, including a third-party daughter
card available from Kvaser AB.
MCP2515 Development Kit User’s Guide
DS51416A-page 32 2003 Microchip Technology Inc.
FIGURE 5-20: JUMPER LOCATIONS
JP8
JP9
JP10
JP6
JP2
JP3
JP4
JP5
JP11
JP12
JP13
JP14
JP1
JP7
JP15
MMCP2515 DEVELOPMENT KIT
USERS GUIDE
2003 Microchip Technology Inc. DS51416A-page 33
Appendix A. Schematics
A.1 INTRODUCTION
This section contains schematics, which are also available on the included CD-ROM.
MCP2515 Development Kit User’s Guide
DS51416A-page 34 2003 Microchip Technology Inc.
A.2 SCHEMATIC
Note: This schematic is available on the included CD-ROM (03-01522r2-S1.pdf).
NOTES:
DEVICE NAMES/NUMBERS SHOWN HERE ARE FOR
REFERENCE ONLY AND MAY DIFFER FROM ACTUAL
NUMBER.
ACTUAL NUMBERS ARE FOUND IN THE BOM FOR
THIS ASSEMBLY.
H2 AND H5 ARE LOCATIONS FOR CONNECTORS
OR DOUBLE ROW TERMINAL STRIP WITH .025
SQUARE POST.
THERE IS LOCATIONS FOR 2 PIN SHORTING
SHUNTS JP1 TO JP7 AND JP11 TO JP15
BUT THEY ARE NOT MOUNTED.
THEY ARE ALL SHORTED BY DEFAULT BY A
SHORT CIRCUIT BETWEEN THE TWO PINS ON
THE SOLDER SIDE OF THE BOARD.
O2 IS NOT MOUNTED ALL CLOCKING IS BY
DEFAULT MADE BY ONE SINGLE OSCILLATOR
O1.
PC_RXBF1
PC_INT
PC_SPII
PC_SPICS
PC_SPICLK
GND
PC_OSC
PC_RTS0
PC_OSC
PC_SPIO
PC_RXBF0
PIC_CLK
PIC_RTS2
PIC_RXBF1
PIC_INT
PIC_RTS1
PIC_RES
PIC_SPII
PIC_SPICS
PIC_SPICLK
GND
PIC_RTS0
PIC_OSC PIC_RXBF0
EPC_RTS2
EPC_RTS1
PC_RXBF1
EPC_INT
PC_RXBF0
+5V
PIC_RES
PIC_SPICS
PIC_SPICLK
PIC_INT
PIC_RXBF0
PIC_RXBF1
PIC_TXC
PIC_RXC
PIC_CLK
PIC_RTS0
PIC_RTS1
PIC_RTS2
PIC_OSCO
PIC_OSC
PIC_SPII
GND
PC_SPICS
PC_RES
PC_RXBF0
PC_SPIO
PC_SPICLK
+5V
PC_RXBF1
PC_INT
PC_TXC
PC_RXC
PC_CLK
PC_RTS0
PC_RTS1
PC_RTS2
PC_OSCO
PC_OSC
PC_SPII
GND
PC_CLK
PC_OSCO PIC_OSCO
PIC_SPICS
PIC_SPICLK
PIC_SPII
PIC_SPIO
PIC_CLK
PC_OSC
PIC_INT
PC_RTS2
PC_RTS1
GND
+5V
EPC_SPIO
EPC_RES
EPC_RTS0
PC_SPII
PC_SPICS
PC_SPICLK
PC_SPIO
PC_INT
PC_RES
PC_RES
EPC_RTS0
EPC_RTS1
EPC_RTS2
PC_TXC
+5V
+5V
+5V
+5V
+5V
GND
+5V
PC_TXC
PC_RXC
GND
PC_RXC
GND
+5V
GND
PIC_RXC
+5V
GND
+5V
PIC_RXC
GND
+5V
GND
PIC_TXC
GND
PIC_TXC
+5V
GND
+5V
EPC_SPII
GND
EPC_SPICLK
EPC_SPICS
PIC_SPIO
PIC_SPIO
PIC_SPICS
PIC_SPICLK
PIC_SPIO
PIC_CLK
PC_OSC
PIC_INT
PIC_SPII
GND
+5V
U1
MCP2515
TXCAN
1
RXCAN
2
CLKOUT
3
TX0RTS
4
TX1RTS
5
TX2RTS
6
OSC2
7
OSC1
8
GND
9RX1BF 10
RX0BF 11
INT 12
SCK 13
SI 14
SO 15
CS 16
RESET 17
VCC 18
RN2
RN4S_1
470R
12
34
56
78
JP13JMP2
12
JP4
JMP2
1 2
JP12JMP2
12
JP3
JMP2
1 2
JP15
JMP2
1 2
R8
1*5M
120R
1 2
C4
CCAX
0.1uF
12
C2
CCAX
0.1uF
12
C10
CCAX
0.1uF
12
C7
CCAX
0.1uF
12
C8
CCAX
0.1uF
12
C3
CCAX
0.1uF
12
C1
CCAX
0.1uF
12
JP6
JMP2
1 2
U3
74HCT245
A1 2
A2 3
A3 4
A4 5
A5 6
A6 7
A7 8
A8 9
G19
DIR 1
B1
18
B2
17
B3
16
B4
15
B5
14
B6
13
B7
12
B8
11
VCC
20
GND
10
H5
HEADER 10X2
1
122
3
344
5
566
7
788
9
910 10
11
11 12 12
13
13 14 14
15
15 16 16
17
17 18 18
19
19 20 20
RN4
RN4S_1
4k7
12
34
56
78
O1
IQXO-350C
16MHz
NC 1
GND 2
CLK
3
VCC
4
J1
DSUB 25 S PCB 90
13
25
12
24
11
23
10
22
9
21
8
20
7
19
6
18
5
17
4
16
3
15
2
14
1
D14
RED
12
U7
MCP2515
TXCAN
1
RXCAN
2
CLKOUT
3
TX0RTS
4
TX1RTS
5
TX2RTS
6
OSC2
7
OSC1
8
GND
9RX1BF 10
RX0BF 11
INT 12
SCK 13
SI 14
SO 15
CS 16
RESET 17
VCC 18
D15
RED
12
O2
IQXO-350C
NF
NC 1
GND 2
CLK
3
VCC
4
RN6
RN4S_1
470R
12
34
56
78
RN7
RN4S_1
4k7
12
34
56
78
U2
MCP2551
CANH 7
GND
2
CANL 6
VCC
3
TXD
1RXD
4
REF 5
RS 8
J4 DSUB 9 P PCB 90
5
9
4
8
3
7
2
6
1
10
11
D11
GREEN
12
D9
GREEN
12
RN5
RN4S_1
470R
12
34
56
78
D12
GREEN
12
D13
GREEN
12
D10
GREEN
12
JP1
JMP2
1 2
D16
RED
12
S6
SKHRAA
1
2 3
4
S5
SKHRAA
1
2 3
4
S4
SKHRAA
1
2 3
4
W2
PIGGY_CAN
GND1
1
VCC1
2
CTX
3
CRX
4
SD1
5
GND2
6
GND3 7
POW 8
CANH 9
CANL 10
SD2 11
GND4 12
IO1 13
IO2 14
IO3 15
IO4 16
IO5 17
W4
PIGGY_CAN
GND1 1
VCC1 2
CTX 3
CRX 4
SD1 5
GND2 6
GND3
7
POW
8
CANH
9
CANL
10
SD2
11
GND4
12
IO1
13
IO2
14
IO3
15
IO4
16
IO5
17
U8
MCP2551
CANH
7
GND 2
CANL
6
VCC 3
TXD 1
RXD 4
REF
5
RS
8
D6
RED
12
D7
RED
12
T1
BC847B
1
2
3
D3
GREEN
12
D4
GREEN
12
D5
GREEN
12
R3
1*5M
4k7
1 2
D1
GREEN
12
D2
GREEN
12
RN1
RN4S_1
470R
12
34
56
78
JP14
JMP2
1 2
JP5
JMP2
1 2
JP7
JMP2
1 2
W1
DRVCAN_AREA
GND
1
+5V
2
TXC
3
RXC
4
CANH 5
CANL 6
GNDO 7
IO0 8
IO1 9
IO2 10
IO3 11
IO4 12
W3
DRVCAN_AREA
GND 1
+5V 2
TXC 3
RXC 4
CANH
5
CANL
6
GNDO
7
IO0
8
IO1
9
IO2
10
IO3
11
IO4
12
H2
HEADER 10X2
1
122
3
344
5
566
7
788
9
910 10
11
11 12 12
13
13 14 14
15
15 16 16
17
17 18 18
19
19 20 20
RN3
RN4S_1
470R
12
34
56
78
S3
SKHRAA
1
2 3
4
S2
SKHRAA
1
2 3
4
S1
SKHRAA
1
2 3
4
JP2
JMP2
1 2
JP11JMP2
12
R4
1*5M
4k7
12
D8
RED
12
Schematics
2003 Microchip Technology Inc. DS51416A-page 35
Note: This schematic is available on the included CD-ROM (03-01522r2-S2.pdf).
NOTE J3 DEFAULT CLOSED
J21 DEFAULT CLOSED?
NOTE! TO USE 18PIN MCU IT IS
NECESSARY TO PLACE JUMPERS IN
ALL LOCATIONS!
NOTES:
DEVICE NAMES/NUMBERS SHOWN HERE ARE FOR
REFERENCE ONLY AND MAY DIFFER FROM ACTUAL
NUMBER.
ACTUAL NUMBERS ARE FOUND IN THE BOM FOR
THIS ASSEMBLY.
H3, H4 AND H7 ARE LOCATIONS FOR CONNECTORS OR
DOUBLE ROW TERMINAL STRIP WITH .025 SQUARE POST.
THERE IS LOCATIONS FOR 2 PIN SHORTING SHUNTS
JJP8 TO JP10 BUT THEY ARE NOT MOUNTED.
JP8 AND JP10 ARE SHORTED BY DEFAULT BY A
SHORT CIRCUIT BETWEEN THE TWO PINS ON THE
SOLDER SIDE OF THE BOARD.
O3 IS NOT MOUNTED ALL CLOCKING IS BY
DEFAULT MADE BY ONE SINGLE OSCILLATOR O1.
H1 AND H6 ARE LOCATIONS FOR DOUBLE AND SINGLE
ROW TERMINAL STRIP WITH .025 SQUARE POST.
H1 AS CONNECTOR TO LCD DISPLAY.
PIC_SPICLK
RS232_RX
RD5
RD7
RS232_TX
RD6
RC0
PIC_SPIO
PIC_MCS
RD2
PIC_SPICS
RD0
RD3
RD1
PIC_SPII
RD4
PIC_CLK
+5V
RA3
RA5
RB1
RB3
RB5
RB7
GND
RA4
RB0
RB2
RB4
RB6
RA0
RA1
RA2
RA3
RA4
RA5
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
RES
RE0
RE1
RE2
+5V
GND
PC_OSC
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
GND
RA0
RA1
RA2
RA3
RA4
RES
VLED
RX
PIC_MCS
PIC_SPICS
PIC_SPICLK
PIC_SPII
PIC_SPIO
TX
RB1
RB2
RB3
RB4
RB5
RA3
RA2
PIC_SPICS
PIC_SPICLK
PIC_SPII
PIC_SPIO
PIC_CLK
PC_OSC
RB0
RC0
PIC_MCS
PIC_SPICS
PIC_SPICLK
GND
PIC_SPII
PIC_SPIO
TX
RX
GND
RD0
RD1
RD2
RD3
+5V
RD4
RD5
RD6
RD7
+5V
RA0
RA1
RA2
GND
RA4
RA5
GND
RB0
RB1
RB2
+5V
RB4
RB5
RB6
RB7
+5V
PIC_SPICLK
PIC_SPIO
PIC_MCS
PIC_SPII
+5V
RES
RC0
PIC_MCS
RB5
PIC_SPICLK
TX
RB0
RB6
RA1
TX
RXRB7
TX
RA0
RA2
PIC_SPII
RB1
PIC_SPICS
RES
RA3
RB2
RX
PIC_SPIO
RA4
RB3
PICOSC
RX
RA5
RB4
RC0
RA0
RE0
RE1
RE2
RES
+5V
GND
RC0RB6
GND
+5V
RB3RA3
+5V
GND
+5V
GND
GND
+5V
+5V
GND
+5V
GND
GND
+5V
+5V
+5V
GND
+5V
+5V
GND
GND
PIC_SPICS
PIC_SPICLK
PIC_SPIO
PIC_CLK
PC_OSC
PIC_INT
PIC_SPII
GND
+5V
C9
CCAX
0.1uF
12
C14
CCAX
0.1uF
12
C11
CCAX
0.1uF
12
H3
HEADER 8X2
1
122
3
344
5
566
7
788
9
910 10
11
11 12 12
13
13 14 14
15
15 16 16
C18
CCAX
0.1uF
12
C16
CCAX
0.1uF
12
C17
CCAX
0.1uF
12
C15
CCAX
0.1uF
12
+
C5
CTAN
1uF
12
R6
1*5M
100R
1 2
+
C6
CTAN
1uF
12
JP8
JMP2
1 2
JP10
JMP2
1 2
J2
POWCON
CENTER 1
OUTER 2
OUT_IN 3
U6
25LC640
CS
1
SO
2
WP
3
VSS
4SI 5
SCK 6
HOLD 7
VCC 8
O3
IQXO-350C
NC
1
GND
2CLK 3
VCC 4
JP9
JMP2
1 2
U10
PIC16C63
MCLR
1
RA0
2
RA1
3
RA2
4
RA3
5
RA4
6
RA5
7
GND1
8OSC1 9
OSC2 10
RC0 11
RC1 12
RC2 13
RC3 14
RC4 15
RC5 16
RC6 17
RC7 18
GND2
19
VCC
20
RB0
21
RB1
22
RB2
23
RB3
24
RB4
25
RB5
26
RB6
27
RB7
28
U11
PIC16C64
MCLR
1
RA0
2
RA1
3
RA2
4
RA3
5
RA4
6
RA5
7
RE0 8
RE1 9
RE2 10
VCC1
11
GND1
12 OSC1 13
OSC2 14
RC0 15
RC1 16
RC2 17
RC3 18
RD0 19
RD1 20
RD2 21
RD3 22
RC4 23
RC5 24
RC6 25
RC7 26
RD4 27
RD5 28
RD6 29
RD7 30
GND2
31
VCC2
32
RB0
33
RB1
34
RB2
35
RB3
36
RB4
37
RB5
38
RB6
39
RB7
40
H1
HEADER 7X2
1 2
3 4
5 6
7 8
910
11 12
13 14
H7
HEADER 10X2
1
122
3
344
5
566
7
788
9
910 10
11
11 12 12
13
13 14 14
15
15 16 16
17
17 18 18
19
19 20 20
H4
HEADER 10X2
1
122
3
344
5
566
7
788
9
910 10
11
11 12 12
13
13 14 14
15
15 16 16
17
17 18 18
19
19 20 20
R1
1*5M
10k
12
R2
1*5M
330R
12
H6
LIST-1M-6P
11
22
33
44
55
66
R7
1*5M
4k7
12
U9
PIC16C711
RA2
1
RA3
2
TCK0
3
MCLR
4
RA0
17
RA1
18
GND
5
OSC1 16
OSC2 15
VCC 14
RB0
6
RB1
7
RB2
8
RB3
9
RB4
10
RB5
11
RB6
12
RB7
13
J3
DSUB 9 S PCB 90
5
9
4
8
3
7
2
6
1
U5
MAX232A
C1+
1
R2OUT 9
V+
2
T2IN 10
C1-
3
T1IN 11
C2+
4
R1OUT 12
C2-
5R1IN 13
V-
6
T1OUT 14
T2OUT
7
GND 15
R2IN
8
VCC 16
C13
CCAX
0.1uF
12
U4
LM7805
IN
3
GND
2OUT 1
C19
CCAX
0.1uF
12
S7
SKHRAA
1
2 3
4
R10
1*5M
4k7
12
R9
1*5M
470R
1 2
R12
POT
12
3
R11
1*5M
470R
1 2
M1
FOOT
M3
FOOT
M4
FOOT
M2
FOOT
W5
WRAP_AREA
GND1
1
GND2
2GND3 3
GND4 4
VCC1
5
VCC2
6VCC3 7
VCC4 8
R5
1*5M
470R
12
C12
CCAX
0.1uF
12
D17
GREEN
12
MCP2515 Development Kit User’s Guide
DS51416A-page 36 2003 Microchip Technology Inc.
NOTES:
MMCP2515 DEVELOPMENT KIT
USERS GUIDE
2003 Microchip Technology Inc. DS51416A-page 37
Appendix B. FAQs on Configuring the MCP2515
B.1 INTRODUCTION
This section answers some frequently asked questions concerning the configuration of
the MCP2515 to assist those who are new to the device.
B.2 FAQS
1. Why doesn’t the development tool successfully communicate on an
external bus?
There are several possible reasons why this is the case. The following are the
most common problems:
TABLE B-1: COMMON BUS COMMUNICATION PROBLEMS
2. The node is acknowledging messages in the Basic template but not
displaying them.
The MCP2515 filters are not matching the incoming messages. This can occur
because the Reset MCP2515 on Open is deselected, causing the old register
contents (masks and filters) to remain unchanged when switching templates.
Press reset, or select the Reset MCP2515 on Open box and reopen the
template.
Condition Fix
The MCP2515 is off the bus
(not in Normal mode).
Basic template – Go on Bus button in the
“Bus Status” window.
The LPT port is not configured
correctly.
Make sure LPT address is correct (Options >
MCP2515.).
The bus rate is not set to match the
bus.
Basic template – Set the bus rate in the Bus
Status window.
Register template – change CNF registers.
Oscillator frequency not set to match
hardware (FOSC is required in bit rate
formula).
Set the oscillator frequency
(Options > MCP2515...).
Board is not connected to the
external bus.
Connect to the external bus using the DB9
labeled CAN.
Pinouts: CANH – pin 7, CANL – pin 2.
MCP2515 Development Kit User’s Guide
DS51416A-page 38 2003 Microchip Technology Inc.
3. I cannot enter values in the Physical Layer window.
The MCP2515 is not in Configuration mode. The three CNF registers are only
modifiable while in Configuration mode. Change modes.
4. The mask and filter registers do not change when pressing the Write
button.
The MCP2515 is not in Configuration mode. Masks and filters are changeable only
in Configuration mode. Change mode.
5. How do I enter extended IDs into a field?
Lead off the number with an ‘x’, which indicates extended frame
(e.g., x12345).
6. Are there daughter boards available that change the physical layer?
Yes. Contact Kvaser AB for details (www.kvaser.se).
FAQs on Configuring the MCP2515
2003 Microchip Technology Inc. DS51416A-page 39
NOTES:
DS51416A-page 40 2003 Microchip Technology Inc.
M
AMERICAS
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support: 480-792-7627
Web Address: http://www.microchip.com
Atlanta
3780 Mansell Road, Suite 130
Alpharetta, GA 30022
Tel: 770-640-0034
Fax: 770-640-0307
Boston
2 Lan Drive, Suite 120
Westford, MA 01886
Tel: 978-692-3848
Fax: 978-692-3821
Chicago
333 Pierce Road, Suite 180
Itasca, IL 60143
Tel: 630-285-0071
Fax: 630-285-0075
Dallas
4570 Westgrove Drive, Suite 160
Addison, TX 75001
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Tri-Atria Office Building
32255 Northwestern Highway, Suite 190
Farmington Hills, MI 48334
Tel: 248-538-2250
Fax: 248-538-2260
Kokomo
2767 S. Albright Road
Kokomo, IN 46902
Tel: 765-864-8360
Fax: 765-864-8387
Los Angeles
18201 Von Karman, Suite 1090
Irvine, CA 92612
Tel: 949-263-1888
Fax: 949-263-1338
Phoenix
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7966
Fax: 480-792-4338
San Jose
2107 North First Street, Suite 590
San Jose, CA 95131
Tel: 408-436-7950
Fax: 408-436-7955
Toronto
6285 Northam Drive, Suite 108
Mississauga, Ontario L4V 1X5, Canada
Tel: 905-673-0699
Fax: 905-673-6509
ASIA/PACIFIC
Australia
Suite 22, 41 Rawson Street
Epping 2121, NSW
Australia
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Unit 915
Bei Hai Wan Tai Bldg.
No. 6 Chaoyangmen Beidajie
Beijing, 100027, No. China
Tel: 86-10-85282100
Fax: 86-10-85282104
China - Chengdu
Rm. 2401-2402, 24th Floor,
Ming Xing Financial Tower
No. 88 TIDU Street
Chengdu 610016, China
Tel: 86-28-86766200
Fax: 86-28-86766599
China - Fuzhou
Unit 28F, World Trade Plaza
No. 71 Wusi Road
Fuzhou 350001, China
Tel: 86-591-7503506
Fax: 86-591-7503521
China - Hong Kong SAR
Unit 901-6, Tower 2, Metroplaza
223 Hing Fong Road
Kwai Fong, N.T., Hong Kong
Tel: 852-2401-1200
Fax: 852-2401-3431
China - Shanghai
Room 701, Bldg. B
Far East International Plaza
No. 317 Xian Xia Road
Shanghai, 200051
Tel: 86-21-6275-5700
Fax: 86-21-6275-5060
China - Shenzhen
Rm. 1812, 18/F, Building A, United Plaza
No. 5022 Binhe Road, Futian District
Shenzhen 518033, China
Tel: 86-755-82901380
Fax: 86-755-8295-1393
China - Shunde
Room 401, Hongjian Building
No. 2 Fengxiangnan Road, Ronggui Town
Shunde City, Guangdong 528303, China
Tel: 86-765-8395507 Fax: 86-765-8395571
China - Qingdao
Rm. B505A, Fullhope Plaza,
No. 12 Hong Kong Central Rd.
Qingdao 266071, China
Tel: 86-532-5027355 Fax: 86-532-5027205
India
Divyasree Chambers
1 Floor, Wing A (A3/A4)
No. 11, O’Shaugnessey Road
Bangalore, 560 025, India
Tel: 91-80-2290061 Fax: 91-80-2290062
Japan
Benex S-1 6F
3-18-20, Shinyokohama
Kohoku-Ku, Yokohama-shi
Kanagawa, 222-0033, Japan
Tel: 81-45-471- 6166 Fax: 81-45-471-6122
Korea
168-1, Youngbo Bldg. 3 Floor
Samsung-Dong, Kangnam-Ku
Seoul, Korea 135-882
Tel: 82-2-554-7200 Fax: 82-2-558-5932 or
82-2-558-5934
Singapore
200 Middle Road
#07-02 Prime Centre
Singapore, 188980
Tel: 65-6334-8870 Fax: 65-6334-8850
Taiwan
Kaohsiung Branch
30F - 1 No. 8
Min Chuan 2nd Road
Kaohsiung 806, Taiwan
Tel: 886-7-536-4818
Fax: 886-7-536-4803
Taiwan
Taiwan Branch
11F-3, No. 207
Tung Hua North Road
Taipei, 105, Taiwan
Tel: 886-2-2717-7175 Fax: 886-2-2545-0139
EUROPE
Austria
Durisolstrasse 2
A-4600 Wels
Austria
Tel: 43-7242-2244-399
Fax: 43-7242-2244-393
Denmark
Regus Business Centre
Lautrup hoj 1-3
Ballerup DK-2750 Denmark
Tel: 45-4420-9895 Fax: 45-4420-9910
France
Parc d’Activite du Moulin de Massy
43 Rue du Saule Trapu
Batiment A - ler Etage
91300 Massy, France
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
Germany
Steinheilstrasse 10
D-85737 Ismaning, Germany
Tel: 49-89-627-144-0
Fax: 49-89-627-144-44
Italy
Via Quasimodo, 12
20025 Legnano (MI)
Milan, Italy
Tel: 39-0331-742611
Fax: 39-0331-466781
Netherlands
P. A. De Biesbosch 14
NL-5152 SC Drunen, Netherlands
Tel: 31-416-690399
Fax: 31-416-690340
United Kingdom
505 Eskdale Road
Winnersh Triangle
Wokingham
Berkshire, England RG41 5TU
Tel: 44-118-921-5869
Fax: 44-118-921-5820
07/28/03
WORLDWIDE SALES AND SERVICE