0% found this document useful (0 votes)
243 views44 pages

MCP2515 User Manual

Mcp2515 design and evaluation board design kit.

Uploaded by

Federico Mirre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
243 views44 pages

MCP2515 User Manual

Mcp2515 design and evaluation board design kit.

Uploaded by

Federico Mirre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

M

MCP2515
Development Kit
User’s Guide

 2003 Microchip Technology Inc. DS51416A


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.

Information contained in this publication regarding device Trademarks


applications and the like is intended through suggestion only
and may be superseded by updates. It is your responsibility to The Microchip name and logo, the Microchip logo, dsPIC,
ensure that your application meets with your specifications. KEELOQ, MPLAB, PIC, PICmicro, PICSTART, PRO MATE and
No representation or warranty is given and no liability is PowerSmart are registered trademarks of Microchip
assumed by Microchip Technology Incorporated with respect Technology Incorporated in the U.S.A. and other countries.
to the accuracy or use of such information, or infringement of
patents or other intellectual property rights arising from such FilterLab, microID, MXDEV, MXLAB, PICMASTER, SEEVAL
and The Embedded Control Solutions Company are
use or otherwise. Use of Microchip’s products as critical
registered trademarks of Microchip Technology Incorporated
components in life support systems is not authorized except
with express written approval by Microchip. No licenses are in the U.S.A.
conveyed, implicitly or otherwise, under any intellectual
Accuron, Application Maestro, dsPICDEM, [Link],
property rights. ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-
Circuit Serial Programming, ICSP, ICEPIC, microPort,
Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM,
PICC, PICkit, PICDEM, [Link], 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.

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.

DS51416A-page ii  2003 Microchip Technology Inc.


M MCP2515 DEVELOPMENT KIT
USER’S GUIDE
Table of Contents

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

 2003 Microchip Technology Inc. DS51416A-page iii


MCP2510 Development Kit User’s Guide

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

DS51416A-page iv  2003 Microchip Technology Inc.


M MCP2515 DEVELOPMENT KIT
USER’S GUIDE

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 [Link].

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.

 2003 Microchip Technology Inc. DS51416A-page 1


MCP2515 Development Kit User’s Guide

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.

DS51416A-page 2  2003 Microchip Technology Inc.


Introduction

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 CAN’s 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 ([Link]) that are downloadable from the Kvaser web site
([Link]) 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.

 2003 Microchip Technology Inc. DS51416A-page 3


MCP2515 Development Kit User’s Guide
NOTES:

DS51416A-page 4  2003 Microchip Technology Inc.


M MCP2515 DEVELOPMENT KIT
USER’S GUIDE

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

 2003 Microchip Technology Inc. DS51416A-page 5


MCP2515 Development Kit User’s Guide

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, User’s 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

DS51416A-page 6  2003 Microchip Technology Inc.


Installation

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.

1
Not Connected
6
Not Connected
2
CANL
7
CANH
3
In Use
8
Not Connected
4
In Use
9
In Use
5
Not Connected

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 [Link] or select Browse and find the file. Alternate method: Through Win-
dows Explorer®, run the file named [Link]. Follow the instructions for installing
the software program.

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”.

 2003 Microchip Technology Inc. DS51416A-page 7


MCP2515 Development Kit User’s Guide
NOTES:

DS51416A-page 8  2003 Microchip Technology Inc.


M MCP2515 DEVELOPMENT KIT
USER’S GUIDE

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.

 2003 Microchip Technology Inc. DS51416A-page 9


MCP2515 Development Kit User’s Guide

Message
Filter

Status
Physical Layer
Window

Configuration

Receive

Transmit

FIGURE 3-3: MCP2515 REGISTER VIEW TEMPLATE


The following windows are available in this template:
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.

DS51416A-page 10  2003 Microchip Technology Inc.


Getting Started

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.

Output
Window
Bus
Status

Message Format

Timed
Transmissions
History
List

FIGURE 3-4: BASIC TEMPLATE


