Upload
phungkien
View
230
Download
0
Embed Size (px)
Citation preview
2002 Microchip Technology Inc. Preliminary DS51195C
MCP2510DEVELOPMENT KIT
USER’S GUIDE
M
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 knowl-edge, 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 ourproducts.
Information contained in this publication regarding deviceapplications and the like is intended through suggestion onlyand may be superseded by updates. It is your responsibility toensure that your application meets with your specifications.No representation or warranty is given and no liability isassumed by Microchip Technology Incorporated with respectto the accuracy or use of such information, or infringement ofpatents or other intellectual property rights arising from suchuse or otherwise. Use of Microchip’s products as critical com-ponents in life support systems is not authorized except withexpress written approval by Microchip. No licenses are con-veyed, implicitly or otherwise, under any intellectual propertyrights.
DS51195C - page ii Prelimin
Trademarks
The Microchip name and logo, the Microchip logo, FilterLab,KEELOQ, microID, MPLAB, PIC, PICmicro, PICMASTER,PICSTART, PRO MATE, SEEVAL and The Embedded ControlSolutions Company are registered trademarks of Microchip Tech-nology Incorporated in the U.S.A. and other countries.
dsPIC, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,In-Circuit Serial Programming, ICSP, ICEPIC, microPort,Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM,MXDEV, MXLAB, PICC, PICDEM, PICDEM.net, rfPIC, SelectMode and Total Endurance are trademarks of MicrochipTechnology Incorporated in the U.S.A.
Serialized Quick Turn Programming (SQTP) is a service markof Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of theirrespective companies.
© 2002, Microchip Technology Incorporated, Printed in theU.S.A., All Rights Reserved.
Printed on recycled paper.
ary 2002 Microchip Technology Inc.
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.
M MCP2510 DEVELOPMENT KITUSER’S GUIDE
Table of Contents
Chapter 1. Introduction1.1 Introduction ..................................................................................... 11.2 Highlights ........................................................................................ 11.3 What is the MCP2510 Development Kit ......................................... 11.4 Multiple Uses for the MCP2510 Development Kit ........................... 21.5 How the MCP2510 Development Kit Helps You ............................. 31.6 Host Computer System Requirements ........................................... 3
Chapter 2. Installation2.1 Introduction ..................................................................................... 52.2 Highlights ........................................................................................ 52.3 MCP2510 Development Kit Components ....................................... 62.4 Installing the Hardware ................................................................... 72.5 Installing the Software .................................................................... 7
Chapter 3. Getting Started3.1 Introduction ..................................................................................... 93.2 Highlights ........................................................................................ 93.3 Software Overview .......................................................................... 93.4 Starting the Program ..................................................................... 123.5 Selecting the LPT Port .................................................................. 123.6 Hardware Overview ...................................................................... 13
Chapter 4. The Software Templates4.1 Introduction ................................................................................... 154.2 Highlights ...................................................................................... 154.3 MCP2510 Register View Template ............................................... 154.4 Basic Template ............................................................................. 214.5 Menus ........................................................................................... 27
2002 Microchip Technology Inc. Preliminary DS51195C-page iii
MCP2510 Development Kit User’s Guide
Chapter 5. Reconfigure the Hardware5.1 Introduction ...................................................................................295.2 Highlights ......................................................................................295.3 Node Configurations .....................................................................295.4 Oscillator Configurations ...............................................................305.5 The Jumper Settings .....................................................................31
Appendix A. SchematicsA.1 Introduction ...................................................................................33A.2 Highlights ......................................................................................33A.3 Schematic .....................................................................................34
Appendix B. FAQs on Configuring the MCP2510B.1 Introduction ...................................................................................37B.2 Highlights ......................................................................................37B.3 FAQs .............................................................................................37
Worldwide Sales and Service ................................................................. 40
DS51195C-page iv Preliminary 2002 Microchip Technology Inc.
M MCP2510 Development KitUser’s Guide
Chapter 1. Introduction
1.1 INTRODUCTIONThis user's guide is written assuming some basic knowledge of the CAN protocol and terms defined by CAN. Those users who do not have this basic CAN knowledge are encouraged to read Microchip's “CAN Basics” application note (AN713), the MCP2510 data sheet (DS21291) and/or the Bosch GmbH CAN specification, version 2.0. AN713 and the MCP2510 data sheet are available on Microchip's web site at www.microchip.com.
1.2 HIGHLIGHTSThis 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 KITThe 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 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 MCP2510 evaluation/development and will be referred to as node0 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 node1 throughout this document.
2002 Microchip Technology Inc. Preliminary DS51195C-page 1
MCP2510 Development Kit User’s Guide
1.4 MULTIPLE USES FOR THE MCP2510 DEVELOPMENT KITThe MCP2510 Development Kit is used for evaluation of 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) that allow the user to customize as needed.
1.4.1 Use as an Evaluation ToolEvaluation 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, ”Getting Started”, for more details on the templates.
1. The Register template is used primarily for configuring/controlling individual reg-isters in the MCP2510. All of the registers are modifiable, both bit-by-bit andbyte-by-byte. This template allows the user to manipulate the MCP2510 registersand observe the affect on functionality. Different configurations can be set up andtested. Communication on the CAN bus is, typically, of secondary importance inthis 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, though bit ratesand messages can be changed. Timed transmissions can be achieved using thistemplate. This template also serves as a simple bus monitor.
1.4.2 Use as a Development ToolThe MCP2510 Developer's Tool can assist in development of a MCP2510-based CAN node by utilizing node 1, either by itself, or in conjunction with node 0. Example, node0 could be used as a simple bus monitor (using the basic template) in order to monitor the development of node1 (microcontroller node).
Another use of node0 may be used to set/verify bit timings, masks and filters.
DS51195C-page 2 Preliminary 2002 Microchip Technology Inc.
Introduction
1.4.3 Multiple Configurations PossibleThere are multiple board configurations which 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 MCP2510 DEVELOPMENT KIT HELPS YOUThe 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.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 REQUIREMENTSThe software will run on Windows® 95/98 or Windows NT®. Windows NT requires driv-ers (port95nt.exe) that are downloadable from www.kvaser.se or by searching the internet for “port95nt”.
2002 Microchip Technology Inc. Preliminary DS51195C-page 3
MCP2510 Development Kit User’s Guide
NOTES:
DS51195C-page 4 Preliminary 2002 Microchip Technology Inc.
M MCP2510 Development KitUser’s Guide
Chapter 2. Installation
2.1 INTRODUCTIONThis chapter describes the procedure for installing the MCP2510 Development Kit.
2.2 HIGHLIGHTSThe items discussed in this chapter are:• MCP2510 Development Kit Components• Installing the Hardware• Installing the Software
2002 Microchip Technology Inc. Preliminary DS51195C-page 5
MCP2510 Development Kit User’s Guide
2.3 MCP2510 DEVELOPMENT KIT COMPONENTSThe 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 Technical Library CD-ROM
FIGURE 2-1: MCP2510 Development Kit Components
DS51195C-page 6 Preliminary 2002 Microchip Technology Inc.
Installation
2.4 INSTALLING THE HARDWARE
2.4.1 RequiredThe 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 OptionalThere are two DB9 connectors:One is a RS-232 interface for connecting to the PC as applications permit. This con-nector is connected to node1 and is typically used during PICmicro® MCU develop-ment to assist the user to 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 that can be used to connect the board to an existing CAN bus. The pinout for this connector follows the defacto standard recommended pinout of pin 7 = CANH and pin 2 = CANL.
FIGURE 2-2: DB9 CAN Bus Connector
2.5 INSTALLING THE SOFTWAREInsert the CD into the PC. Click the Start button and select Run. Enter the path to the file wc32n.exe or select Browse and find the file. Alternate method: Through Win-dows Explorer®, run the file named wc32n.exe. Follow the instructions for installing the software program.
1
2
3
4
5
9
8
7
6Not Connected
CANH
Not Connected
In Use
Not Connected
CANL
In Use
In Use
Not Connected
2002 Microchip Technology Inc. Preliminary DS51195C-page 7
MCP2510 Development Kit User’s Guide
NOTES:
DS51195C-page 8 Preliminary 2002 Microchip Technology Inc.
M MCP2510 Development KitUser’s Guide
Chapter 3. Getting Started
3.1 INTRODUCTIONThis chapter explains how to set up the MCP2510 Development Kit for basic evaluation operation.
3.2 HIGHLIGHTSThe items discussed in this chapter are:• Software Overview• Starting the Program• Selecting the LPT Port• Hardware Overview
3.3 SOFTWARE OVERVIEWThe 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 MCP2510 Register View TemplateThis template allows low-level control of the MCP2510 and 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.
2002 Microchip Technology Inc. Preliminary DS51195C-page 9
MCP2510 Development Kit User’s Guide
FIGURE 3-1: MCP2510 Register View Template
The following windows are available in this template:
MessageFilter
Configuration
Transmit
Receive
StatusWindow Physical Layer
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.
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.
DS51195C-page 10 Preliminary 2002 Microchip Technology Inc.
Getting Started
3.3.2 Basic TemplateThe Basic Template is a high-level tool that focuses on CAN bus traffic. This template would typically be used to observe the MCP2510 while on the bus. Node1 development can be evaluated by using the basic template with node0.
FIGURE 3-2: Basic Template
The following windows are associated with the Basic Template:
Output
History
Bus
TimedTransmissions
Status
Window
Message Format
List
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 mes-sages for saving to a file. This file can be opened later and messages can be selected for retransmission. Some or all messages can be selected for transmission. This window works in conjunction with the Timed Transmissions window.
Timed Transmissions
The Timed Transmissions window is used to send the mes-sages 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 Format, which displays the message data as normal data.
2002 Microchip Technology Inc. Preliminary DS51195C-page 11
MCP2510 Development Kit User’s Guide
3.4 STARTING THE PROGRAMThis section discusses the steps required to start the program.1. To run the software, either select Start > Programs> Microchip> CANKing or find
WC32.exe using Windows Explorer.2. A dialog box will appear stating that putting this system on a CAN bus without
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...).
DS51195C-page 12 Preliminary 2002 Microchip Technology Inc.
Getting Started
3.6 HARDWARE OVERVIEWThe target board consists of two CAN nodes (MCU, MCP2510) 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 that 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 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 MCP2510s and the PICmicro MCU. By cutting traces and installing jumpers, other oscillator configura-tions can be achieved. See Chapter 5, “Reconfigure the Hardware”, for more detail on configuring the oscillator sockets.
PICmicro MCU Sockets
Three sockets are provided to give the user a wide range of PICmicro MCUs to choose from when developing firmware.
MCU Prototype Area
This area was created for prototyping MCUs that are not supported with the sockets or for prototyping complete CAN nodes.
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. Therefore, 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 cor-responding MCP2510’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 MCP2510 Development Kit to an external bus.
2002 Microchip Technology Inc. Preliminary DS51195C-page 13
MCP2510 Development Kit User’s Guide
FIGURE 3-3: MCP2510 CAN Development Board
LTP PortC
OM
Port
PICm
icro® M
CU
PICm
icro® M
CU
PICm
icro® M
CU
MC
U Prototyping A
rea
CAN
Connector
Transceiver P
rototyping AreaTransceiver
Prototyping Area
MCP2510
OscillatorSocket
OscillatorSocket
OscillatorSocket
MCP2510
DS51195C-page 14 Preliminary 2002 Microchip Technology Inc.
M MCP2510 Development KitUser’s Guide
Chapter 4. The Software Templates
4.1 INTRODUCTIONThere are two templates included with the MCP2510 Development Kit that give the user low-level bit control or high-level message control of the MCP2510.
4.2 HIGHLIGHTSThe items discussed in this chapter are:• MCP2510 Register View Template• Basic Template• Menus
4.3 MCP2510 REGISTER VIEW TEMPLATEThis template allows low-level control of the MCP2510. This template is typically used to evaluate/test the MCP2510 at the bit level. All of the 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 reg-ister 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.
2002 Microchip Technology Inc. Preliminary DS51195C-page 15
MCP2510 Development Kit User’s Guide
FIGURE 4-1: MCP2510 Register View Template
This section discusses each of the template windows in detail.
4.3.1 Status WindowThe 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
MessageFilter
Configuration
Transmit
Receive
StatusWindow Physical Layer
DS51195C-page 16 Preliminary 2002 Microchip Technology Inc.
The Software Templates
4.3.2 Message Filters WindowThis window is used to set up and test mask and filter combinations with different mes-sage identifiers. Each mask and filter can be tested without actually writing the config-uration 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 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 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.
2002 Microchip Technology Inc. Preliminary DS51195C-page 17
MCP2510 Development Kit User’s Guide
4.3.3 Physical Layer WindowThe 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 > MCP2510… from the menu bar.
FIGURE 4-4: Physical Layer Window
Note: The CNF registers can be modified only when the MCP2510 is in Configuration mode and will display shaded in all other modes of operation.
DS51195C-page 18 Preliminary 2002 Microchip Technology Inc.
The Software Templates
4.3.4 Configuration WindowTXRTSCTRL, BFPCTRL, CANINTF, CANINTE and CANCTRL are all modified from this window. These are the control and flag registers for the MCP2510
4.3.4.1 TXRTSCTRL
This register configures the RTS pins (TXnRTS) as either request-to-send or as digital inputs. The pin values are displayed in the register if configured as digital inputs.
4.3.4.2 BFPCTRL
This register configures the receive buffer full pins (RXnBF) as buffer full interrupts or digital outputs. The value of the pins are displayed if configured as digital outputs.
4.3.4.3 CANINTF
CANINTF is the flag register for the eight sources of interrupts.
4.3.4.4 CANINTE
This register is the interrupt enables for the eight interrupt sources. Enabled interrupts are mapped to the INT pin.
4.3.4.5 CANCTRL
CANCTRL sets the modes of operation and the clock out enable and prescaler (CLKOUT pin).
FIGURE 4-5: Configuration Window
2002 Microchip Technology Inc. Preliminary DS51195C-page 19
MCP2510 Development Kit User’s Guide
4.3.5 Transmit WindowThe 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-6: Transmit Window
DS51195C-page 20 Preliminary 2002 Microchip Technology Inc.
The Software Templates
4.3.6 Receive WindowThis window contains all of the 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-7: Receive Window
4.4 BASIC TEMPLATEThe Basic Template is a high-level tool that focuses on CAN bus traffic. The user only has high-level control of the MCP2510 (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 MCP2510
Note: Selecting Messages > MCP2510 Eval Board > Receive Buffer (or Trans-mit Buffer) while holding down the shift key will open up duplicate win-dows so multiple transmit or receive windows can be monitored simultaneously.
2002 Microchip Technology Inc. Preliminary DS51195C-page 21
MCP2510 Development Kit User’s Guide
Other functions of the basic template are receiving messages, saving transmitted mes-sages, 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 messages by default while in the basic template. The user has the option to maintain MCP2510 configura-tions when switching templates by selecting Options > MCP2510… 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.
Output
History
Bus
TimedTransmissions
Status
Window
Message Format
List
DS51195C-page 22 Preliminary 2002 Microchip Technology Inc.
The Software Templates
4.4.1 Bus Status WindowThis 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 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-9: Bus Status
2002 Microchip Technology Inc. Preliminary DS51195C-page 23
MCP2510 Development Kit User’s Guide
4.4.2 Output WindowThe 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. 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 con-tents 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
DS51195C-page 24 Preliminary 2002 Microchip Technology Inc.
The Software Templates
4.4.3 History List WindowThe History List window is used to collect transmitted messages for saving to a file. This window is not opened by default when opening a new template and is opened by selecting View > History List. Once opened, every transmitted message is captured in the History List window for saving to a file, if desired.One or more messages can be selected for retransmission. There is also a button for sending all the captured messages.
FIGURE 4-11: History List Window
Note: The History List window works in conjunction with the Timed Transmis-sion window. Messages can be retransmitted once or continually at defined intervals. See the Timed Transmission description for more details.
2002 Microchip Technology Inc. Preliminary DS51195C-page 25
MCP2510 Development Kit User’s Guide
4.4.4 Timed Transmissions WindowThe 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-12: Timed Transmission Window
4.4.5 Message Formats WindowThis 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 but-ton 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
DS51195C-page 26 Preliminary 2002 Microchip Technology Inc.
The Software Templates
4.5 MENUSThe 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 menuIn the Basic Template, this menu contains the message types to be transmitted. Select-ing 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 menuThe 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 > MCP2510… 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 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 tem-plate, 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 an oscillator frequency.
2002 Microchip Technology Inc. Preliminary DS51195C-page 27
MCP2510 Development Kit User’s Guide
NOTES:
DS51195C-page 28 Preliminary 2002 Microchip Technology Inc.
M MCP2510 Development KitUser’s Guide
Chapter 5. Reconfigure the Hardware
5.1 INTRODUCTIONThe MCP2510 Development Kit has several different configurations that make it a versatile tool.
5.2 HIGHLIGHTSThe items discussed in this chapter are:• Node Configurations• Oscillator Routing• The Jumper Settings
5.3 NODE CONFIGURATIONSThe versatility of the MCP2510 Development Kit is possible by changing the configu-ration of the board. Refer to Section 5.5 “The Jumper Settings”, for a list of the vari-ous 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 commu-nication occurs. This configuration is used for evaluation of, or familiarization with, 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. The traces must be cut if the installed jumpers are to function properly.
2002 Microchip Technology Inc. Preliminary DS51195C-page 29
MCP2510 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 MCP2510 by observ-ing 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 Tem-plate. While in the configuration, simple bus monitoring can be achieved using the Basic Template.
5.3.3 Two Node Embedded SystemThis 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 firm-ware 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 may be under development at this stage.
5.3.4 Two Node Distributed SystemThis 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 (node1) on the CAN bus.
5.4 OSCILLATOR CONFIGURATIONSThere are three oscillator sockets. By default, both MCP2510s and the PICmicro MCU sockets use a common oscillator. Since all three socket outputs are tied together, the oscillator can be placed in any socket.
It is possible for each node and the microcontrollers to have their own oscillator by configuring the jumpers as described later in this chapter.
Warning: Care must be taken when installing more than one oscillator. The jumper settings must be correct or contention will occur at some or all of the device oscillator inputs. This may cause catastrophic results.
DS51195C-page 30 Preliminary 2002 Microchip Technology Inc.
Reconfigure the Hardware
5.5 THE JUMPER SETTINGSThere 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 DESCRIPTIONJumper Description
JP1 Connects LEDs for Node0JP2 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 O1JP7 Connects LEDs for Node1JP8 Connects oscillator O3 to oscillator O1JP9 Connects oscillator O3 to oscillator O2
JP10 Connects Node1 MCP2510 INT pin to PICmicro® RB0 pinJP11 Connects Node1 MCP2551 RS pin to external bus (DB9 J4)†
JP12 Connects Node1 MCP2551 CANH pin to external bus (DB9 J4)†
JP13 Connects Node1 MCP2551 CANL pin to external bus (DB9 J4)†
JP14 Connects Node1 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.
2002 Microchip Technology Inc. Preliminary DS51195C-page 31
MCP2510 Development Kit User’s Guide
FIGURE 5-1: Jumper Locations
JP8
JP9
JP10
JP6
JP2
JP3
JP4
JP5
JP11
JP12
JP13
JP14
JP1
JP7
JP15
DS51195C-page 32 Preliminary 2002 Microchip Technology Inc.
M MCP2510 Development KitUser’s Guide
Appendix A. Schematics
A.1 INTRODUCTIONThis section contains the schematics, which are also available on the included CD-ROM.
2002 Microchip Technology Inc. Preliminary DS51195C-page 33
MCP2510 Development Kit User’s Guide
A.2 SCHEMATICNote: This schematic is available on the included CD-ROM (03-01522r1-S1.pdf).
NOTES:
DEVICE NAMES/NUMBERS SHOWN HE
RE ARE FOR
REFERENCE ONLY AND MAY DIFFER
FROM ACTUAL
NUMBER
.ACTUAL NUMBERS ARE FOUND IN T
HE BOM FOR
THIS ASSEMB
LY.
H2 AND H5 ARE LOCATIONS FOR
CONNECTORS
OR DOUBLE ROW TERMINAL STRIP
WITH .025
SQUARE POS
T.
THERE IS LOCATIONS FOR 2 PI
N SHORTING
SHUNTS JP1 TO JP7 AND JP1
1 TO JP15
BUT THEY ARE NOT MO
UNTED.
THEY ARE ALL SHORTED BY DEF
AULT BY A
SHORT CIRCUIT BETWEEN THE T
WO PINS ON
THE SOLDER SIDE OF THE
BOARD.
O2 IS NOT MOUNTED ALL CLOCK
ING IS BY
DEFAULT MADE BY ONE SINGLE
OSCILLATOR
PC
_R
XB
F1
PC
_IN
T
PC
_S
PII
PC
_S
PIC
S
PC
_S
PIC
LK
GN
D
PC
_O
SC
PC
_R
TS
0
PC
_O
SC
PC
_S
PIO
PC
_R
XB
F0
PIC
_C
LK
PIC
_R
TS
2
PIC
_R
XB
F1
PIC
_IN
T
PIC
_R
TS
1
PIC
_R
ES
PIC
_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PIC
_C
LK
PC
_O
SC
PIC
_IN
T
PIC
_S
PII
GN
D
+5V
U1
MC
P2510
TX
CA
N1
RX
CA
N2
CLK
OU
T3
TX
0R
TS
4
TX
1R
TS
5
TX
2R
TS
6
OS
C2
7
OS
C1
8
GN
D9
RX
1B
F1
0R
X0B
F1
1IN
T1
2S
CK
13
SI
14
SO
15
CS
16
RE
SE
T1
7V
CC
18
RN
2
RN
4S
_1
47
0R
1 23 45 67 8
JP
13JM
P2
12
JP
4
JM
P2
12
JP
12JM
P2
12
JP
3
JM
P2
12
JP
15
JM
P2
12
R8
1*5
M1
20
R
12
C4
CC
AX0
.1u
F
1 2
C2
CC
AX0
.1u
F
1 2
C1
0
CC
AX0
.1u
F
1 2
C7
CC
AX0
.1u
F
1 2
C8
CC
AX0
.1u
F
1 2
C3
CC
AX0
.1u
F
1 2
C1
CC
AX0
.1u
F
1 2
JP
6
JM
P2
12
U3
74
HC
T2
45
A1
2
A2
3
A3
4
A4
5
A5
6
A6
7
A7
8
A8
9
G1
9
DIR
1
B1
18
B2
17
B3
16
B4
15
B5
14
B6
13
B7
12
B8
11
VC
C2
0
GN
D1
0
H5
HE
AD
ER
10X
2
11
22
33
44
55
66
77
88
99
10
10
11
11
12
12
13
13
14
14
15
15
16
16
17
17
18
18
19
19
20
20
RN
4
RN
4S
_1
4k7
1 23 45 67 8
O1
IQX
O-3
50C
16M
Hz
NC
1
GN
D2
CLK
3
VC
C4
J1
DS
UB
25 S
PC
B 9
0
13
25
12
24
11
23
10
22
921
820
719
618
517
416
315
214
1
D1
4
RED
1 2
U7
MC
P2510
TX
CA
N1
RX
CA
N2
CLK
OU
T3
TX
0R
TS
4
TX
1R
TS
5
TX
2R
TS
6
OS
C2
7
OS
C1
8
GN
D9
RX
1B
F1
0R
X0B
F1
1IN
T1
2S
CK
13
SI
14
SO
15
CS
16
RE
SE
T1
7V
CC
18
D1
5
RED
1 2
O2
IQX
O-3
50C
NF
NC
1
GN
D2
CLK
3
VC
C4
RN
6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AD
ER
10X
2
11
22
33
44
55
66
77
88
99
10
10
11
11
12
12
13
13
14
14
15
15
16
16
17
17
18
18
19
19
20
20
RN
3
RN
4S
_1
47
0R
12
34
56
78
S3 SK
HR
AA
1 234
S2 SK
HR
AA
1 234
S1 SK
HR
AA
1 234
JP
2
JM
P2
12
JP
11JM
P2
12
R4 1*5
M4
k7
1 2
D8 RED
1 2
DS51195C-page 34 Preliminary 2002 Microchip Technology Inc.
Schematics
Note: This schematic is available on the included CD-ROM (03-01522r1-S2.pdf).
NOTE J3 DEFAULT CLOSED
J21 DEFAULT CLOSED?
NOTE! TO USE 18PIN MCU IT IS
NECESSARY TO PLACE JUMPERS IN
ALL LOCATIONS!
NOTES:
DEVICE NAMES/NUMBERS SHOWN HERE ARE FOR
REFERENCE ONLY AND MAY DIFFER FROM ACTUAL
NUMBER.
ACTUAL NUMBERS ARE FOUND IN THE BOM FOR
THIS ASSEMBLY.
H3, H4 AND H7 ARE LOCATIONS FOR CONNECTORS OR
DOUBLE ROW TERMINAL STRIP WITH .025 SQUARE POST.
THERE IS LOCATIONS FOR 2 PIN SHORTING SHUNTS
JJP8 TO JP10 BUT THEY ARE NOT MOUNTED.
JP8 AND JP10 ARE SHORTED BY DEFAULT BY A
SHORT CIRCUIT BETWEEN THE TWO PINS ON THE
SOLDER SIDE OF THE BOARD.
O3 IS NOT MOUNTED ALL CLOCKING IS BY
DEFAULT MADE BY ONE SINGLE OSCILLATOR O1.
H1 AND H6 ARE LOCATIONS FOR DOUBLE AND SINGLE
ROW TERMINAL STRIP WITH .025 SQUARE POST.
H1 AS CONNECTOR TO LCD DISPLAY.
PIC
_S
PIC
LK
RS
232_R
X
RD
5
RD
7
RS
23
2_
TX
RD
6
RC
0
PIC
_S
PIO
PIC
_M
CS
RD
2
PIC
_S
PIC
S
RD
0
RD
3
RD
1
PIC
_S
PII
RD
4
PIC
_C
LK
+5V
RA
3R
A5
RB
1R
B3
RB
5R
B7
GN
D
RA
4R
B0
RB
2R
B4
RB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
uF
1 2
C1
1
CC
AX
0.1
uF
1 2
H3
HE
AD
ER
8X
2
11
22
33
44
55
66
77
88
99
10
10
11
11
12
12
13
13
14
14
15
15
16
16
C1
8
CC
AX0
.1u
F
1 2
C1
6
CC
AX0
.1u
F
1 2
C1
7
CC
AX0
.1u
F
1 2
C1
5
CC
AX
0.1
uF1
2
+
C5
CT
AN1
uF
1 2
R6
1*5
M1
00
R
12
+
C6
CT
AN1
uF
1 2
JP
8
JM
P2
12
JP
10
JM
P2
12
J2
PO
WC
ON
CE
NT
ER
1
OU
TE
R2
OU
T_IN
3
U6 25
LC
64
0
CS
1
SO
2
WP
3
VS
S4
SI
5S
CK
6H
OLD
7V
CC
8
O3 IQ
XO
-350C
NC
1
GN
D2
CLK
3
VC
C4
JP
9
JM
P2
12
U10
PIC
16C
63
MC
LR
1
RA
02
RA
13
RA
24
RA
35
RA
46
RA
57
GN
D1
8O
SC
19
OS
C2
10
RC
01
1
RC
11
2
RC
21
3
RC
31
4
RC
41
5
RC
51
6
RC
61
7
RC
71
8
GN
D2
19
VC
C2
0
RB
02
1
RB
12
2
RB
22
3
RB
32
4
RB
42
5
RB
52
6
RB
62
7
RB
72
8
U11
PIC
16C
64
MC
LR
1
RA
02
RA
13
RA
24
RA
35
RA
46
RA
57
RE
08
RE
19
RE
21
0
VC
C1
11
GN
D1
12
OS
C1
13
OS
C2
14
RC
01
5
RC
11
6
RC
21
7
RC
31
8
RD
01
9
RD
12
0
RD
22
1
RD
32
2
RC
42
3
RC
52
4
RC
62
5
RC
72
6
RD
42
7
RD
52
8
RD
62
9
RD
73
0
GN
D2
31
VC
C2
32
RB
03
3
RB
13
4
RB
23
5
RB
33
6
RB
43
7
RB
53
8
RB
63
9
RB
74
0
H1
HE
AD
ER
7X
2
12
34
56
78
91
01
11
21
31
4
H7
HE
AD
ER
10X
2
11
22
33
44
55
66
77
88
99
10
10
11
11
12
12
13
13
14
14
15
15
16
16
17
17
18
18
19
19
20
20
H4
HE
AD
ER
10X
2
11
22
33
44
55
66
77
88
99
10
10
11
11
12
12
13
13
14
14
15
15
16
16
17
17
18
18
19
19
20
20
R1 1*5
M1
0k
1 2
R2 1*5
M3
30
R
1 2
H6
LIS
T-1
M-6
P
11
22
33
44
55
66R
7 1*5
M4
k7
1 2
U9 PIC
16C
711
RA
21
RA
32
TC
K0
3
MC
LR
4
RA
01
7
RA
11
8
GN
D5
OS
C1
16
OS
C2
15
VC
C1
4
RB
06
RB
17
RB
28
RB
39
RB
41
0
RB
51
1
RB
61
2
RB
71
3
J3
DS
UB
9 S
PC
B 9
0
5 9 4 8 3 7 2 6 1
U5 M
AX
232A
C1+
1
R2O
UT
9
V+
2
T2IN
10
C1
-3
T1IN
11
C2+
4
R1O
UT
12
C2
-5
R1IN
13
V-
6
T1
OU
T1
4
T2O
UT
7
GN
D1
5
R2IN
8
VC
C1
6
C1
3
CC
AX
0.1
uF
1 2
U4 LM
78
05
IN3
GN
D2
OU
T1 C
19
CC
AX0
.1u
F
1 2
S7
SK
HR
AA
1 234
R1
0
1*5
M4
k7
1 2
R9
1*5
M4
70
R
12
R1
2
PO
T
1 2
3
R1
1
1*5
M4
70
R
12
M1 F
OO
T
M3 F
OO
T
M4 F
OO
T
M2 F
OO
T
W5
WR
AP
_A
RE
A
GN
D1
1
GN
D2
2G
ND
33
GN
D4
4V
CC
15
VC
C2
6V
CC
37
VC
C4
8
R5
1*5
M4
70
R
1 2
C1
2
CC
AX
0.1
uF
1 2
D1
7
GR
EE
N
1 2
2002 Microchip Technology Inc. Preliminary DS51195C-page 35
MCP2510 Development Kit User’s Guide
NOTES:
DS51195C-page 36 Preliminary 2002 Microchip Technology Inc.
M MCP2510 Development KitUser’s Guide
Appendix B. FAQs on Configuring the MCP2510
B.1 INTRODUCTIONThis section answers some frequently asked questions on configuring the MCP2510 to assist those who are new to the device.
B.2 HIGHLIGHTSThis section discusses:
• FAQs
B.3 FAQS1. 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 mostcommon problems:
TABLE B-1: COMMON BUS COMMUNICATION PROBLEMS
2. The node is acknowledging messages in the Basic template but not displaying them.The MCP2510 filters are not matching the incoming messages. This can occur because the Reset MCP2510 on Open is deselected, causing the old register con-tents (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 > MCP2510…).
The bus rate is not set to match the bus.
Basic Template – Set the bus rate in the Bus Status window.Register Template – change CNF registers.
Oscillator frequency not set to match hardware (FOSC is required in bit rate formula).
Set the oscillator frequency (Options > MCP2510…).
Board is not connected to the external bus.
Connect to the external bus using the DB9 labeled CAN. Pinouts: CANH – pin 7, CANL – pin2.
2002 Microchip Technology Inc. Preliminary DS51195C-page 37
MCP2510 Development Kit User’s Guide
3. 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.
4. 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.
5. How do I enter extended IDs into a field?Lead off the number with an ‘x’ which indicates extended frame(e.g., x12345).
6. Are there daughter boards available that change the physical layer?Yes. Contact Kvaser AB for details (www.kvaser.se).
DS51195C-page 38 Preliminary 2002 Microchip Technology Inc.
FAQs on Configuring the MCP2510
NOTES:
2002 Microchip Technology Inc. Preliminary DS51195C-page 39
DS51195C-page 40 Preliminary 2002 Microchip Technology Inc.
MAMERICASCorporate Office2355 West Chandler Blvd.Chandler, AZ 85224-6199Tel: 480-792-7200 Fax: 480-792-7277Technical Support: 480-792-7627Web Address: http://www.microchip.comRocky Mountain2355 West Chandler Blvd.Chandler, AZ 85224-6199Tel: 480-792-7966 Fax: 480-792-4338Atlanta3780 Mansell Road, Suite 130Alpharetta, GA 30022Tel: 770-640-0034 Fax: 770-640-0307Boston2 Lan Drive, Suite 120Westford, MA 01886Tel: 978-692-3848 Fax: 978-692-3821Chicago333 Pierce Road, Suite 180Itasca, IL 60143Tel: 630-285-0071 Fax: 630-285-0075Dallas4570 Westgrove Drive, Suite 160Addison, TX 75001Tel: 972-818-7423 Fax: 972-818-2924DetroitTri-Atria Office Building 32255 Northwestern Highway, Suite 190Farmington Hills, MI 48334Tel: 248-538-2250 Fax: 248-538-2260Kokomo2767 S. Albright Road Kokomo, Indiana 46902Tel: 765-864-8360 Fax: 765-864-8387Los Angeles18201 Von Karman, Suite 1090Irvine, CA 92612Tel: 949-263-1888 Fax: 949-263-1338San JoseMicrochip Technology Inc.2107 North First Street, Suite 590San Jose, CA 95131Tel: 408-436-7950 Fax: 408-436-7955Toronto6285 Northam Drive, Suite 108Mississauga, Ontario L4V 1X5, CanadaTel: 905-673-0699 Fax: 905-673-6509
ASIA/PACIFICAustraliaMicrochip Technology Australia Pty LtdSuite 22, 41 Rawson StreetEpping 2121, NSWAustraliaTel: 61-2-9868-6733 Fax: 61-2-9868-6755China - BeijingMicrochip Technology Consulting (Shanghai)Co., Ltd., Beijing Liaison OfficeUnit 915Bei Hai Wan Tai Bldg.No. 6 Chaoyangmen Beidajie Beijing, 100027, No. ChinaTel: 86-10-85282100 Fax: 86-10-85282104China - ChengduMicrochip Technology Consulting (Shanghai)Co., Ltd., Chengdu Liaison OfficeRm. 2401-2402, 24th Floor, Ming Xing Financial TowerNo. 88 TIDU StreetChengdu 610016, ChinaTel: 86-28-86766200 Fax: 86-28-86766599China - FuzhouMicrochip Technology Consulting (Shanghai)Co., Ltd., Fuzhou Liaison OfficeUnit 28F, World Trade PlazaNo. 71 Wusi RoadFuzhou 350001, ChinaTel: 86-591-7503506 Fax: 86-591-7503521China - ShanghaiMicrochip Technology Consulting (Shanghai)Co., Ltd.Room 701, Bldg. BFar East International PlazaNo. 317 Xian Xia RoadShanghai, 200051Tel: 86-21-6275-5700 Fax: 86-21-6275-5060China - ShenzhenMicrochip Technology Consulting (Shanghai)Co., Ltd., Shenzhen Liaison OfficeRm. 15-16, 13/F, Shenzhen Kerry Centre,Renminnan LuShenzhen 518001, ChinaTel: 86-755-82350361 Fax: 86-755-82366086China - Hong Kong SARMicrochip Technology Hongkong Ltd.Unit 901-6, Tower 2, Metroplaza223 Hing Fong RoadKwai Fong, N.T., Hong KongTel: 852-2401-1200 Fax: 852-2401-3431IndiaMicrochip Technology Inc.India Liaison OfficeDivyasree Chambers1 Floor, Wing A (A3/A4)No. 11, O’Shaugnessey RoadBangalore, 560 025, IndiaTel: 91-80-2290061 Fax: 91-80-2290062
JapanMicrochip Technology Japan K.K.Benex S-1 6F3-18-20, ShinyokohamaKohoku-Ku, Yokohama-shiKanagawa, 222-0033, JapanTel: 81-45-471- 6166 Fax: 81-45-471-6122KoreaMicrochip Technology Korea168-1, Youngbo Bldg. 3 FloorSamsung-Dong, Kangnam-KuSeoul, Korea 135-882Tel: 82-2-554-7200 Fax: 82-2-558-5934SingaporeMicrochip Technology Singapore Pte Ltd.200 Middle Road#07-02 Prime CentreSingapore, 188980Tel: 65-6334-8870 Fax: 65-6334-8850TaiwanMicrochip Technology (Barbados) Inc., Taiwan Branch11F-3, No. 207Tung Hua North RoadTaipei, 105, TaiwanTel: 886-2-2717-7175 Fax: 886-2-2545-0139
EUROPEAustriaMicrochip Technology Austria GmbHDurisolstrasse 2A-4600 WelsAustriaTel: 43-7242-2244-399Fax: 43-7242-2244-393DenmarkMicrochip Technology Nordic ApSRegus Business CentreLautrup hoj 1-3Ballerup DK-2750 DenmarkTel: 45 4420 9895 Fax: 45 4420 9910FranceMicrochip Technology SARLParc d’Activite du Moulin de Massy43 Rue du Saule TrapuBatiment A - ler Etage91300 Massy, FranceTel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79GermanyMicrochip Technology GmbHSteinheilstrasse 10D-85737 Ismaning, GermanyTel: 49-89-627-144 0 Fax: 49-89-627-144-44ItalyMicrochip Technology SRLCentro Direzionale Colleoni Palazzo Taurus 1 V. Le Colleoni 120041 Agrate BrianzaMilan, Italy Tel: 39-039-65791-1 Fax: 39-039-6899883United KingdomMicrochip Ltd.505 Eskdale RoadWinnersh TriangleWokingham Berkshire, England RG41 5TUTel: 44 118 921 5869 Fax: 44-118 921-5820
11/15/02
WORLDWIDE SALES AND SERVICE