Microchip Technology MCP250XX Development Kit User guide

M
MCP250XX
Development Kit
User’s Guide
2004 Microchip Technology Inc. DS51266C
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 applications and the like is intended through suggestion only and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchip’s products as critical components in life support systems is not authorized except with express written approval by Microchip. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron, dsPIC, K
EELOQ
, MPLAB, PIC, PICmicro, PICSTART, PRO MATE and PowerSmart are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
AmpLab, FilterLab, microID, MXDEV, MXLAB, PICMASTER, SEEVAL, SmartShunt and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A.
Application Maestro, dsPICDEM, dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPIC, Select Mode, SmartSensor, 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.
© 2004, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received ISO/TS-16949:2002 qu ality system certification for its worldwide hea dquarters, design and wafer fabricati on facilities in Chandler an d Tempe, Arizona and Mountain View, Californ ia in October
2003. The Company’s quality system processes and procedures are for its PICmicro EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified.
®
8-bit MCUs, KEEL
®
code hopping devices, Serial
OQ
DS51266C-page ii 2004 Microchip Technology Inc.
M
MCP250XX USER’S GUIDE
Table of Contents
Preface ............................................................................................................................ 1
Chapter 1. Product Overview and Installation
1.1 Introduction and Highlights ........................................................................ 5
1.2 What is the MCP250XX Development Kit? ............................................... 5
1.3 System Requirements .............................................................................. 5
1.4 MCP250XX Development Kit Components .............................................. 6
1.5 MCP2515 Components ............................................................................ 7
1.6 Hardware Installation .............................................................................. 10
1.7 Software Installation ............................................................................... 11
Chapter 2. MCP250XX Basic View Tutorial
2.1 Introduction ............................................................................................. 13
2.2 Highlights ................................................................................................ 13
2.3 Setting up the Basic Template Evaluation Mode .................................... 13
2.4 Establishing Communications ................................................................ 20
2.5 Explaining the CAN Messages ............................................................... 22
Chapter 3. MCP250XX Register View Tutorial
3.1 Introduction ............................................................................................. 23
3.2 Highlights ................................................................................................ 23
3.3 Setting up the Register Template Evaluation Mode ............................... 23
3.4 Establishing Communication .................................................................. 27
3.5 Explaining the Register Template Windows ........................................... 27
Chapter 4. Programming the MCP250XX User Defaults
4.1 Introduction ............................................................................................. 29
4.2 Highlights ................................................................................................ 29
4.3 Device Programmer ................................................................................ 29
4.4 Programming via the ICSP™ Connector ................................................ 34
Chapter 5. Other Capabilities of the Development Board
5.1 Introduction ............................................................................................. 35
5.2 Highlights ................................................................................................ 35
5.3 Oscillator Configurations ........................................................................ 35
5.4 Node A Prototyping Area and Header Pinout ......................................... 36
5.5 External Bus Connections ...................................................................... 37
2004 Microchip Technology Inc. DS51266C-page iii
MCP250XX User’s Guide
Appendix A. Schematics and Layouts
A.1 Introduction ............................................................................................. 39
Step-up Regulator ........................................................................... 40
A.2 V
A.3 Clock and Data for Programming ........................................................... 41
A.4 PC Node ................................................................................................. 42
A.5 CAN Physical Layer ................................................................................ 43
A.6 Node A and Node B ................................................................................ 44
A.7 Caps Page .............................................................................................. 45
Index ..............................................................................................................................47
Worldwide Sales and Service .....................................................................................48
PP
DS51266C-page iv 2004 Microchip Technology Inc.
M
INTRODUCTION AND HIGHLIGHTS
This section provides general information that will be useful to know before using the MCP250XX Development Kit and touches on the following topics:
• About This Guide
• Recommended Reading
• Troubleshooting
• The Microchip Internet Web Site
• Customer Support
ABOUT THIS GUIDE
Document Layout
The User’s Guide layout is as follows:
Chapter 1: Product Overview and Installation – details the hardware and software components and discusses installation procedures.
Chapter 2: MCP250XX Basic View Tutorial – covers some of the key elements of the MCP250XX by going through the steps for setting up and running the demonstration program.
• Chapter 3: MCP250XX Register View Tutorial – details the demonstration software and the CAN system, as well as discussing the steps required to successfully communicate with the MCP250XX while in the Register template.
Chapter 4: Programming the MCP250XX Using the Development Board – describes the procedure for programming the MCP250XX using the programming circuitry and special software.
Chapter 5: Other Capabilities of the MCP250XX Development Kit - details the other capabilities of the MCP250XX Development Kit, including configuring the board for multiple oscillators, connecting the board to the MCP2515 development board and connecting the board to external CAN busses.
Appendices
Appendix A: Schematics and Layouts – lists the schematics and layout diagrams for the MCP250XX Development Kit.
Index – cross-reference listing of terms, features and sections of this document.
Worldwide Sales and Service – provides the address, telephone and fax numbers for Microchip Technology Inc. sales and service locations throughout the world.
MCP250XX USER’S GUIDE