The following windows are associated with the Basic Template:
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 The Timed Transmissions window is used to send the messages
Transmissions in the History List window. The messages can be sent either one
time (one shot) or repeatedly at regular intervals (cyclic).
Message Format The Message Format window determines the format of the dis-
Window played data in the output window. The default is Standard Text
Format, which displays the message data as normal data.

 2003 Microchip Technology Inc. DS51416A-page 11


MCP2515 Development Kit User’s Guide

3.4 STARTING THE PROGRAM


1. To run the software, either select Start > Programs> Microchip> CANKing or find
[Link] 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 Template (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...).

DS51416A-page 12  2003 Microchip Technology Inc.


Getting Started

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 Three sockets are provided to give the user a wide range of
Sockets PICmicro MCUs to choose from when developing firmware.
MCU Prototype This area was created for prototyping MCUs that are not
Area supported with the sockets or for prototyping complete CAN
nodes.
Nonvolatile Use of the 64-kbit SPI EEPROM is defined by the user. Since it
Memory 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.

 2003 Microchip Technology Inc. DS51416A-page 13


 2003 Microchip Technology Inc.
LPT Port COM Port
PICmicro® MCU

MCP2515 CAN DEVELOPMENT BOARD


PICmicro® MCU
MCP2515 Development Kit User’s Guide

Oscillator Oscillator Oscillator


Socket Socket Socket PICmicro® MCU

MCP2515
MCP2515

MCU
Prototyping Area

FIGURE 3-5:
Transceiver Transceiver
Prototyping Prototyping
Area Area

DS51416A-page 14
CAN Connector
M MCP2515 DEVELOPMENT KIT
USER’S GUIDE

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.

 2003 Microchip Technology Inc. DS51416A-page 15


MCP2515 Development Kit User’s Guide

Message
Filter

Status
Physical Layer
Window

Configuration

Receive

Transmit

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

DS51416A-page 16  2003 Microchip Technology Inc.


The Software Templates

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.

Note: The masks and filters can be written only when the MCP2515 is
in Configuration mode.

FIGURE 4-8: MESSAGE FILTER WINDOW

 2003 Microchip Technology Inc. DS51416A-page 17


MCP2515 Development Kit User’s Guide

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.

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.

FIGURE 4-9: PHYSICAL LAYER WINDOW

DS51416A-page 18  2003 Microchip Technology Inc.


The Software Templates

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.

[Link] 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.

[Link] 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.

[Link] CANINTF
CANINTF is the flag register for the eight sources of interrupts.

[Link] CANINTE
This register is the interrupt-enable for the eight interrupt sources. Enabled interrupts
are mapped to the INT pin.

[Link] CANCTRL
CANCTRL sets the modes of operation and the clock out enable and prescaler
(CLKOUT pin).

FIGURE 4-10: CONFIGURATION WINDOW

 2003 Microchip Technology Inc. DS51416A-page 19


MCP2515 Development Kit User’s Guide

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

DS51416A-page 20  2003 Microchip Technology Inc.


The Software Templates

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.

 2003 Microchip Technology Inc. DS51416A-page 21


MCP2515 Development Kit User’s Guide

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.

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.

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.

Output
Window
Bus
Status

Message Format

Timed
Transmissions
History
List

FIGURE 4-13: THE BASIC TEMPLATE

DS51416A-page 22  2003 Microchip Technology Inc.


The Software Templates

4.4.1 Bus Status Window


This window, labeled “MCP2515 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

 2003 Microchip Technology Inc. DS51416A-page 23


MCP2515 Development Kit User’s Guide

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

DS51416A-page 24  2003 Microchip Technology Inc.


The Software Templates

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.

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.

FIGURE 4-16: HISTORY LIST WINDOW

 2003 Microchip Technology Inc. DS51416A-page 25


MCP2515 Development Kit User’s Guide

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

DS51416A-page 26  2003 Microchip Technology Inc.


The Software Templates

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).

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.

FIGURE 4-19: MENU BAR

 2003 Microchip Technology Inc. DS51416A-page 27


MCP2515 Development Kit User’s Guide
NOTES:

DS51416A-page 28  2003 Microchip Technology Inc.


M MCP2515 DEVELOPMENT KIT
USER’S GUIDE

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.

