DEVELOPMENT KIT
USER'S GUIDE
Microchip Technology Inc.
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480.786.7200 Fax: 480.899.9210
© 1999 Microchip Technology Inc. Printed in the U.S.A. 11/99
DS51195A
MCP2510
1999 Microchip Technology Inc. Preliminary DS51195A
Information contained in this publication regarding device applications and the like is intended by way of suggestion
only. 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. Use of Microchip’s products as critical components in life support
systems is not authorized except with express written approval by Microchip.
1999 Microchip Technology Incorporated. All rights reserved.
The Microchip logo, name, PIC, and PICmicro are registered rademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
All product/company trademarks mentioned herein are the property of their respective companies.
MCP2510 DEVELOPMENT KIT
USERS GUIDE
MCP2510 Development Kit User’s Guide
DS51195A Preliminary 1999 Microchip Technology Inc.
MCP2510 DEVELOPMENT KIT USERS
Table of Contents
1999 Microchip Technology Inc. Preliminary DS51195A-page iii
Chapter 1. Introduction
1.1 Introduction .....................................................................................1
1.2 Highlights ........................................................................................1
1.3 What is the MCP2510 Development Kit ................ ..... .... ..... ...........1
1.4 Multiple Uses for the MCP2510 Development Kit ...........................2
1.5 How the MCP2510 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 MCP2510 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 Prog ra m .... ................................. ................................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 MCP2510 Register View Template ...............................................15
4.4 Basic Template .............................................................................21
4.5 Menus ...........................................................................................27
MCP2510 Developme nt Kit User’s Guide
DS51195A-page iv Preliminary 1999 Microchip Technology Inc.
Chapter 5. Reconfigure the Hardware
5.1 Introduction ...................................................................................29
5.2 Highlights ......................................................................................29
5.3 Node Configuratio ns ....................... .............. .............. .............. ....29
5.4 Oscillator Configurations ...............................................................30
5.5 The Jumper Settings .....................................................................31
Appendix A. Schematics
A.1 Introduction ...................................................................................33
A.2 Highlights ......................................................................................33
A.3 Schematic .....................................................................................34
Appendix B. FAQs on Configuring the MCP2510
B.1 Introduction ...................................................................................37
B.2 Highlights ......................................................................................37
B.3 FAQs .............................................................................................37
Worldwide S al e s a nd Se rvice .. ........ .. .. ........ .. .. ........ .. .. ........ .. .. ........ .. .. ...40
1999 Microchip Technology Inc. Preliminary DS51195A-page 1
MCP2510 DEVELOPMENT KIT
USERS GUIDE
Chapter 1. Introduction
1.1 Introd uction
This user’s guide is written assuming some basic knowledge of the CAN
protocol and terms defined b y CAN. Those users who do not have this basic
CAN knowledge are suggested to read Microchip's “CAN Basics” application
note (AN713), the MCP2510 data sheet (DS21291), and/or the Bosch GmbH
CAN specification version 2.0. The application note and data sheet are
av ailable on Microchip's WEB site.
1.2 Highlights
This chapter discusses:
What is the MCP2510 Development Kit
Multiple Uses for the MCP2510 Development Kit
How the MCP2510 Development Kit Helps You
Host Computer System Requirements
1.3 What is the MCP2510 Development Kit
The MCP2510 Development Kit is a two node Controller Area Network (CAN)
tool that can be used in the evaluation/implementation of the MCP2510 stand-
alone CAN controller. The software allows manipulation of the MCP2510 at
the bit level and byte level with one template, and high level control with a
second template.
One node is controlled by the PC which acts as a microcontroller using
the provided software. This node can be used for basic MCP2510 eval-
uation/development. This node will be referred to node0 throughout this
document.
The second node is controlled by a microcontroller that is programed by
the user as part of dev i ce validation and/ or system deve lo pme nt.
The two nodes are connected together via a CAN bus which 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 node1 throughout this
document.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 2 Preliminary 1999 Microchip Technology Inc.
1.4 Multiple Uses for the MCP2510 Dev elopment Kit
The MCP2510 Development Kit is used for evaluation or CAN node
development utilizing the MCP2510. The tool is ideal for beginner CAN
designers and/or those new to the MCP2510. Basic input and output
functionality can be easily demonstrated by transmitting and receiving CAN
messages.
The MCP2510 Development Kit also has multiple board configurations (via
cutting traces between jumper holes) which allows the user to customize as
needed.
1.4.1 Use as an Evaluation Tool
Evaluation of the CAN protocol and the MCP2510 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 for more details on
the templates.
1. The Register template is used primarily for configuring/controlling indi-
vidual registers in the MCP2510. All of the registers are modifiable, both
bit-by-bit and byte-by-byte. This template allows the us er to manipulat e
the MCP2510 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 MCP2510 while on a
CAN bus. Direct register manipulation is not possible with this template.
Bit rates and messages can be changed. Timed transmissions can be
achiev ed using this template. This template also serves as a simple bus
monitor.
1.4.2 Use as a Development Tool
The MCP2510 Developer’s Tool can assist in development of a MCP2510
based CAN node by utilizing node1, either by itself, or in conjunction with
node0. Example, node0 could be used as a simple bus monitor (using the
basic template) in order to monitor the dev elopment of node1 (microcontroller
node).
Another use of node0 may be used to set/verify bit timings, masks and filters.
1999 Microchip Technology Inc. Preliminary DS51195A-page 3
Introduction
1.4.3 Multiple Configurations Possible
There are multiple board configurations which gives the user versatility in
node development/evaluation.
The board has three oscillator sockets allowing multiple oscillator con-
figurations.
The board has multiple CAN bus configurations (see Chapter 5).
Prototyping areas are available to allow the use of other MCUs that are
not suppo rted by the provided sockets and to change the CAN’s physi-
cal layer.
Some of the configurations are achieved via trace cutting and installing
jumpers. The board configurations and jumper locations are discussed in
detail in chapters 5 and 6.
1.5 How the MCP2510 Development Kit Helps You
The MCP2510 Development Kit can help module and system designers get
up to speed with the MCP2510 and aids in the development of the MCP2510
into a CAN bus.
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 Syst em Requirements
The software will run on Windows® 95/98 or Windows NT®. Windows NT
requires drivers (port95nt.exe) that are downloadable from www .kv aser .se
or by searching the internet for port95nt.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 4 Preliminary 1999 Microchip Technology Inc.
NOTES:
1999 Microchip Technology Inc. Preliminary DS51195A-page 5
MCP2510 DEVELOPMENT KIT
USERS GUIDE
Chapter 2. Installation
2.1 Introd uction
This chapter describes the procedure for installing the MCP2510
Development Kit.
2.2 Highlights
The items discussed in this chapter are:
MCP2510 Development Kit Components
Installing the Hardware
Installing the Software
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 6 Preliminary 1999 Microchip Technology Inc.
2.3 MCP2510 Development Kit Components
The MCP2510 Development Kit consists of these items:
MCP2510 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 Techni cal Library CD-ROM
Figure 2.1: MCP2510 Development Kit Components
1999 Microchip Technology Inc. Preliminary DS51195A-page 7
Installation
2.4 Installing the Hardware
REQUIRED
The target board is connected to the PC via the 25-pin parallel cable provided.
This is a standard 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.
OPTIONAL
There are two DB9 connectors:
One is a RS-232 interface for connecting to the PC as applications permit.
This connector is connected to Node1 and is typically used during PICmicro
MCU development to assist the user in design and/or debug (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. It 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. Other method:
Through Windows 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
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 8 Preliminary 1999 Microchip Technology Inc.
NOTES:
1999 Microchip Technology Inc. Preliminary DS51195A-page 9
MCP2510 DEVELOPMENT KIT
USERS GUIDE
Chapter 3. Getting Started
3.1 Introd uction
This chapter explains how to set up the MCP2510 Development Kit for basic
evaluati on ope ratio n.
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 that has two templates that perform
different functions. Chapter 4 details the operation of the templates and the
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 MCP2510 Register View Template
This template allows low-level control of the MCP2510. This template would
typically be used to evaluate/test the MCP2510 at the bit level. All of the
registers required for complete configuration are available in this template.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 10 Preliminary 1999 Microchip Technology Inc.
Figure 3.1: MCP2510 Register View Template
The following windows are available in this template:
Status The status window shows the contents of CANSTAT
register (operation mode and interrupt flag codes), TX and
RX error counts, and EFLG register contents.
In addition, there are buttons to clear the ov erflow 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.
1999 Microchip Technology Inc. Preliminary DS51195A-page 11
Getting Started
3.3.2 Basi c Template
The Basic Template is a high level tool which focuses on CAN bus traffic. This
template would typically be used to observe the MCP2510 while on the bus.
Node1 dev elopment can be ev aluated by using the basic template with node0.
Figure 3.2: Basic Template
The following windows are associated with the Basic Template:
Bus Status This window, labeled MCP2510 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 Transmission
window.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 12 Preliminary 1999 Microchip Technology Inc.
3.4 Starting the Program
This section steps through the steps needed to start the program.
1. To r un the s oftware, sele ct
Start > Progr ams> Mi crochi p> CAN King
. Or
find WC32.exe using Explorer.
2. A dialog will appear stating that putting this system on a can bus without
configuring properly 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 MCP2510 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 > MCP2510...
).
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 repeated at regular
intervals (cyclic).
Message
Format Window This window determines the format of the displayed data
in the output window. The default is Standard Text F ormat
which displays the message data as normal data.
1999 Microchip Technology Inc. Preliminary DS51195A-page 13
Getting Started
3.6 Hardware Overview
The target board consists of two CAN nodes (MCU, MCP2510, and 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.3 shows the main components of the board.
LPT Port The link between the MCP2510 and the PC which acts as
the MCU for node0. The parallel port is used to allow the
PC to communicate with MCP2510 via SPI.
COM Port The communications port (COM) is connected to the
PICmicro MCU sockets (USART pins) via a MAX-232
device so serial communications are 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 MCP2510s and the PICmicro MCU. By cutting
traces and installing jumpers, other oscillator
configurations can be achieved. See Chapter 5 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.
Non-Volatile
Memory Use of the 64-kbit SPI™ EEPROM is defined by the user.
It is on the same SPI bus as the MCP2510 so care has to
be taken to utilize the chip selects properly.
MCP2510 The MCP2510 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
MCP2510.
RTS Buttons These buttons are used to request transmission of the
corresponding MCP2510s 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 MCP2510
Development Kit to an external bus.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 14 Preliminary 1999 Microchip Technology Inc.
Figure 3.3: MCP2510 CAN Development Board
LTP Port COM Port
PICmicro MCU
PICmicro MCU
PICmicro MCU
MCU Prototyping Area
CAN Connector
Transceiver
Prototyping Area
Transceiver
Prototyping Area
MCP2510
Oscillator
Socket Oscillator
Socket Oscillator
Socket
MCP2510
1999 Microchip Technology Inc. Preliminary DS51195A-page 15
MCP2510 DEVELOPMENT KIT
USERS GUIDE
Chapter 4. The Software Templates
4.1 Introd uction
There are two templates included with the MCP2510 Development Kit that
gives the user low-level bit control or higher level message control of the
MCP2510.
4.2 Highlights
The items discussed in this chapter are:
MCP2510 Register View Template
Basic Template
Menus
4.3 MCP2510 Register View Template
This template allows low level control of the MCP2510. This template is
typically used to ev aluate/test the MCP2510 at the bit lev el. All of the registers
required for complete configuration are available in this t emplate.
Register values can be changed on both a byte lev el and a bit lev el. 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 box es are only modifiable when unshaded. Shaded bit box es are read-
only bits.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 16 Preliminary 1999 Microchip Technology Inc.
Figure 4.1: MCP2510 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.2: Status Window
1999 Microchip Technology Inc. Preliminary DS51195A-page 17
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 MCP2510. This is done to allow the
user to test different configurations against message identifiers that would
appear on the bus.
For example, Figure 4.3 shows and 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 MCP2510 by clicking the Write button.
Figure 4.3: Message Filter Window
Note: The masks and filters can be written only when the MCP2510 is in
configuration mode.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 18 Preliminary 1999 Microchip Technology Inc.
4.3.3 Physical Layer Window
The Physical La yer window is where the CAN bus rate is configured. The user
has bit level control of the three CNF registers (CNF1, CNF2, and CNF3) which
sets 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 > MCP2510…
from the menu bar.
The CNF registers can be modified only when the MCP2510 is in
configuration mode and will display shaded in all other modes of operation.
Figure 4.4: Physical Layer Window
1999 Microchip Technology Inc. Preliminary DS51195A-page 19
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 MCP2510
TXRTSCTRL
This register configures the RTS pins (TXnRTS) as either request to send or
as digital inputs and the pin values are displayed in the register if configured
as digital inputs.
BFPCTRL
This register configures the receive buffer full pins (RXnBF) as buffer full
interrupts or digital outputs and the value of the pins are displayed if
configured as digital outputs.
CANINTF
CANINTF is the is the flag register for the eight sources of interrupts.
CANINTE
This register is the interrupt enables for the eight interrupt sources. Enabled
interrupts are mapped to the INT pin.
CANCTRL
CANCTRL sets the modes of operation, and the clock out enable and prescaler
(CLKOUT pin).
Figure 4.5: Configuration Window
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 20 Preliminary 1999 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 bo x 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.6: Transmit Window
1999 Microchip Technology Inc. Preliminary DS51195A-page 21
The Software Templates
4.3.6 Receive Window
This window contains all of the buffer contents for the receive b uffers 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.7: Receive Window
4.4 Basic Template
The Basic Template is a high lev el tool which focuses on CAN bus traffic. The
user only has high level control of the MCP2510 (i.e., no direct register
control) which 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 MCP2510
Note: Selecting
Messa ges > M CP2510 E val B oard > Rec eive Buff er
(or
Transmit Buffer) while holding down the shift key will open up
duplica te wi ndows s o mul tip le transmit or r ece ive windows can be
monitored simultaneously.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 22 Preliminary 1999 Microchip Technology Inc.
Other functions of the basic template are 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 that could be
used to evaluate the MCP2510 on a CAN bus or assist in development by
monitoring how node1 is operating.
Figure 4.8: The Basic Template
Note: Node0 is configured to receive ALL mes sages by default w hile in
the basic template. The user has the option to maintain MCP2510
configurations when switching templates by selecting
Options >
MCP251…
and deselecting the Reset MCP2510 on Opening box.
Keep in mind that deselecting this box may create unforeseen
problems if the MCP2510 was not configured properly previously.
1999 Microchip Technology Inc. Preliminary DS51195A-page 23
The Software Templates
4.4.1 Bus Status
This window, labeled MCP2510 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
select between Bus Statistics and Bus Parameters view.
In the Bus Statistics view, the bus loading, bus parameters, and bus status
can 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 allows configuration of the bus rate, the sample point,
the synchronizing jump width (SJW), switching between Normal and Listen
Only modes of operation.
Figure 4.9: Bus Status
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 24 Preliminary 1999 Microchip Technology Inc.
4.4.2 Output
The output window displays the messages that are received and transmitted
by node0. 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 and the time stamping function can be
changed to either a running time or a delta time. See Section 4.4.5 for more
details.
Clicking the right mouse button while in this window brings up a menu which
includes auto scroll, fixed positions, and cut and 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.10: Output Window
1999 Microchip Technology Inc. Preliminary DS51195A-page 25
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 be 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.11: 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.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 26 Preliminary 1999 Microchip Technology Inc.
4.4.4 Tim ed Tr ansmission 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 one time 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 – 10s). The other selections, Just-in-Time and Manual are
not available in this software.
Figure 4.12: 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 F ormat 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.13: Message Formats Window
1999 Microchip Technology Inc. Preliminary DS51195A-page 27
The Software Templates
4.5 Menus
The menu items for the most part are identical in both the register and basic
template views. The fe w exceptions will be indicated in the descriptions below .
Only two menu items will be discussed in this section, as the others are self
explanatory.
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 byte,
message.
The CAN Kingdom message type menu items are for transmitting messages
that adhere to the CAN Kingdom higher layer protocol (HLP).
OPTIONS MENU
The options menu contains the configurable properties of both the hardware
and the software.
The d efault nume ric base i s sele cted b y
Options > Global
. A uto-save s witches
are also contained here.
Options > MCP2510…
is where the LPT port address is selected, and where
the oscillator frequency is set in software. This menu also contains a switch
that determines whether or not the MCP2510 will be reset on file open. This
feature is for those users who want to switch between templates without
changing the MCP2510 configuration (e.g., masks and filters are set to
receive ALL messages in the Basic template unless this box is deselected).
Figure 4.14: 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 a oscillator frequency.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 28 Preliminary 1999 Microchip Technology Inc.
NOTES:
1999 Microchip Technology Inc. Preliminary DS51195A-page 29
MCP2510 DEVELOPMENT KIT
USERS GUIDE
Chapter 5. Recon figu re the Hardware
5.1 Introd uction
The MCP2510 Development Kit has several different configurations making it
a versatile tool.
5.2 Highlights
The items discussed in this chapter are:
Node Conf igu rations
Oscillator Routing
The Jumper Settings
5.3 Node Configurations
The versatility of the MCP2510 Development Kit is possible by changing the
configuration of the board. Refer to Section 5.5 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
node0. This configuration does not have to be connected to the CAN bus
because no CAN communication occurs. This configuration is used for
ev aluation or familiarization of the MCP2510. 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 and traces must be cut if installed jumpers are to function
properly.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 30 Preliminary 1999 Microchip Technology Inc.
5.3.2 PC Node Distributed (one node, on CAN bus)
This configuration is the same as above with the addition that it is connected
to an external CAN bus via the CAN connector (DB9).
Typically, this configuration would be used to further ev aluate the MCP2510 by
observing how it functions on an external CAN bus. Experimentation of bit
timings, masks and filters, interrupts, RTS pins, etc. can be performed while
using the Register Template. Simple bus monitoring can be achieved using
the Basic Template while in the configuration.
5.3.3 Two Node Embedded System
This configuration utilizes node0 and node1 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 MCP2510 uses masks and filters
to accept/reject messages. SPI modules and interrupt handlers ma y be under
development at this stage in the development.
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 simply places the microcontroller node (node1) on the CAN
bus.
5.4 Oscillator Configurations
There are three oscillator sockets. By default, both MCP2510s and the
PICmicro MCU sockets use a common oscillator. All three socket outputs are
tied together, therefore, the oscillator can be placed in any socket.
Warning: Care must be taken when installing more than one oscillator. The
jumper s ettings must be cor rect or contenti on will occur at some or
all of the devices oscillator inputs causing 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.
1999 Microchip Technology Inc. Preliminary DS51195A-page 31
Reconfigure the Hardware
5.5 The Jumper Settings
There are multiple jumper settings that allow the MCP2510 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 Node0
JP2 Connects Node0 82C251 RS pin to external bus (DB9 J4)
JP3 Connects Node0 82C251 CANH pin to external bus (DB9 J4)
JP4 Connects Node0 82C251 CANL pin to external bus (DB9 J4)
JP5 Connects Node0 82C251 RXD pin to e xternal bus (DB9 J4)
JP6 Connects oscillator O2 to oscillator O1
JP7 Connects LEDs for Node1
JP8 Connects oscillator O3 to oscillator O1
JP9 Connects oscillator O3 to oscillator O2
JP10 Connects Node1 MCP2510 INT pin to PICmicro RB0 pin
JP11 Connects Node1 82C251 RS pin to external bus (DB9 J4)
JP12 Connects Node1 82C251 CANH pin to external bus (DB9 J4)
JP13 Connects Node1 82C251 CANL pin to external bus (DB9 J4)
JP14 Connects Node1 82C251 RXD pin to external bus (DB9 J4)
JP15 Connects 120 ohm terminating resister to the CAN bus
These jumpers are provided to disconnect the 82C251 device from the
bus so other physical layers can be used, including a third party daughter
card available from Kvaser AB.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 32 Preliminary 1999 Microchip Technology Inc.
Figure 5.1: Jumper Locations
1999 Microchip Technology Inc. Preliminary DS51195A-page 33
MCP2510 DEVELOPMENT KIT
USERS GUIDE
Appendix A. Schematics
A.1 Introduction
This section contains the schematics. The schematics are also available on
the included CD-ROM.
A.2 Highlights
This section contains:
Schematic
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 34 Preliminary 1999 Microchip Technology Inc.
A.3 Schematic
Note: This schematic is available on the included CD-ROM (03-01522r1-S1.pdf).
1999 Microchip Technology Inc. Preliminary DS51195A-page 35
Schematics
Note: This schematic is available on the included CD-ROM (03-01522r1-S2.pdf).
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 36 Preliminary 1999 Microchip Technology Inc.
NOTES:
1999 Microchip Technology Inc. Preliminary DS51195A-page 37
MCP2510 DEVELOPMENT KIT
USERS GUIDE
Appendix B. FAQs on Configuring the MCP2510
B.1 Introduction
This section answers some frequently asked questions on configuring the
MCP2510 to assist those who are new to the device.
B.2 Highlights
This section discusses:
•FAQs
B.3 FAQs Why doesn ’t the develo pment tool succe ssf ully co mmun icate on an
external bus?
There are sev er al p ossible reas ons w h y this i s the ca se . Th e foll o wing a re th e
most common problems:
The node is acknowledging messages in the Basic template but not
displayi ng them.
The MCP2510 filters are not matching the incoming messages. This can be
caused because the Reset MCP2510 on Open is deselected causing the old
register contents (masks and filters) to remain unchanged when switching
templates.
Press reset or select the Reset MCP2510 on Open box and reopen the
template.
Condition Fix
The MCP2510 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 > MCP 2510
).
The bus rate is not set to match
the bus. Basic Template – Set the bus rate in the
Bus Status wind ow.
Register Template – change CNF regis-
ters.
Oscillator frequency not set to
match hardware (Fosc is
required in bit rate formula).
Set the oscill ator frequency
(
Options > MCP 2510
).
Board is not connected to the
external bus. Connect to the external bus using the
DB9 labeled CAN.
Pinouts: CANH – pin 7, CANL – pin2.
MCP2510 Developme nt Kit User’s Guide
DS51195A-page 38 Preliminary 1999 Microchip Technology Inc.
I cannot enter values in the Physical Layer window.
The MCP2510 is not in Configuration mode. The three CNF registers are only
modifiable while in Configuration mode. Change modes.
The mask and filter registers do not change when pressing the write
button.
The MCP2510 is not in Configuration mode. Masks and filters are changeable
only in Configuration mode. Change mode.
How do I enter extended IDs into a field?
Lead off the number with an ‘x’ which indicates extended frame
(e.g., x12345).
Are there daughter board available that change the physical layer?
Yes, contact Kvaser AB for details (www.kvaser.se).
1999 Microchip Technology Inc. Preliminary DS51195A-page 39
FAQs on Configuring the MCP2510
NOTES:
Information cont ai ned in this publication regarding device applicati ons and the like is intended for suggestion onl y and may be supersede d by u pdat es. No representa tion or warranty is given and no liability is assumed
by Microchip Technology Incorpora ted with respec t to the accuracy or us e of such informa tion, or infringe ment of patent s or other intel lectual proper ty rights arisi ng from such use or othe rwise. Use of Mic rochip’ s products
as critical c om ponents in life support sys te m s is not autho rized except with express w ri t ten approval by Microchip. No licens es are conveyed, impli cit l y or otherwis e, under any intellectual pro perty right s. The M icrochip
logo and name are registered trademarks of Microchip Technology Inc. in the U.S. A. and other countri es. All rights reserved. All other tradem arks mentioned herein are the property of their res pective companies.
DS51195A-page 40 Preliminary 1999 Microchip Technology Inc.
All rights reserved. © 11/8/99 Microchip Technology Incorporated. Printed in the USA. Monday, November 08, 1999 Printed on recycled paper.
AMERICAS
Corporate Office
Microchip Technology Inc.
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-786-7200 Fax: 480-786-7277
Technical Support: 480-786-7627
Web Address: http://www.microchip.com
Atlanta
Microchip Technology Inc.
500 Sugar Mill Road, Suite 200B
Atlanta, GA 30350
Tel: 770-640-0034 Fax: 770-640-0307
Boston
Microchip Technology Inc.
5 Mount Royal Av enue
Marlborough, MA 01752
Tel: 508-480-9990 Fax: 508-480-8575
Chicago
Microchip Technology Inc.
333 Pierce Road, Suite 180
Itasca, IL 60143
Tel: 630-285-0071 Fax: 630-285-0075
Dallas
Microchip Technology Inc.
4570 Westgrove Drive, Suite 160
Addison, TX 7524 8
Tel: 972-818-7423 Fax: 972-818-2924
Dayton
Microchip Technology Inc.
Two Prestige Place, Suite 150
Miamisburg, OH 45342
Tel: 937-291-1654 Fax: 937-291-9175
Detroit
Microchip Technology Inc.
Tri-Atria Office Building
32255 Northwestern Highway, Suite 190
Farmington Hills, MI 48334
Tel: 248-538-2250 Fax: 248-538-2260
Los A n ge les
Microchip Technology Inc.
18201 Von Karman, Suite 1090
Irvine, CA 92612
Tel: 949-263-1888 Fax: 949-263-1338
New York
Microchip Technology Inc.
150 Motor Parkway, Suite 202
Hauppauge, NY 11788
Tel: 516-273-5305 Fax: 516-273-5335
San Jose
Microchip Technology Inc.
2107 North First Street, Suite 590
San Jose, CA 95131
Tel: 408-436-7950 Fax: 408-436-7955
AMERICAS (continued)
Toronto
Microchip Technology Inc.
5925 Airport Road, Suite 200
Mississauga, Ontario L4V 1W1, Canada
Tel: 905-405-6279 Fax: 905-405-6253
ASIA/PACIFIC
Hong Kong
Microchip Asia Pacific
Unit 2101, Tower 2
Metroplaza
223 Hing Fong Road
Kwai Fong, N.T., Hong Kong
Tel: 852-2-401-1200 Fax: 852-2-401-3431
Beijing
Microchip Technology, Beijing
Unit 915, 6 Chaoyangmen Bei Dajie
Dong Erhuan Road, Dongcheng District
New China Hong Kong Manhattan Building
Beijing 100027 PRC
Tel: 86-10-85282100 Fax: 86-10-85282104
India
Microchip Technology Inc.
India Liaison Office
No. 6, Legacy, Convent Road
Bangalore 560 025, India
Tel: 91-80-229-0061 Fax: 91-80-229-0062
Japan
Microchip Technology Intl. Inc.
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
Microchip Technology Korea
168-1, Youngbo Bldg. 3 Floor
Samsung-Dong, Kangnam-Ku
Seoul, Korea
Tel: 82-2-554-7200 Fax: 82-2-558-5934
Shanghai
Microchip Technology
RM 406 Shanghai Golden Bridge Bldg.
2077 Yan’an Road West, Hong Qiao District
Shanghai, PRC 200335
Tel: 86-21-6275-5700 Fax: 86 21-6275-5060
ASIA/PACIFIC (continued)
Singapore
Microchip Technology Singapore Pte Ltd.
200 Middle Road
#07-02 Prime Centre
Singapore 188980
Tel: 65-334-8870 Fax: 65-334-8850
Taiwan, R.O.C
Microchip Technology Taiwan
10F-1C 207
Tung Hua North Road
Taipei, Taiwan, ROC
Tel: 886-2-2717-7175 Fax: 886-2-2545-0139
EUROPE
United Kingdom
Arizona Microchip Technology Ltd.
505 Eskdale Road
Winnersh Triangle
Wokingham
Ber kshir e, Engla nd R G41 5TU
Tel: 44 118 921 5858 Fax: 44-118 921-5835
Denmark
Microchip Technology Denmark ApS
Regus Business Centre
Lautrup hoj 1-3
Ballerup DK-2750 Denmark
Tel: 45 442 0 9895 Fax: 45 4420 9910
France
Arizona Microchip Technology SARL
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
Arizona Microchip Technology GmbH
Gustav-Heinemann-Ring 125
D-81739 München, Germany
Tel: 49-89-627-144 0 Fax: 49-89-627-144-44
Italy
Arizona Microchip Technology SRL
Centro Direzionale Colleoni
Palazzo Taurus 1 V. Le Colleoni 1
20041 Agrate Brianza
Milan, Italy
Tel: 39-39-65791-1 Fax: 39-39-6899883
10/18/99
WORLDWIDE SALES AND SERVICE
Microchip received QS-9000 quality system
certification for its worldwide headquarters,
design and wafer fabrication facilities in
Chandler and Tempe, Arizona in September
1999. The Company’s quality system
processes and procedures are QS-9000
compliant for its PICmicro
®
8-bit MCUs,
K
EE
L
OQ®
code hopping devices, Serial
EEPROMs and microperipheral products.
In addition, Microchip’s development systems
are ISO 90001 compliant and conform to the
stringent quality standards of the International
Standard Organization (ISO).