Preface

Updates
Since Microchip tools are constantly evolving to meet customer needs, some software dialogs and/or tool descriptions may differ from this document. Please refer to the Microchip web site to obtain the latest documentation available (www.microchip.com).
2004 Microchip Technology Inc. DS51266C-page 1
MCP250XX User’s Guide
RECOMMENDED READING
For more information regarding the MCP250XX devices and other CAN related topics, the following are recommended reading. The following data sheets may be downloaded from our internet web site at www.microchip.com.
MCP2502X/2505X Data Sheet (DS21664)
This data sheet provides detailed information regarding the MCP250XX CAN I/O Expanders.
MCP2515 Data Sheet (DS21291)
This data sheet provides detailed information regarding the MCP2515 Stand-Alone CAN Controller, which is the master node on the board.
PRO MATE
This manual contains a section explaining how to program the MCP250XX devices using the specified socket module.
MCP250XX Programming Specification (DS20072)
This specification explains the requirements for programming the MCP250XX using the ICSP™ protocol.
AN815 – Understanding the MCP250XX Devices (DS00815).
AN816 – A CAN System Using Multiple MCP250XX I/O Expanders (DS00816).
AN713 – An Introduction to the CAN Protocol Application Note (DS00713)
®
II User’s Guide (DS30082)
This application note provides “the basics” for those not familiar with the CAN protocol.
AN754 – Understanding Microchip’s CAN Module Bit Timing Application Note (DS00754)
This application note is an in-depth discussion of bit timing using Microchip’s CAN module.
A CAN Kingdom by Lars-Berno Fredriksson (Kvaser AB)
This document covers the CAN Kingdom Specification and should help give some insight into the main software and some of the menu items that refer to CAN Kingdom-specific functions. For more information, please visit CAN Kingdom web site at www.cankingdom.org
CANKing Help Files
The help files are a good resource for answering some common questions about the MCP250XX Development Kit, including the CAN Kingdom-specific menu items.
README Files
Contains the latest information on the MCP250XX evaluation system.
Microsoft
®
Windows® Manuals
These manuals assume that users are familiar with the Microsoft Windows operating system. Many excellent references exist for this software program and should be consulted for general operation of the Windows
®
operating system.
TROUBLESHOOTING
See the README files for information regarding common problems not addressed in this user’s guide.
DS51266C-page 2 2004 Microchip Technology Inc.
THE MICROCHIP INTERNET WEB SITE
Microchip provides easy access to our documentation and on-line support through our World Wide Web Site at www.microchip.com. You can download files from the web site or from our FTP site at ftp://ftp.microchip.com.
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Corporate Applications Engineer (CAE)
• Hot Line
Customers should call their distributor, representative or field application engineer (FAE) for support. Local sales offices are also available to help customers. See the back cover for a listing of sales offices and locations.
Corporate applications engineers (CAEs) may be contacted at:
(480) 792-7627.
In addition, there is a Systems Information and Upgrade Line. This line provides system users a listing of the latest versions of all of Microchip’s development systems software products. Plus, this line provides information on how customers can receive any currently available upgrade kits.
The Hot Line numbers are:
1-800-755-2345 for U.S. and most of Canada, and
1-480-792-7302 for the rest of the world.
Preface
2004 Microchip Technology Inc. DS51266C-page 3
MCP250XX User’s Guide
NOTES:
DS51266C-page 4 2004 Microchip Technology Inc.
M
MCP250XX USER’S GUIDE

Chapter 1. Product Overview and Installation

1.1 INTRODUCTION AND HIGHLIGHTS