Note: All jumper locations are shorted by default, unless otherwise specified.
The traces must be cut if the installed jumpers are to function properly.

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.

 2003 Microchip Technology Inc. DS51416A-page 29


MCP2515 Development Kit User’s Guide

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.

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.

It is possible for each node and the microcontrollers to have their own oscillator by
configuring the jumpers as described later in this chapter.

DS51416A-page 30  2003 Microchip Technology Inc.


Reconfigure the Hardware

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
([Link]).
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 R S 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.

 2003 Microchip Technology Inc. DS51416A-page 31


MCP2515 Development Kit User’s Guide

JP1

JP3
JP5

JP2
JP4

JP6
JP7

JP10
JP9
JP8
JP14
JP13
JP12
JP11
JP15

FIGURE 5-20: JUMPER LOCATIONS

DS51416A-page 32  2003 Microchip Technology Inc.


M MCP2515 DEVELOPMENT KIT
USER’S GUIDE

Appendix A. Schematics
A.1 INTRODUCTION
This section contains schematics, which are also available on the included CD-ROM.

 2003 Microchip Technology Inc. DS51416A-page 33


A.2
JP7
JP1 1 2 PIC_SPICS PIC_SPICS
1 2 JMP2
JMP2 PIC_SPICLK PIC_SPICLK
Note:
+5V +5V PIC_SPII PIC_SPII
PIC_SPIO

1
3
5
7
1
3
5
7
PIC_SPIO

1
3
5
7
1
3
5
7
1
3
5
7
1
3
5
7
RN2 RN6 PIC_CLK PIC_CLK
RN4 RN1 RN7 RN5
RN4S_1 RN4S_1
PC_OSC PC_OSC
RN4S_1 RN4S_1 470R RN4S_1 RN4S_1 470R
4k7 470R 4k7 470R
PIC_INT PIC_INT

2
4
6
8
2
4
6
8
GND GND

2
4
6
8
2
4
6
8
2
4
6
8
2
4
6
8

DS51416A-page 34
+5V +5V

H2

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
PC_TXC 1 2 +5V
3 1 2 4 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 D16
PC_RXC 3 4 PC_RES
PC_CLK 5 6 PC_SPICS
5 6
PC_RTS0 7 8 PC_SPII
9 7 8 10
PC_RTS1 PC_SPIO
SCHEMATIC

9 10
11 12

2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
PC_RTS2 PC_SPICLK
11 12

RED
RED
RED
RED
RED
RED
PC_OSCO 13 14 PC_INT
15 13 14 16
PC_OSC PC_RXBF0

GREEN
GREEN
GREEN
GREEN
GREEN
GREEN
GREEN
GREEN
GREEN
GREEN
15 16
GND 17 18 PC_RXBF1
19 17 18 20
19 20

HEADER 10X2

U1 U7
PC_TXC 1 18 +5V PIC_TXC 1 18 +5V
2 TXCAN VCC 17 H5 2 TXCAN VCC 17
PC_RXC RXCAN RESET PC_RES PIC_RXC RXCAN RESET PIC_RES
RN3 PC_CLK 3 16 PC_SPICS PIC_TXC 1 2 +5V PIC_CLK 3 16 PIC_SPICS
CLKOUT CS 1 2 CLKOUT CS
EPC_RTS0 2 1 PC_RTS0 4 15 PC_SPII PIC_RXC 3 4 PIC_RES PIC_RTS0 4 15 PIC_SPII
4 3 5 TX0RTS SO 14 C2 5 3 4 6 5 TX0RTS SO 14 C10
EPC_RTS1 PC_RTS1 PC_SPIO PIC_CLK PIC_SPICS PIC_RTS1 PIC_SPIO

1
1

6 5 6 TX1RTS SI 13 7 5 6 8 6 TX1RTS SI 13
EPC_RTS2 PC_RTS2 PC_SPICLK PIC_RTS0 PIC_SPII PIC_RTS2 PIC_SPICLK
8 7 7 TX2RTS SCK 12 9 7 8 10 7 TX2RTS SCK 12 0.1uF
PC_OSCO OSC2 INT PC_INT 0.1uF PIC_RTS1
9 10 PIC_SPIO PIC_OSCO OSC2 INT PIC_INT
8 11 11 12 8 11

