User Guide for MICROCHIP models including: CAN Bus Analyzer, CAN, Bus Analyzer, Analyzer
prieš 15 valandų — 3.1 Getting Started with a Quick Setup . ... This user's guide describes how to use the CAN Bus Analyzer on a CAN network. The.
3.1 Getting Started with a Quick Setup . ... This user's guide describes how to use the CAN Bus Analyzer on a CAN network. The.
This user's guide describes how to use the CAN Bus Analyzer on a CAN network. The following Microchip documents are available on www.microchip.com and are ...
File Info : application/pdf, 24 Pages, 909.52KB
DocumentDocumentCAN Bus Analyzer User's Guide 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D Note the following details of the code protection feature on Microchip products: · Microchip products meet the specifications contained in their particular Microchip Data Sheet. · Microchip believes that its family of products is secure when used in the intended manner, within operating specifications, and under normal conditions. · Microchip values and aggressively protects its intellectual property rights. Attempts to breach the code protection features of Microchip product is strictly prohibited and may violate the Digital Millennium Copyright Act. · Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code. Code protection does not mean that we are guaranteeing the product is "unbreakable". Code protection is constantly evolving. Microchip is committed to continuously improving the code protection features of our products. This publication and the information herein may be used only with Microchip products, including to design, test, and integrate Microchip products with your application. Use of this information in any other manner violates these terms. Information regarding device applications is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. Contact your local Microchip sales office for additional support or, obtain additional support at https:// www.microchip.com/en-us/support/design-help/client-supportservices. THIS INFORMATION IS PROVIDED BY MICROCHIP "AS IS". MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE, OR WARRANTIES RELATED TO ITS CONDITION, QUALITY, OR PERFORMANCE. IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL, OR CONSEQUENTIAL LOSS, DAMAGE, COST, OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE INFORMATION OR ITS USE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THE INFORMATION. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights unless otherwise stated. For information regarding Microchip's Quality Management Systems, please visit www.microchip.com/quality. Trademarks The Microchip name and logo, the Microchip logo, Adaptec, AnyRate, AVR, AVR logo, AVR Freaks, BesTime, BitCloud, CryptoMemory, CryptoRF, dsPIC, flexPWR, HELDO, IGLOO, JukeBlox, KeeLoq, Kleer, LANCheck, LinkMD, maXStylus, maXTouch, MediaLB, megaAVR, Microsemi, Microsemi logo, MOST, MOST logo, MPLAB, OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, PolarFire, Prochip Designer, QTouch, SAM-BA, SenGenuity, SpyNIC, SST, SST Logo, SuperFlash, Symmetricom, SyncServer, Tachyon, TimeSource, tinyAVR, UNI/O, Vectron, and XMEGA are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. AgileSwitch, APT, ClockWorks, The Embedded Control Solutions Company, EtherSynch, Flashtec, Hyper Speed Control, HyperLight Load, IntelliMOS, Libero, motorBench, mTouch, Powermite 3, Precision Edge, ProASIC, ProASIC Plus, ProASIC Plus logo, QuietWire, SmartFusion, SyncWorld, Temux, TimeCesium, TimeHub, TimePictra, TimeProvider, TrueTime, WinPath, and ZL are registered trademarks of Microchip Technology Incorporated in the U.S.A. Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, Augmented Switching, BlueSky, BodyCom, CodeGuard, CryptoAuthentication, CryptoAutomotive, CryptoCompanion, CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, Espresso T1S, EtherGREEN, GridTime, IdealBridge, In-Circuit Serial Programming, ICSP, INICnet, Intelligent Paralleling, Inter-Chip Connectivity, JitterBlocker, Knob-on-Display, maxCrypto, maxView, memBrain, Mindi, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, NVM Express, NVMe, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, PowerSmart, PureSilicon, QMatrix, REAL ICE, Ripple Blocker, RTAX, RTG4, SAM-ICE, Serial Quad I/O, simpleMAP, SimpliPHY, SmartBuffer, SmartHLS, SMART-I.S., storClad, SQI, SuperSwitcher, SuperSwitcher II, Switchtec, SynchroPHY, Total Endurance, TSHARC, USBCheck, VariSense, VectorBlox, VeriPHY, ViewSpan, WiperLock, XpressConnect, and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. The Adaptec logo, Frequency on Demand, Silicon Storage Technology, Symmcom, and Trusted Time are registered trademarks of Microchip Technology Inc. in other countries. GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies. © 2009-2022, Microchip Technology Incorporated and its subsidiaries. All Rights Reserved. ISBN: 978-1-6683-0344-3 DS50001848D-page 2 2009-2022 Microchip Technology Inc. and its subsidiaries CAN BUS ANALYZER USER'S GUIDE Table of Contents Preface ........................................................................................................................... 5 Introduction............................................................................................................ 5 Document Layout .................................................................................................. 5 Conventions Used in this Guide ............................................................................ 6 Recommended Reading........................................................................................ 7 The Microchip Website.......................................................................................... 7 Product Change Notification Service..................................................................... 7 Customer Support ................................................................................................. 8 Document Revision History ................................................................................... 8 Chapter 1. Introduction.................................................................................................. 9 1.1 Introduction ..................................................................................................... 9 1.2 Can Bus Analyzer Kit Contents ...................................................................... 9 1.3 Overview of the CAN Bus Analyzer ................................................................ 9 1.4 CAN Bus Analyzer Hardware Features ....................................................... 10 1.5 CAN Bus Analyzer Software ........................................................................ 12 Chapter 2. Installation.................................................................................................. 13 2.1 Introduction ................................................................................................... 13 2.2 Software Installation .................................................................................... 13 2.3 Hardware Installation .................................................................................... 14 Chapter 3. Using the PC GUI....................................................................................... 17 3.1 Getting Started with a Quick Setup .............................................................. 17 3.2 Trace Feature ............................................................................................... 18 3.3 Transmit Feature .......................................................................................... 19 3.4 Hardware Setup Feature .............................................................................. 20 Appendix A. Error Messages ...................................................................................... 21 Worldwide Sales and Service .................................................................................... 24 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D-page 3 CAN Bus Analyzer User's Guide NOTES: DS50001848D-page 4 2009-2022 Microchip Technology Inc. and its subsidiaries CAN BUS ANALYZER USER'S GUIDE Preface NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our website (www.microchip.com) to obtain the latest documentation available. Documents are identified with a "DS" number. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is "DSXXXXXXXXA", where "XXXXXXXX" is the document number and "A" is the revision level of the document. For the most up-to-date information on development tools, see the MPLAB® IDE on-line help. Select the Help menu, and then Topics to open a list of available on-line help files. INTRODUCTION This chapter contains general information that will be useful to know before using the Chapter Name. Items discussed in this chapter include: · Document Layout · Conventions Used in this Guide · Recommended Reading · The Microchip Website · Product Change Notification Service · Customer Support · Document Revision History DOCUMENT LAYOUT This user's guide describes how to use the Chapter Name as a development tool to emulate and debug firmware on a target board. The topics discussed in this preface include: · Chapter 1. "Introduction" · Chapter 2. "Installation" · Chapter 3. "Using the PC GUI" · Appendix A. "Error Messages" 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D-page 5 CAN Bus Analyzer User's Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Represents Examples Arial font: Italic characters Initial caps Quotes Underlined, italic text with right angle bracket Bold characters N`Rnnnn Text in angle brackets < > Courier New font: Plain Courier New Italic Courier New Square brackets [ ] Curly brackets and pipe character: { | } Ellipses... Referenced books Emphasized text A window A dialog A menu selection A field name in a window or dialog A menu path MPLAB® IDE User's Guide ...is the only compiler... the Output window the Settings dialog select Enable Programmer "Save project before build" File>Save A dialog button A tab A number in verilog format, where N is the total number of digits, R is the radix and n is a digit. A key on the keyboard Click OK Click the Power tab 4`b0010, 2`hF1 Press <Enter>, <F1> Sample source code Filenames File paths Keywords Command-line options Bit values Constants A variable argument Optional arguments Choice of mutually exclusive arguments; an OR selection Replaces repeated text Represents code supplied by user #define START autoexec.bat c:\mcc18\h _asm, _endasm, static -Opa+, -Opa0, 1 0xFF, `A' file.o, where file can be any valid filename mcc18 [options] file [options] errorlevel {0|1} var_name [, var_name...] void main (void) { ... } DS50001848D-page 6 2009-2022 Microchip Technology Inc. and its subsidiaries Preface RECOMMENDED READING This user's guide describes how to use the CAN Bus Analyzer on a CAN network. The following Microchip documents are available on www.microchip.com and are recommended as supplemental reference resources to understand CAN (Controller Area Network) more thoroughly. AN713, Controller Area Network (CAN) Basics (DS00713) This application note describes the basics and key features of the CAN protocol. AN228, A CAN Physical Layer Discussion (DS00228) AN754, Understanding Microchip's CAN Module Bit Timing (DS00754 These application notes discuss the MCP2551 CAN transceiver and how it fits within the ISO 11898 specification. ISO 11898 specifies the physical layer to ensure compatibility between CAN transceivers. CAN Design Center Visit the CAN design center on Microchip's website (www.microchip.com/CAN) for information on the latest product information and new application notes. THE MICROCHIP WEBSITE Microchip provides online support via our website at www.microchip.com. This website is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the website contains the following information: · Product Support Data sheets and errata, application notes and sample programs, design resources, user's guides and hardware support documents, latest software releases and archived software · General Technical Support Frequently Asked Questions (FAQs), technical support requests, online discussion groups, Microchip consultant program member listing · Business of Microchip Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives PRODUCT CHANGE NOTIFICATION SERVICE Microchip's customer notification service helps keep customers current on Microchip products. Subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest. To register, access the Microchip website at www.microchip.com, click on Product Change Notification and follow the registration instructions. 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D CAN Bus Analyzer User's Guide CUSTOMER SUPPORT Users of Microchip products can receive assistance through several channels: · Distributor or Representative · Local Sales Office · Field Application Engineer (FAE) · Technical Support Customers should contact their distributor, representative or FAE for support. Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. Technical support is available through the website at: http://support.microchip.com. DOCUMENT REVISION HISTORY Revision A (July 2009) · Initial Release of this Document. Revision B (October 2011) · Updated Sections 1.1, 1.3, 1.4 and 2.3.2. Updated the figures in Chapter 3, and updated Sections 3.2, 3.8 and 3.9. Revision C (November 2020) · Removed Sections 3.4, 3.5, 3.6 and 3.8. · Updated Chapter 1. "Introduction", Section 1.5 "CAN Bus Analyzer Software" and Section 3.2 "Trace Feature". · Typographical edits throughout document. Revision C (February 2022) · Updated Section 1.4 "CAN Bus Analyzer Hardware Features ". Revision D (April 2022) · Updated Section 1.4 "CAN Bus Analyzer Hardware Features ". · Typographical edits throughout document. DS50001848D-page 8 2009-2022 Microchip Technology Inc. and its subsidiaries CAN BUS ANALYZER USER'S GUIDE Chapter 1. Introduction 1.1 INTRODUCTION The CAN Bus Analyzer tool is intended to be a simple-to-use, low-cost CAN Bus monitor, which can be used to develop and debug a high-speed CAN network. The tool features a broad range of functions, which allow it to be used across various market segments, including automotive, marine, industrial and medical. The CAN Bus Analyzer tool supports CAN 2.0b and ISO 11898-2 (high-speed CAN with transmission rates of up to 1 Mbit/s). The tool can be connected to the CAN network using the DB9 connector or through a screw terminal interface. The CAN Bus Analyzer has the standard functionality expected in an industry tool, such as trace and transmit windows. All of these features make it a very versatile tool, allowing fast and simple debugging in any high-speed CAN network. The chapter contains the following information: · Can Bus Analyzer Kit Contents · Overview of the CAN Bus Analyzer · CAN Bus Analyzer Hardware Features · CAN Bus Analyzer Software 1.2 CAN BUS ANALYZER KIT CONTENTS 1. CAN Bus Analyzer Hardware 2. CAN Bus Analyzer Software 3. CAN Bus Analyzer software CD, which includes three components: · Firmware for the PIC18F2550 (Hex File) · Firmware for the PIC18F2680 (Hex File) · The CAN Bus Analyzer PC Graphical User Interface (GUI) 4. USB mini-cable to connect the CAN Bus Analyzer to the PC 1.3 OVERVIEW OF THE CAN BUS ANALYZER The CAN Bus Analyzer provides similar features available in a high-end CAN network analyzer tool at a fraction of the cost. The CAN Bus Analyzer tool can be used to monitor and debug a CAN network with an easy-to-use Graphical User Interface. The tool allows the user to view and log received and transmitted messages from the CAN Bus. The user is also able to transmit single or periodic CAN messages onto a CAN Bus, which is useful during development or testing of a CAN network. Using this CAN Bus Analyzer tool has many advantages over the traditional debugging methods embedded engineers typically rely on. For example, the tool trace window will show the user the received and transmitted CAN messages in an easy to read format (ID, DLC, data bytes and timestamp). 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D-page 9 CAN Bus Analyzer User's Guide 1.4 CAN BUS ANALYZER HARDWARE FEATURES The CAN Bus Analyzer hardware is a compact tool that includes the following hardware features. Refer to Section 1.5 "CAN Bus Analyzer Software" for more information about the software features. FIGURE 1-1: CAN BUS ANALYZER · Mini-USB Connector This connector provides the CAN Bus Analyzer a communication medium to the PC, but it can also provide a power supply if the external power supply is not plugged into the CAN Bus Analyzer. · 9-24 Volt Power Supply Connector · DB9 Connector for the CAN Bus · Termination Resistor (software controllable) The user can turn on or off the 120 Ohm CAN Bus termination through the PC GUI. · Status LEDs Displays the USB status. · CAN Traffic LEDs Shows the actual RX CAN Bus traffic from the high-speed transceiver. Shows the actual TX CAN Bus traffic from the high-speed transceiver. · CAN Bus Error LED Shows the Error Active (Green), Error Passive (Yellow), Bus Off (Red) state of the CAN Bus Analyzer. · Direct Access to the CANH and CANL Pins through a Screw Terminal Allows the user access to the CAN Bus for connecting an oscilloscope without having to modify the CAN Bus wire harness. · Direct Access to the CAN TX and CAN RX Pins through a Screw Terminal Allows the user access to the digital side of the CAN Bus transceiver. DS50001848D-page 10 2009-2022 Microchip Technology Inc. and its subsidiaries 2009-2022 Microchip Technology Inc. and its subsidiaries FIGURE 1-2: CAN BUS ANALYZER SCHEMATIC CAN Bus USB Busy Yellow LED LED1 R1 470 Green LED LED2 R2 470 Not Suspend BUSY P1 V DD+ nc GND 1 2 3 4 5 USB Mini-B R3 100K V R11 C6 0 0.1 µF R7 0 R6 0 C7 470 nF FDN352AP S2 R14 100K Q1 D1 V U1 S1G D2 Vcc S1G C1 0.1 µF V 20 21 22 23 TP7 24 1 25 26 27 28 RB0/INT0/AN12/FLT0/SDI/SDA MCLR/V/RE3 RB1/INT1/AN10/SCK/SCL RB2/AN8/INT2/VMO OSC1/CLKIN RB3/AN9/CCP2/VPO RB4/AN11/KBI0 RB5/KBI1/PGM RB6KBI2/PGC OSC2/CLKOUT/RA6 RB7/KBI3/PGD 1 9 10 R5 np Y1 12 MHz C2 C3 27 pF 27 pF Vcc R4 1K C4 0.1 µF 11 TP8 12 1 13 14 15 16 17 18 RC0/T1OSO/T13CKI RC1/T1OSI/CCP2/UOE RC2/CCP1 RA0/AN0 V RA1/AN1 RC4/D-/VM RA2/AN2/V-/CV RC5/D+/VP RA3/AN3/V+ RC6/TX/CK RA4/T0CLI/C1OUT/RCV RC7/RX/DT/SDO RA5/AN4/SS/LVDINC2OUT 2 3 4 5 6 7 TP1 1 1 TP2 R8 10K R9 1K V V R12 20K C5 0.1 µF R10 D3 10K S1 PIC18F2550 J1 1 2 3 4 5 6 1N4148WS Vcc PICkit 2 Note: np = not populated 19 GND 8 GND R13 4.7K CAN Bus Status Vcc Vcc R15 R17 470 470 CAN_RES Vcc D6 NUP2105L R16 E1 1 2 1K 1 3 2 CAN Rxd Yel LED Yel LED CAN Txd LED4 LED5 Vcc J2 10K R18 D4 1N4148WS 1K R19 1 2 Vcc 3 4 5 6 PICkitTM 2 J3 3 1 2 8 3 4 2 Triggers In/Out 0.1 µF C8 U5-2 IOVL2 IOVCC2 3-State IOVL1 IOVCC1 D5 Purple LED LED6 R20 1K C10 22 pF R23 Y2 10 MHz np C11 22 pF 12 13 R29 470 U4-1 LED7 1 V 14 Vcc Vcc WP3VEGW R30 470 MAX3378E Trigger Status R31 470 NSR0620P2T5G Vcc C9 0.1 µF V 20 U2 1 9 10 MCLR/V/RE3 RB0/INT0/AN10 RB1/INT1/AN8 OSC1/CLKIN/RA7 RB2/CANTX RB3/CANRX RB4/AN9 RB5 OSC2/CLKOUT/RA6 RB6 RB7 21 22 23 24 25 26 27 28 2 3 4 5 6 7 RC0/T1OSO/T13CKI RC1/T1OSI RA0/AN0 RC2/CCP1 RA1/AN1 RC3/SCK/SCL RA2/AN2/V- RC4/SDI/SDA RA3/AN3/V+ RC5/SDO RA4/T0CLI RC6/TX/CK RA5/AN4/SS/LVDIN RC7/RX/DT 11 12 13 14 15 16 17 18 8 GND 19 GND PIC18F2680 LED3 WP3VEGW R21 R22 470 470 Vcc 1 TP5 1 TP9 1 TP10 Vcc D7 Ext Pwr On S1G TP4 TP3 U3 4 1 RXD TXD CANRXD CANTXD CANL CANH 6 7 2 3 GND Vcc REF RS 5 8 MCP2551 C12 R26 0.1 µF 0 C13 C14 tbd 4.7 pF C15 4.7pF R28 100K R24 R25 56 56 Q2 Q3 C16 R27 4.7 pF 33K LED8 WP3VEGW R32 470 Blue LED LED9 V REG1LM2937-5.0V S1G D8 V 3 OUT IN 1 VBB 2 3 2 GND C17 C18 C19 C20 D9 1 .01 µF 10.0 µF R33 P6SMB43AT3G 4.7K .01 µF 10 µF FDN352AP P2 1 6 2 7 3 8 4 9 5 Vcc JP1 1 2 3 4 5 6 TP6 P3 CAN Bus Introduction FDN352AP DS50001848D CAN Bus Analyzer User's Guide 1.5 CAN BUS ANALYZER SOFTWARE The CAN Bus Analyzer comes with two firmware Hex files and PC software which provide the user with a graphical interface to configure the tool, and analyze a CAN network. It has the following software tool features: 1. Trace: Monitor the CAN Bus traffic. 2. Transmit: Transmit single-shot, periodic or periodic messages with a limited repeat onto the CAN Bus. 3. Log File Setup: Save CAN Bus traffic. 4. Hardware Setup: Configure the CAN Bus Analyzer for the CAN network. DS50001848D-page 12 2009-2022 Microchip Technology Inc. and its subsidiaries CAN BUS ANALYZER USER'S GUIDE Chapter 2. Installation 2.1 INTRODUCTION The following chapter describes the procedures for installing the CAN Bus Analyzer hardware and software. This chapter contains the following information: · Software Installation · Hardware Installation 2.2 SOFTWARE INSTALLATION 2.2.1 Installing the GUI Install .NET Framework Version 3.5 before installing the CAN Bus Analyzer. 1. Run "CANAnalyzer_verXYZ.exe", where "XYZ" is the version number of the software. By default, this will install the files to: C:\Program Files\ Microchip Technology Inc\CANAnalyzer_verXYZ. 2. Run the setup.exe from folder: C:\Program Files\Microchip Technology Inc\CANAnalyzer_verXYZ\GUI. 3. The setup will create a shortcut in the Programs menu under "Microchip Technology Inc" as Microchip CAN Tool ver XYZ. 4. If the CAN Bus Analyzer PC software is being upgraded to a newer version, the firmware should be updated to match the revision level of the PC software. When updating the firmware, ensure that the Hex files are programmed into their respective PIC18F microcontrollers on the CAN Bus Analyzer hardware. 2.2.2 Upgrading the Firmware If upgrading the firmware in the CAN Bus Analyzer, the user will need to import the Hex files into MBLAB® IDE and program the PIC® MCUs. When programming the PIC18F2680, the user may power the CAN Bus Analyzer by an external power supply or by the mini-USB cable. When programming the PIC18F550, the user needs to power the CAN Bus Analyzer by an external power supply. Additionally, when programming Hex files into PIC MCUs, it is recommended to check the firmware version from the GUI. This can be done by clicking on the Help>About menu option. 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D-page 13 CAN Bus Analyzer User's Guide 2.3 HARDWARE INSTALLATION 2.3.1 System Requirements · Windows® XP · .NET Framework Version 3.5 · USB Serial Port 2.3.2 Power Requirements · A power supply (9 to 24-Volt) is needed when operating without the PC and when updating firmware in the USB PIC MCU · The CAN Bus Analyzer tool can also be powered using the USB port 2.3.3 Cable Requirements · Mini-USB cable for communicating with the PC software · The CAN Bus Analyzer tool can be connected to a CAN network using the following: - Via the DB9 connector - Via screw-in terminals 2.3.4 Connecting the CAN Bus Analyzer to the PC and CAN Bus 1. Connect the CAN Bus Analyzer via the USB connector to the PC. You will be prompted to install the USB drivers for the tool. The drivers can be found in this location: C:\Program Files\Microchip Technology Inc\CANAnalyzer_verXYZ 2. Connect the tool to the CAN network using the DB9 connector or the screw-in terminals. Please refer to Figure 2-1 and Figure 2-2 for the DB9 connector, and the screw terminals for connecting the network to the tool. TABLE 2-1: 9-PIN (MALE) D-SUB CAN BUS PINOUT Pin Number Signal Name Signal Description 1 No Connect 2 CAN_L 3 GND 4 No Connect 5 No Connect 6 GND 7 CAN_H 8 No Connect 9 No Connect N/A Dominant Low Ground N/A N/A Ground Dominant High N/A N/A DS50001848D-page 14 2009-2022 Microchip Technology Inc. and its subsidiaries Installation FIGURE 2-1: PINOUT FOR THE DB9 CONNECTOR TABLE 2-2: 6-PIN SCREW CONNECTOR PINOUT Pin Number Signal Names Signal Description 1 Vcc PIC® MCU Power Supply 2 CAN_L Dominant Low 3 CAN_H Dominant High 4 RXD CAN Digital Signal from Transceiver 5 TXD CAN Digital Signal from PIC18F2680 6 GND Ground FIGURE 2-2: PINOUT FOR THE SCREW-IN TERMINALS VCC CANL CANH RXD TXD JP1 1 2 3 4 5 6 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D CAN Bus Analyzer User's Guide NOTES: DS50001848D-page 16 2009-2022 Microchip Technology Inc. and its subsidiaries CAN BUS ANALYZER USER'S GUIDE Chapter 3. Using the PC GUI Once the hardware is connected and the software is installed, open the PC GUI using the shortcut in the Programs Menu under "Microchip Technology Inc", labeled as `Microchip CAN Tool ver XYZ'. Figure 3-1 is a screen shot of the default view for the CAN Bus Analyzer. FIGURE 3-1: CAN BUS ANALYZER DEFAULT VIEW 3.1 GETTING STARTED WITH A QUICK SETUP The following are setup steps to quickly start transmitting and receiving on the CAN Bus. For more details, refer to the individual sections for the different PC GUI features. 1. Connect the CAN Bus Analyzer to the PC with the mini-USB cable. 2. Open the CAN Bus Analyzer PC GUI. 3. Open the Hardware Setup and select the CAN Bus bit rate on the CAN Bus. 4. Connect the CAN Bus Analyzer to the CAN Bus. 5. Open the Trace window. 6. Open the Transmit window. 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D-page 17 CAN Bus Analyzer User's Guide 3.2 TRACE FEATURE There are two types of Trace windows: Fixed and Rolling. To activate either Trace window, select the option from the main Tools menu. FIGURE 3-2: FIXED TRACE WINDOW FIGURE 3-3: ROLLING TRACE WINDOW The Trace window displays the CAN Bus traffic in a readable form. This window will list the ID (Extended is signified with a preceding `x' or Standard), DLC, DATA Bytes, the Timestamp and the time difference from the last CAN Bus message on the bus. The Rolling Trace window will show the CAN messages sequentially as they appear on the CAN Bus. The time delta between messages will be based on the last received message, regardless of THE CAN ID. The Fixed Trace window will show the CAN messages in a fixed position on the Trace window. The message will still be updated, but the time delta between messages will be based on the previous message with the same CAN ID. DS50001848D-page 18 2009-2022 Microchip Technology Inc. and its subsidiaries Using the PC GUI 3.3 TRANSMIT FEATURE To activate the Transmit window, select "TRANSMIT" from the main Tools menu. FIGURE 3-4: TRANSMIT WINDOW The Transmit window allows the user to interact with other nodes on the CAN Bus by transmitting messages. The user is able to enter any ID (Extended or Standard), DLC or DATA bytes combination for single message transmittal. The Transmit window also allows the user to transmit a maximum of nine separate and unique messages, either periodically, or periodically with a limited "Repeat" mode. When using the limited Repeat mode, the message will be sent out at the periodic rate for a number of "repeat" times. 3.3.1 Steps to Transmit a Single-Shot Message 1. Populate the CAN message fields, which include the ID, DLC and DATA. 2. Populate the Periodic and Repeat fields with "0". 3. Click on the Send button for that row. 3.3.2 Steps to Transmit a Periodic Message 1. Populate the CAN message fields, which include the ID, DLC and DATA. 2. Populate the Periodic field (50 ms to 5000 ms). 3. Populate the Repeat field with "0" (which translates to "repeat forever"). 4. Click on the Send button for that row. 3.3.3 Steps to Transmit a Periodic Message with Limited Repeats 1. Populate the CAN message fields, which include the ID, DLC and DATA. 2. Populate the Periodic field (50 ms to 5000 ms). 3. Populate the Repeat field (with a value from 1 to 10). 4. Click on the Send button for that row. 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D CAN Bus Analyzer User's Guide 3.4 HARDWARE SETUP FEATURE To activate the Hardware Setup window, select "HARDWARE SETUP" from the main Tools menu. FIGURE 3-5: HARDWARE SETUP WINDOW The Hardware Setup window allows the user to set up the CAN Bus Analyzer for communication on the CAN Bus. This feature also gives the user the ability to quickly test the hardware on the CAN Bus Analyzer. To set up the tool to communicate on the CAN Bus: 1. Select the CAN bit rate from the drop-down combo box. 2. Click the Set button. Confirm that the bit rate has changed by viewing the bit rate setting on the bottom of the main CAN Bus Analyzer window. 3. If the CAN Bus needs the termination resistor active, then turn it on by clicking the Turn On button for the Bus Termination. Test the CAN Bus Analyzer hardware: 1. Ensure that the CAN Bus Analyzer is connected. You can confirm this by viewing the tool connection status on the status strip on the bottom of the main CAN Bus Analyzer window. 2. To confirm that the communication is working between the USB PIC® MCU and the CAN PIC MCU, click on the Help->About main menu option to view the version numbers of the firmware loaded into each PIC MCU. DS50001848D-page 20 2009-2022 Microchip Technology Inc. and its subsidiaries CAN BUS ANALYZER USER'S GUIDE Appendix A. Error Messages In this section, the various "pop-up" errors that are found in the GUI will be discussed in detail as to why they may occur, and the possible solutions for correcting the errors. TABLE A-1: ERROR MESSAGES Error Number Error Possible Solution 1.00.x 2.00.x 3.00.x 3.10.x 3.20.x 3.30.x 3.40.x 4.00.x 4.02.x 4.04.x 4.06.x 4.10.x 4.20.x Trouble reading the USB firmware version Unplug/plug the tool into the PC. Also make sure that the PIC18F2550 is programmed with the proper Hex file. Trouble reading the CAN firmware version Unplug/plug the tool into the PC. Also make sure that the PIC18F2680 is programmed with the proper Hex file. ID field is empty The value in the ID field can not be empty for a message that a user is requesting to be transmitted. Enter a valid value. DLC field is empty The value in the DLC field can not be empty for a message that a user is requesting to be transmitted. Enter a valid value. DATA field is empty The value in the DATA field can not be empty for a message that a user is requesting to be transmitted. Enter a valid value. Remember, the DLC value drives how many data bytes will be sent. PERIOD field is empty The value in the PERIOD field can not be empty for a message that a user is requesting to be transmitted. Enter a valid value. REPEAT field is empty The value in the REPEAT field can not be empty for a message that a user is requesting to be transmitted. Enter a valid value. Enter the Extended ID within the following range (0x-1FFFFFFFx) Enter a valid ID into the TEXT field. The tool is expecting a hexidecimal value for an Extended ID in the range of "0x-1FFFFFFFx". When entering an Extended ID, make sure to append `x' onto the ID. Enter the Extended ID within the following range (0x-536870911x) Enter a valid ID into the TEXT field. The tool is expecting a decimal value for an Extended ID in the range of "0x-536870911x". When entering an Extended ID, make sure to append `x' onto the ID. Enter the Standard ID within the following range (0-7FF) Enter a valid ID into the TEXT field. The tool is expecting a hexidecimal value for a Standard ID in the range of "0-7FF". When entering a Standard ID, make sure to append `x' onto the ID. Enter the Standard ID within the following range (0-2047) Enter a valid ID into the TEXT field. The tool is expecting a decimal value for a Standard ID in the range of "0-2048". When entering a Standard ID, make sure to append `x' onto the ID. Enter DLC within the following range (0-8) Enter a valid DLC into the TEXT field. The tool is expecting a value in the range of "0-8". Enter DATA within the following range (0-FF) Enter valid data into the TEXT field. The tool is expecting a hexidecimal value in the range of "0-FF". 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D-page 21 CAN Bus Analyzer User's Guide TABLE A-1: ERROR MESSAGES (CONTINUED) Error Number Error Possible Solution 4.25.x 4.30.x 4.40.x 4.70.x 4.75.x 5.00.x 6.00.x Enter DATA within the following range (0-255) Enter valid data into the TEXT field. The tool is expecting a decimal value in the range of "0-255". Enter a valid PERIOD within the following Enter a valid period into the TEXT field. The tool is expecting range (100-5000)\nOr (0) for a one-shot a decimal value in the range of "0 or 100-5000". message Enter a valid REPEAT within the following Enter a valid repeat into the TEXT field. The tool is expecting range (1-99)\nOr (0) for a one-shot a decimal value in the range of "0-99". message Unknown error caused by user input Check that the TEXT field only has no special characters or spaces. Required input for CAN Message is empty Check that the ID, DLC, DATA, PERIOD and REPEAT fields contain valid data. Reserved for Message Received errors Reserved for Message Received errors. Unable to Log Data Tool is unable to write CAN traffic to Log File. Possible cause may be that the drive is either full, write-protected or does not exist. DS50001848D-page 22 2009-2022 Microchip Technology Inc. and its subsidiaries NOTES: Error Messages 2009-2022 Microchip Technology Inc. and its subsidiaries DS50001848D AMERICAS Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.com Atlanta Duluth, GA Tel: 678-957-9614 Fax: 678-957-1455 Austin, TX Tel: 512-257-3370 Boston Westborough, MA Tel: 774-760-0087 Fax: 774-760-0088 Chicago Itasca, IL Tel: 630-285-0071 Fax: 630-285-0075 Dallas Addison, TX Tel: 972-818-7423 Fax: 972-818-2924 Detroit Novi, MI Tel: 248-848-4000 Houston, TX Tel: 281-894-5983 Indianapolis Noblesville, IN Tel: 317-773-8323 Fax: 317-773-5453 Tel: 317-536-2380 Los Angeles Mission Viejo, CA Tel: 949-462-9523 Fax: 949-462-9608 Tel: 951-273-7800 Raleigh, NC Tel: 919-844-7510 New York, NY Tel: 631-435-6000 San Jose, CA Tel: 408-735-9110 Tel: 408-436-4270 Canada - Toronto Tel: 905-695-1980 Fax: 905-695-2078 Worldwide Sales and Service ASIA/PACIFIC Australia - Sydney Tel: 61-2-9868-6733 China - Beijing Tel: 86-10-8569-7000 China - Chengdu Tel: 86-28-8665-5511 China - Chongqing Tel: 86-23-8980-9588 China - Dongguan Tel: 86-769-8702-9880 China - Guangzhou Tel: 86-20-8755-8029 China - Hangzhou Tel: 86-571-8792-8115 China - Hong Kong SAR Tel: 852-2943-5100 China - Nanjing Tel: 86-25-8473-2460 China - Qingdao Tel: 86-532-8502-7355 China - Shanghai Tel: 86-21-3326-8000 China - Shenyang Tel: 86-24-2334-2829 China - Shenzhen Tel: 86-755-8864-2200 China - Suzhou Tel: 86-186-6233-1526 China - Wuhan Tel: 86-27-5980-5300 China - Xian Tel: 86-29-8833-7252 China - Xiamen Tel: 86-592-2388138 China - Zhuhai Tel: 86-756-3210040 ASIA/PACIFIC India - Bangalore Tel: 91-80-3090-4444 India - New Delhi Tel: 91-11-4160-8631 India - Pune Tel: 91-20-4121-0141 Japan - Osaka Tel: 81-6-6152-7160 Japan - Tokyo Tel: 81-3-6880- 3770 Korea - Daegu Tel: 82-53-744-4301 Korea - Seoul Tel: 82-2-554-7200 Malaysia - Kuala Lumpur Tel: 60-3-7651-7906 Malaysia - Penang Tel: 60-4-227-8870 Philippines - Manila Tel: 63-2-634-9065 Singapore Tel: 65-6334-8870 Taiwan - Hsin Chu Tel: 886-3-577-8366 Taiwan - Kaohsiung Tel: 886-7-213-7830 Taiwan - Taipei Tel: 886-2-2508-8600 Thailand - Bangkok Tel: 66-2-694-1351 Vietnam - Ho Chi Minh Tel: 84-28-5448-2100 EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4485-5910 Fax: 45-4485-2829 Finland - Espoo Tel: 358-9-4520-820 France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Germany - Garching Tel: 49-8931-9700 Germany - Haan Tel: 49-2129-3766400 Germany - Heilbronn Tel: 49-7131-72400 Germany - Karlsruhe Tel: 49-721-625370 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Germany - Rosenheim Tel: 49-8031-354-560 Israel - Ra'anana Tel: 972-9-744-7705 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Italy - Padova Tel: 39-049-7625286 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Norway - Trondheim Tel: 47-7288-4388 Poland - Warsaw Tel: 48-22-3325737 Romania - Bucharest Tel: 40-21-407-87-50 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 Sweden - Gothenberg Tel: 46-31-704-60-40 Sweden - Stockholm Tel: 46-8-5090-4654 UK - Wokingham Tel: 44-118-921-5800 Fax: 44-118-921-5820 DS50001848D-page 24 2009-2022 Microchip Technology Inc. and its subsidiaries 09/14/21