This chapter provides an overview of the MCP250XX Development Kit and covers the following topics:
• What is the MCP250XX Development Kit?
• System Requirements
• MCP250XX Development Kit Components
• MCP2515 Components
• Hardware Installation
• Software Installation

1.2 WHAT IS THE MCP250XX DEVELOPMENT KIT?

The MCP250XX Development Kit is an evaluation, demonstration and development tool for Microchip Technology’s 14-pin CAN I/O Expanders. The MCP250XX can be evaluated easily by installing the provided software and running the demonstration program. Furthermore, development can be accomplished by utilizing the bare CAN node with the prototyping area, as well as with the on-board device programmer.
The development board has the ability to program the user-defined defaults by using the device programmer module and the supplied software. Alternatively, the In-Circuit Serial Programming™ (ICSP™) protocol can be used to program the MCP250XX using the 5-pin header, which is connected to a 14-pin socket on the board. See the MCP250XX Programming Specification (DS20072) for details on programming via ICSP.
Some of the key features of the MCP250XX Development Kit include:
• Evaluation of Microchip’s CAN I/O Expanders
• Programming the MCP2505X devices using supplied software
• Programming the MCP2505X devices via the ICSP protocol
• Connectable to external CAN networks

1.3 SYSTEM REQUIREMENTS

To take full advantage of the MCP250XX features, you must install the supplied demonstration/evaluation software on a host computer. The MCP250XX requires:
• Microsoft Windows 95/98/ME/NT/2000 operating system
• One free parallel port
• CD-ROM drive
2004 Microchip Technology Inc. DS51266C-page 5
MCP250XX User’s Guide

1.4 MCP250XX DEVELOPMENT KIT COMPONENTS

The MCP250XX Development Kit contains:
• MCP250XX Development Board
• MCP250XX Development Kit User’s Guide
• MCP250XX Development Kit CD-ROM with demo and programming software
• Parallel port cable
• 9V DC power supply adapter
• Warranty/Registration card
• Three MCP25020 CAN I/O Expanders
• Three MCP25050 CAN I/O Expanders

FIGURE 1-1: MCP250XX DEVELOPMENT KIT

DS51266C-page 6 2004 Microchip Technology Inc.

1.5 MCP2515 COMPONENTS

The MCP2515 consists of four main parts (see Figure 1-4):
1. PC Node
2. Node A
3. Node B
4. Device Programmer
1.5.1 PC Node
The PC Node is the master node for the demonstration program that controls Node B. This node contains a MCP2515 Stand-Alone CAN Controller that is controlled by the host PC via a custom parallel port interface.
Note: All three nodes are connected to a common CAN bus that has external
connections via the DB9 connector.
1.5.2 Node A
Node A is a bare CAN node next to the prototyping area. This node is used for MCP250XX prototyping and can also be used to program the user defaults via the ICSP protocol. See Figure 1-2 for pinout description.
Product Overview and Installation

FIGURE 1-2: NODE A PINOUT

MCP250XX
1
2
3
4
5
6
7
14
13
12
11
10
9
8
ICSP™ Header
VPP
DD
V
V
SS
DATA
CLOCK
2004 Microchip Technology Inc. DS51266C-page 7
MCP250XX User’s Guide
1.5.3 Node B
Node B is the slave node for the demonstration program. Analog inputs (potentiometers), PWM outputs (piezo buzzer and incandescent lamp) and digital inputs (push buttons) are all connected to the MCP25050 device. It responds to inputs and CAN messages to demonstrate device functionality. See Figure 1-3 for the pinout description.

FIGURE 1-3: NODE B PINOUT

LP1
GP0
MCP250XX
14
VDD1
BZ1
S2
R20
R17
GP2
GP4
GP5
SS
V
S3
S4
13
12
11
10
S1
GP6
9
8
2
3
4
5
6
7
DS51266C-page 8 2004 Microchip Technology Inc.
Product Overview and Installation
1.5.4 Device Programmer
The Device Programmer module is used with PC software to configure the user-defined defaults.

FIGURE 1-4: MCP250XX DEVELOPMENT BOARD

DB25
Y1
U6
U15
J5
PC NODE
NODE A
J1
Y2 Y3
D2 D3 D4 D5
BZ1
J4
U3 U2
DEVICE PROGRAMMER
R17
R20
100 100
GP4 GP5
NODE B
L1
S1
J3
U14
GP6
1.5.5 Key Areas of the MCP2515
There are a few key areas on the board. Figure 1-4 illustrates these areas, while Table 1-1 details them.