2
2

PC_OSC PC_RXBF0 PIC_RTS2 PIC_SPICLK PIC_OSC PIC_RXBF0


OSC1 RX0BF CCAX 11 12 OSC1 RX0BF CCAX
GND 9 10 PC_RXBF1 PIC_OSCO 13 14 PIC_INT GND 9 10 PIC_RXBF1
RN4S_1 GND RX1BF 15 13 14 16 GND RX1BF
PIC_OSC 15 16 PIC_RXBF0
470R GND 17 18 PIC_RXBF1
17 18
MCP2515 19 20 MCP2515
O1 19 20 O2
3 2 GND HEADER 10X2 3 2 GND
CLK GND CLK GND
JP6
+5V 4 1 PC_OSC 1 2 +5V 4 1
VCC NC VCC NC
JMP2
C4

1
+5V IQXO-350C C7 IQXO-350C
1

0.1uF 16MHz NF
0.1uF

1
CCAX
2

R4 CCAX

2
1*5M
4k7

1
S3 S2 S1
R3 T1 S6 S5 S4
1 4 1 4 1 4
PC_INT 1 2 2 1 4 1 4 1 4
BC847B 2 3 2 3 2 3
1*5M 2 3 2 3 2 3
4k7

3
SKHRAA SKHRAA SKHRAA
SKHRAA SKHRAA SKHRAA
GND
GND

J1
1
14
2 W1 W3
EPC_SPIO
15 1 8 8 1
3 GND IO0 IO0 GND
EPC_SPICLK 2 9 9 2
16 3 +5V IO1 10 R8 10 IO1 +5V 3
TXC IO2 JP15 IO2 TXC
4 EPC_SPICS 4 11 1 2 1 2 11 4
17 RXC IO3 12 12 IO3 RXC
5 IO4 1*5M JMP2 IO4
EPC_RES
18 120R
6 EPC_RTS0
19 5 5
7 CANH 6 6 CANH
EPC_RTS1
20 CANL 7 7 CANL
8 EPC_RTS2 U3 GNDO GNDO
21 18 2 PC_SPIO DRVCAN_AREA
B1 A1
9 17 3 PC_SPICLK DRVCAN_AREA
22 16 B2 A2 4
B3 A3 PC_SPICS W2
10 15 5 PC_RES W4
B4 A4
23 14 6 GND 1 13 13 1 GND
11 13 B5 A5 7 2 GND1 IO1 14 14 IO1 GND1 2
B6 A6 +5V VCC1 IO2 IO2 VCC1 +5V
24 PC_SPII 12 8 PC_TXC 3 15 15 3 PIC_TXC
B7 A7 CTX IO3 IO3 CTX
MCP2515 Development Kit User’s Guide

12 PC_RXBF0 11 9 PC_RXC 4 16 16 4 PIC_RXC


25 B8 A8 5 CRX IO4 17 17 IO4 CRX 5
GND
13 PC_RXBF1 SD1 IO5 IO5 SD1
+5V 20 19 6 6
10 VCC G 1 GND2 GND2
GND DIR GND
7 7
DSUB 25 S PCB 90 C1 GND3 8 8 GND3

1
74HCT245 POW 9 9 POW
0.1uF CANH CANH
10 10 NOTES:
CANL 11 11 CANL

2
CCAX SD2 12 12 SD2 DEVICE NAMES/NUMBERS SHOWN HERE ARE FOR
This schematic is available on the included CD-ROM ([Link]).

GND4 GND4
REFERENCE ONLY AND MAY DIFFER FROM ACTUAL
JP5

2
2

PIGGY_CAN NUMBER.
PIGGY_CAN
ACTUAL NUMBERS ARE FOUND IN THE BOM FOR
JP14
EPC_INT THIS ASSEMBLY.

JMP2
JMP2 H2 AND H5 ARE LOCATIONS FOR CONNECTORS

1
1

EPC_SPII
JP4 JP13JMP2 OR DOUBLE ROW TERMINAL STRIP WITH .025
U2 1 2 2 1 U8
SQUARE POST.
4 6 6 4
1 RXD CANL 7 JP3 JP12JMP2 7 CANL RXD 1 THERE IS LOCATIONS FOR 2 PIN SHORTING
TXD CANH CANH TXD
1 JMP2 2 2 1 SHUNTS JP1 TO JP7 AND JP11 TO JP15
GND 2 5 5 2 GND BUT THEY ARE NOT MOUNTED.
GND REF JP2 JP11JMP2 REF GND
+5V 3 8 8 3 +5V THEY ARE ALL SHORTED BY DEFAULT BY A
VCC RS RS VCC
1 JMP2 2 2 1
SHORT CIRCUIT BETWEEN THE TWO PINS ON
MCP2551 MCP2551 THE SOLDER SIDE OF THE BOARD.
C3 JMP2
1

C8 O2 IS NOT MOUNTED ALL CLOCKING IS BY


10
1
6
2
7
3
8
4
9
5
11
1

0.1uF DEFAULT MADE BY ONE SINGLE OSCILLATOR


0.1uF
2

O1.
CCAX
2

CCAX
J4
DSUB 9 P PCB 90

 2003 Microchip Technology Inc.


M1 M3

FOOT FOOT
Note:

M4 M2

FOOT FOOT

+5V

1
R1

1
R5

1
J2 U4
C9

2
1*5M H1
1 3 1*5M GND +5V 0.1uF R6

1
CENTER IN 10k 1 2
2 1 470R C12 CCAX 1 2

2
2
VLED RA3
OUTER 3 2 OUT RA4 3 4 RA5 0.1uF U5

1
OUT_IN GND 5 6 CCAX 1*5M

2
RB0 7 8 RB1
R2 RB2 RB3 1 16 +5V 100R

1
LM7805 9 10 C1+ VCC
POWCON C6 RB4 RB5 2 15 GND J3

1
C5 + D17 11 12 V+ GND
RB6 RB7 3 14 RS232_TX 5

1
+ 1uF 13 14 4 C1- T1OUT 13 RS232_RX 9

2
1*5M C2+ R1IN
1uF 5 12 4

2
CTAN 330R HEADER 7X2 C2- R1OUT
RX
6 11 8

2
TX

1
CTAN V- T1IN
GREEN C14 7 10 3

2
T2OUT T2IN

 2003 Microchip Technology Inc.


0.1uF 8 9 7
CCAX R2IN R2OUT 2

2
GND 6
1

1
MAX232A
C13

1
1

+5V 0.1uF C11 DSUB 9 S PCB 90


R7 CCAX 0.1uF

2
CCAX
2

1
R10

2
1*5M
4k7
U6
1 8

2
1*5M PIC_MCS +5V
2 CS VCC 7
4k7 PIC_SPII RC0
S7 R9 3 SO HOLD 6
+5V PIC_SPICLK
1 4 1 2 4 WP SCK 5
RES GND PIC_SPIO
VSS SI
2 3 1*5M 25LC640
C19 470R

1
SKHRAA 0.1uF C15
2 1

2
CCAX

CCAX
GND 0.1uF
U11 GND
GND
+5V 11
32 VCC1 8 RE0 +5V +5V
VCC2 RE0
GND 9 RE1
H4 1 RE1 10
RES RE2 PIC_SPICS PIC_SPICS
GND MCLR RE2
1 2 +5V

1
R12 1 2
RA0 3 4 RB0 RA0 2 19 RD0 PIC_SPICLK PIC_SPICLK
5 3 4 6 H6 3 RA0 RD0 20
RA1 RB1 RA1 RD1
5 6 RA1 RD1
RA2 7 8 RB2 1 GND RA2 4 21 RD2 PIC_SPII PIC_SPII
9 7 8 10 1 2 5 RA2 RD2 22
RA3 RB3 RE0 RA3 RD3
R11 RA4 9 10 2 RA3 RD3
11 12 RB4 3 RE1 RA4 6 27 RD4 PIC_SPIO
PIC_SPIO
11 12 3 RA4 RD4
3 1 2 RA0 RA5 13 14 RB5 4 RE2 RA5 7 28 RD5
15 13 14 16 4 5 RA5 RD5 29
RB6 RES RD6 PIC_CLK PIC_CLK
1*5M 15 16 5 RD6
17 18 RB7 6 +5V 30 RD7
470R 19 17 18 20 6 RD7
GND +5V PC_OSC PC_OSC
19 20 RB0 33 15 RC0
LIST-1M-6P RB0 RC0 JP10
HEADER 10X2 RB1 34 16 PIC_MCS RB0 1 2 PIC_INT
35 RB1 RC1 17