TABLE 1-1: MCP250XX BOARD LAYOUT

Key Areas Description
DB25 DB25 is the connection to the host PC interface. The PC controls both
the PC Node and the Device Programmer circuit.
U6 U6 is the CAN Controller (MCP2515) of the PC Node that is controlled
by the host PC.
U15, J5 and JP4 U15 is the prototyping node. J5 is the ICSP™ header for U15. JP4 jump-
ers board power to the V J5 (ICSP header) to isolate U15 from the rest of the board during In-Circuit Serial Programming™.
U14 The MCP250XX for the demonstration program. Connected to the
potentiometers, piezo, buttons and lamp.
U3 U3 is the socket for programming the user-defined defaults using the
programming software.
Y1, Y2, Y3, JP1
and JP2
Y1, Y2 and Y3 are the oscillator sockets for each of the three CAN nodes. By default, all of the Yx outputs are connected together (JP1 and JP2 are shorted via a trace on the back of the board) and only Y1 is pop­ulated (i.e., Y1 clocks all three CAN nodes). To separate the oscillator sockets, the traces shorting JP1 and JP2 must be cut.
U11, U12, U13, J3
and J4
U11-U13 are the CAN drivers all connected to a common CAN bus. The two DB9s (J3 and J4) are the external CAN bus connections. Only J4 is populated.
D2, D3, D4 and D5 CAN traffic indicator LEDs. D2 represents all traffic. D3-D5 represent
transmitted traffic of each of the three nodes.
DD
pin of U15 and should be removed if using
2004 Microchip Technology Inc. DS51266C-page 9
MCP250XX User’s Guide

1.6 HARDWARE INSTALLATION

1.6.1 Connecting the DB25 Cable
The included DB25 cable is a male-to-male configuration and plugs into the parallel port of the host PC. Figure 1-5 shows the pin configuration.

FIGURE 1-5: DB25 PIN CONFIGURATION

DataOut
gm
_SO/P
_SCK
I
161514
SP
I
N/C
SP
Pgm
/
P
S
Cl
I_CS
ut
O
k
Pgm
/
515RES
2
1817
Dat
aW
19
RE
T
E
515RT
2
Pgm
/
ON
N
VP
O
S
25
_
P
Pgm
/
15RT
DD_
V
S
/Pgm
1
515RT
2
ON
CL
S
N
E
K
2
BufferE
n
able
251
_IN
A
T
DA
Pgm
/
NT
5I
_SI
I
2515RXBF0
SP
2515RXBF1
13121110987654321
252423222120
N/C
N/C
N/C
N/
C
GNDG
ND
GNDGNDG
ND
GND
GND
GND
1.6.2 9V Power Supply Adapter
The power supply is rated at 9V, 750 mA DC.
1.6.3 DB9 External CAN Bus Connectors (optional)
The DB9 connector, as shown in Figure 1-6, is used to connect the MCP2515 to an external CAN bus and is not necessary for basic board operation.
Note: Only the DB9 at J4 is populated. J3 is available as needed.

FIGURE 1-6: DB9 CAN CONNECTOR

d
e
NL
CA
CAN_GND
N/C
CAN_V
Reserved
9876
+
N/C
54321
N/
Reserv
C
CA
NH
DS51266C-page 10 2004 Microchip Technology Inc.
Product Overview and Installation

1.7 SOFTWARE INSTALLATION

Insert the MCP250XX Development Kit CD-ROM into the CD-ROM drive.
1.7.1 Auto-run Enabled
If auto-run is enabled, the installation program will automatically start. Follow the instructions on the screen to install the software.
1.7.2 Auto-run Not Enabled
If auto-run is not enabled:
1. Click the Start button and select Run. Enter d:\setup.exe
(where d:\ is your CD-ROM drive). Click OK. Or alternatively, find the CDROM drive using “Windows Explorer” and double click “setup.exe”.
Note: Windows NT
privileges in order to install the MXLAB
2. Follow the online instructions to install the software.
®
and Windows 2000 users must have administrative
®
software.
2004 Microchip Technology Inc. DS51266C-page 11
MCP250XX User’s Guide
NOTES:
DS51266C-page 12 2004 Microchip Technology Inc.
Loading...
+ 36 hidden pages