2
RB2 PIC_SPICS JMP2
POT 36 RB2 RC2 18
RB3 PIC_SPICLK
RB3 RC3 J21 DEFAULT CLOSED?
RB4 37 23 PIC_SPII
+5V C18 RB5 38 RB4 RC4 24 PIC_SPIO

1
39 RB5 RC5 25
RB6 TX
RB6 RC6
0.1uF RB7 40 26 RX
RB7 RC7
2
CCAX 13
12 OSC1
31 GND1 14
GND
GND2 OSC2
PIC16C64
PICOSC
JP8
PC_OSC 1 2 NOTE J3 DEFAULT CLOSED
JP9 JMP2
PIC_CLK 1 2
U10
U9 JMP2
+5V 20
17 14 VCC
RA0 +5V
18 RA0 VCC 1
RA1 RES
1 RA1 MCLR
RA2
RA3 2 RA2 C16 C17 RA0 2 O3

1
1
3 RA3 3 RA0 1 4
RA4 RA1 +5V
TCK0 RA1 NC VCC
RES 4 0.1uF 0.1uF RA2 4
MCLR 5 RA2 2 3

2
2
RA3 GND
5 CCAX CCAX 6 RA3 GND CLK
GND RA4
GND RA5 RA4
7 IQXO-350C
6 RA5
RB0
7 RB0 21 11
RB1 RB0 RC0
8 RB1 22 RB0 RC0 12
RB2 RB1 PIC_MCS
9 RB2 23 RB1 RC1 13
RB3 RB2 PIC_SPICS
RB4 10 RB3 RB3 24 RB2 RC2 14 PIC_SPICLK H7
11 RB4 25 RB3 RC3 15 1 2
RB5 RB4 PIC_SPII GND +5V NOTES:
12 RB5 16 26 RB4 RC4 16 3 1 2 4
RB6 RB5 PIC_SPIO RC0 RD0
This schematic is available on the included CD-ROM ([Link]).

13 RB6 OSC1 15 27 RB5 RC5 17 5 3 4 6 DEVICE NAMES/NUMBERS SHOWN HERE ARE FOR
RB7 RB6 TX PIC_MCS RD1
RB7 OSC2 28 RB6 RC6 18 7 5 6 8
RB7 RX PIC_SPICS RD2 REFERENCE ONLY AND MAY DIFFER FROM ACTUAL
RB7 RC7 PIC_SPICLK 7 8
PIC16C711 9 10 RD3 NUMBER.
8 9 11 9 10 12
PIC_SPII RD4 ACTUAL NUMBERS ARE FOUND IN THE BOM FOR
19 GND1 OSC1 10 13 11 12 14
GND PIC_SPIO RD5
GND2 OSC2 13 14 THIS ASSEMBLY.
TX 15 16 RD6
17 15 16 18 H3, H4 AND H7 ARE LOCATIONS FOR CONNECTORS OR
PIC16C63 RX RD7
H3 GND 19 17 18 20 +5V DOUBLE ROW TERMINAL STRIP WITH .025 SQUARE POST.
1 2 19 20
RB6 RC0
3 1 2 4 H1 AND H6 ARE LOCATIONS FOR DOUBLE AND SINGLE
RB1 PIC_MCS HEADER 10X2
5 3 4 6
RB2 PIC_SPICS ROW TERMINAL STRIP WITH .025 SQUARE POST.
7 5 6 8
RB3 PIC_SPICLK H1 AS CONNECTOR TO LCD DISPLAY.
RB4 7 8
9 10 PIC_SPII
11 9 10 12 W5 THERE IS LOCATIONS FOR 2 PIN SHORTING SHUNTS
RB5 PIC_SPIO
13 11 12 14
RA3 TX JJP8 TO JP10 BUT THEY ARE NOT MOUNTED.
13 14
RA2 15 16 RX GND 2 3 GND JP8 AND JP10 ARE SHORTED BY DEFAULT BY A
15 16 6 GND2 GND3 7
+5V +5V SHORT CIRCUIT BETWEEN THE TWO PINS ON THE
VCC2 VCC3
HEADER 8X2 SOLDER SIDE OF THE BOARD.

NOTE! TO USE 18PIN MCU IT IS O3 IS NOT MOUNTED ALL CLOCKING IS BY


NECESSARY TO PLACE JUMPERS IN 5 8 DEFAULT MADE BY ONE SINGLE OSCILLATOR O1.
VCC1 VCC4
1 4
ALL LOCATIONS! GND1 GND4

WRAP_AREA

DS51416A-page 35
Schematics
MCP2515 Development Kit User’s Guide
NOTES:

DS51416A-page 36  2003 Microchip Technology Inc.


M MCP2515 DEVELOPMENT KIT
USER’S GUIDE

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


Condition Fix
The MCP2515 is off the bus Basic template – Go on Bus button in the
(not in Normal mode). “Bus Status” window.
The LPT port is not configured Make sure LPT address is correct (Options >
correctly. MCP2515.).
The bus rate is not set to match the Basic template – Set the bus rate in the Bus
bus. Status window.
Register template – change CNF registers.
Oscillator frequency not set to match Set the oscillator frequency
hardware (FOSC is required in bit rate (Options > MCP2515...).
formula).
Board is not connected to the Connect to the external bus using the DB9
external bus. labeled CAN.
Pinouts: CANH – pin 7, CANL – pin 2.

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.

 2003 Microchip Technology Inc. DS51416A-page 37


MCP2515 Development Kit User’s Guide
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 ([Link]).

DS51416A-page 38  2003 Microchip Technology Inc.


FAQs on Configuring the MCP2515
NOTES:

 2003 Microchip Technology Inc. DS51416A-page 39


M
WORLDWIDE SALES AND SERVICE
AMERICAS ASIA/PACIFIC Korea
168-1, Youngbo Bldg. 3 Floor
Corporate Office Australia
Samsung-Dong, Kangnam-Ku
2355 West Chandler Blvd. Suite 22, 41 Rawson Street
Seoul, Korea 135-882
Chandler, AZ 85224-6199 Epping 2121, NSW
Tel: 82-2-554-7200 Fax: 82-2-558-5932 or
Tel: 480-792-7200 Australia
82-2-558-5934
Fax: 480-792-7277 Tel: 61-2-9868-6733
Technical Support: 480-792-7627 Fax: 61-2-9868-6755 Singapore
Web Address: [Link] 200 Middle Road
China - Beijing
#07-02 Prime Centre
Atlanta Unit 915
Singapore, 188980
3780 Mansell Road, Suite 130 Bei Hai Wan Tai Bldg.
Tel: 65-6334-8870 Fax: 65-6334-8850
Alpharetta, GA 30022 No. 6 Chaoyangmen Beidajie
Beijing, 100027, No. China Taiwan
Tel: 770-640-0034
Tel: 86-10-85282100 Kaohsiung Branch
Fax: 770-640-0307
Fax: 86-10-85282104 30F - 1 No. 8
Boston Min Chuan 2nd Road
China - Chengdu
2 Lan Drive, Suite 120 Kaohsiung 806, Taiwan
Westford, MA 01886 Rm. 2401-2402, 24th Floor, Tel: 886-7-536-4818
Tel: 978-692-3848 Ming Xing Financial Tower Fax: 886-7-536-4803
Fax: 978-692-3821 No. 88 TIDU Street
Chengdu 610016, China Taiwan
Chicago Tel: 86-28-86766200 Taiwan Branch
333 Pierce Road, Suite 180 Fax: 86-28-86766599 11F-3, No. 207
Itasca, IL 60143 Tung Hua North Road
China - Fuzhou Taipei, 105, Taiwan
Tel: 630-285-0071
Unit 28F, World Trade Plaza Tel: 886-2-2717-7175 Fax: 886-2-2545-0139
Fax: 630-285-0075
No. 71 Wusi Road
Dallas Fuzhou 350001, China EUROPE
4570 Westgrove Drive, Suite 160 Tel: 86-591-7503506
Austria
Addison, TX 75001 Fax: 86-591-7503521
Tel: 972-818-7423 Durisolstrasse 2
China - Hong Kong SAR A-4600 Wels
Fax: 972-818-2924 Unit 901-6, Tower 2, Metroplaza Austria
Detroit 223 Hing Fong Road Tel: 43-7242-2244-399
Tri-Atria Office Building Kwai Fong, N.T., Hong Kong Fax: 43-7242-2244-393
32255 Northwestern Highway, Suite 190 Tel: 852-2401-1200 Denmark
Farmington Hills, MI 48334 Fax: 852-2401-3431 Regus Business Centre
Tel: 248-538-2250 China - Shanghai Lautrup hoj 1-3
Fax: 248-538-2260 Room 701, Bldg. B Ballerup DK-2750 Denmark
Kokomo Far East International Plaza Tel: 45-4420-9895 Fax: 45-4420-9910
2767 S. Albright Road No. 317 Xian Xia Road France
Kokomo, IN 46902 Shanghai, 200051 Parc d’Activite du Moulin de Massy
Tel: 765-864-8360 Tel: 86-21-6275-5700 43 Rue du Saule Trapu
Fax: 765-864-8387 Fax: 86-21-6275-5060 Batiment A - ler Etage
China - Shenzhen 91300 Massy, France
Los Angeles
Rm. 1812, 18/F, Building A, United Plaza Tel: 33-1-69-53-63-20
18201 Von Karman, Suite 1090 No. 5022 Binhe Road, Futian District Fax: 33-1-69-30-90-79
Irvine, CA 92612 Shenzhen 518033, China
Tel: 949-263-1888 Germany
Tel: 86-755-82901380 Steinheilstrasse 10
Fax: 949-263-1338 Fax: 86-755-8295-1393 D-85737 Ismaning, Germany
Phoenix China - Shunde Tel: 49-89-627-144-0
2355 West Chandler Blvd. Room 401, Hongjian Building Fax: 49-89-627-144-44
Chandler, AZ 85224-6199 No. 2 Fengxiangnan Road, Ronggui Town Italy
Tel: 480-792-7966 Shunde City, Guangdong 528303, China Via Quasimodo, 12
Fax: 480-792-4338 Tel: 86-765-8395507 Fax: 86-765-8395571 20025 Legnano (MI)
San Jose China - Qingdao Milan, Italy
2107 North First Street, Suite 590 Rm. B505A, Fullhope Plaza, Tel: 39-0331-742611
San Jose, CA 95131 No. 12 Hong Kong Central Rd. Fax: 39-0331-466781
Tel: 408-436-7950 Qingdao 266071, China Netherlands
Fax: 408-436-7955 Tel: 86-532-5027355 Fax: 86-532-5027205 P. A. De Biesbosch 14
Toronto India NL-5152 SC Drunen, Netherlands
6285 Northam Drive, Suite 108 Divyasree Chambers Tel: 31-416-690399
Mississauga, Ontario L4V 1X5, Canada 1 Floor, Wing A (A3/A4) Fax: 31-416-690340
Tel: 905-673-0699 No. 11, O’Shaugnessey Road United Kingdom
Fax: 905-673-6509 Bangalore, 560 025, India 505 Eskdale Road
Tel: 91-80-2290061 Fax: 91-80-2290062 Winnersh Triangle
Japan Wokingham
Benex S-1 6F Berkshire, England RG41 5TU
3-18-20, Shinyokohama Tel: 44-118-921-5869
Kohoku-Ku, Yokohama-shi Fax: 44-118-921-5820
Kanagawa, 222-0033, Japan
Tel: 81-45-471- 6166 Fax: 81-45-471-6122 07/28/03

DS51416A-page 40  2003 Microchip Technology Inc.

You might also like