Microchip Technology LIN Serial Analyzer User’s Guide

LIN Serial Analyzer
User’s Guide Rev2.0
© 2008 Microchip Technology Inc. DS51675B
Note the following details of the code protection feature on Microchip devices:
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digit al Millennium Copyright A ct. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device applications and t he lik e is provided only for your convenience and may be su perseded by upda t es . It is y our responsibility to ensure that your application meets with your specifications. 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 ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life supp ort and/or safety ap plications is entir ely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless M icrochip from any and all dama ges, claims, suits, or expenses re sulting from such use. No licens es are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron, dsPIC, K
EELOQ, KEELOQ logo, microID, MPLAB, PIC,
PICmicro, PICSTART, PRO MATE, rfPIC and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
AmpLab, FilterLab, Linear Active Thermistor, Migratable Memory, MXDEV, MXLAB, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, WiperLock 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.
All other trademarks mentioned herein are property of their respective companies.
© 2008, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received ISO/TS-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures are for its PIC devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
DS51675B-page ii © 2008 Microchip Technology Inc.
LIN SERIAL ANALYZER
USER ’S GUIDE REV2.0
Table of Contents
Preface ...........................................................................................................................1
Chapter 1. LIN Serial Analyzer Overview.....................................................................5
1.1 Introduction .....................................................................................................5
1.2 Highlight s ......... ............. .. .. ........................... .. .. ........................... .. .. ................ 5
1.3 LIN Serial A n a lyzer Conten ts ......... .......................... .. ... ............. .. .................. 5
1.4 LIN Serial Analyzer Development Tool ..........................................................5
1.5 LIN Serial A n a ly zer Hardware ................ ... .. ............. .. ... ............. .. .. ............. ... 6
1.6 LIN Serial A n a ly zer Software ............. ........................... .. .. ............. .. ... ........... 8
Chapter 2. Getting Started – Quick Setup....................................................................9
2.1 Highlight s ......... ............. .. .. ........................... .. .. ........................... .. .. ................ 9
2.2 Using the LIN S e ria l Analyzer for the F irs t Time ............... ............................. 9
2.3 Software In st a lla tion ............ ............. .. .. ........................... .. .. ........................... 9
2.4 Running L IN S e rial Analyzer P ro g ram ...... .. .......................... ... ............. .. .. ..... 9
Chapter 3. LIN Serial Analyzer PC Program ..............................................................11
3.1 Highlight s ......... ............. .. .. ........................... .. .. ........................... .. .. .............. 11
3.2 Interface Ov e r view .......................................................... .. .. ......................... 11
3.3 Transaction Window .....................................................................................12
3.4 File Functions ...............................................................................................14
3.5 Setup Functions ...........................................................................................16
3.6 Tools Functions ............................................................................................18
3.7 Start/Stop Logging Button ................................................................. ...........19
3.8 Master Message Group Box .........................................................................19
3.9 Status Bar ..................... .. .. ........................... .. .. ........................... .. .. .............. 22
Appendix A. LIN Serial Analyzer Technical Information ..........................................23
A.1 Highlight s .......... .......................... ... .. .......................... ... .. ............................. 2 3
A.2 LIN Serial Ana lyzer Schem a tic ............ .. ........................................ .. ... ......... 23
Index .............................................................................................................................25
Worldwide Sales and Service ....................................................................................27
© 2008 Microchip Technology Inc. DS51675B-page iii
LIN Serial Analyzer User’s Guide Rev2.0
NOTES:
DS51675B-page iv © 2008 Microchip Technology Inc.
LIN SERIAL ANALYZER
USER ’S GUIDE REV2.0

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 web site (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 “DSXXXXXA”, where “XXXXX” 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 Select the Help menu, and then Topics to open a list of available on-line help files.

INTRODUCTION

®
IDE on-line help.
This chapter contains general information that will be useful to know before using the LIN Serial Analyser. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Web Site
• Customer Support
• Document Revision History

DOCUMENT LAYOUT

This document describes how to use the LIN Serial Analyser. The manual layout is as follows:
Chapter 1. “LIN Serial Analyser Overview” – What the LIN Serial Analyser is, what makes it a desirable development tool and what features are available.
Chapter 2. “Getting Started – Quick Setup” – Describes the supplies needed to set up and begin to use the LIN Serial Analyser.
Chapter 3. “LIN Serial Analyser PC Program” – Describes the primary elements of the interface.
Appendix A. “LIN Serial Analyzer Technical Information” – Provides the detailed schematic of the LIN Serial Analyser.
© 2008 Microchip Technology Inc. DS51675B-page 1
LIN Serial Analyzer User’s Guide Rev2.0

CONVENTIONS USED IN THIS GUIDE

This manual uses the following docum entat io n conven tion s:
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB
Emphasized text ...is the only comp ile r...
Initial caps A window the Output window
A dialog the Settings dialog A menu selection select Enable Programmer
Quotes A field name in a window or
dialog
Underlined, italic text with right angle bracket
Bold characters A dialog button Click OK
N‘Rnnnn A number in verilog format,
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sam ple source code #define START
Italic Courier New A variable argument file.o, where file can be
Square brackets [ ] Optional arguments mcc18 [options] file
Curly brackets and pipe character: { | }
Ellipses... Replaces r epeated text var_name [,
A menu path File>Save
A tab Click the Power tab
where N is the tota l number of digits, R is th e radi x and n is a digit.
File names autoexec.bat File paths c:\mcc18\h Keywords _asm, _endasm, static Command-line options -Opa+, -Opa- Bit values 0, 1 Constants 0xFF, ‘A’
Choice of mutually exclusive arguments; an OR selection
Represents code supplied by user
®
IDE User’s Guide
“Save project before build”
4‘b0010, 2‘hF1
any valid file name
[options] errorlevel {0|1}
var_name...] void main (void)
{ ... }
DS51675B-page 2 © 2008 Microchip Technology Inc.

RECOMMENDED READING

This user’s guide describes how to use LIN Serial Analyser. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources.
It is recommended that you become familiar with the documents listed below before using the LIN Serial Analyser.
PICkit™ Serial Analyzer User’s Guide (DS51647) LIN Specification Package 2.1
© LIN Consortium, 2006. http://www.lin-subbus.org.
LIN Network for Vehicle Applications – Surface Vehicle Recommended Practice (J2602/1)
© SAE 2006. http://www.sae.org.

THE MICROCHIP WEB SITE

Microchip provides online support via our web site at www.microchip.com. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the web site 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
Preface

CUSTOMER SUPPORT

Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
• Development Systems Information Line
Customers should contact their distributor, representative or field application engineer (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 web site at: http://support.microchip.com.

DOCUMENT REVISION HISTORY

Revision A (June 2007)

• Initial release of this document.

Revision B (June 2008)

• Release describes new features of Revision 2.0 software.
© 2008 Microchip Technology Inc. DS51675B-page 3
LIN Serial Analyzer User’s Guide Rev2.0
NOTES:
DS51675B-page 4 © 2008 Microchip Technology Inc.

Chapter 1. LIN Serial Analyser Overview

1.1 INTRODUCTION

The LIN Serial Analyser development system enables a Personal Computer (PC) to communicate with a LIN (Local Interface Network) bus. The PC program uses a graph­ical user interface to enter and display message frames occurring on the target bus. The LIN Serial Analyser connects to the system network using a three-position terminal block.
Chapter 2. “Getting Started” will guide you through installing the PC program, the Windows

1.2 HIGHLIGHTS

This chapter discusses:
• LIN Serial Analyser Contents
• LIN Serial Analyser Development Tool
• LIN Serial Analyser Hardware
• LIN Serial Analyser Softwar e
LIN SERIAL ANALYZER
USER ’S GUIDE REV2.0
®
operating system drivers and setting up the hardware.

1.3 LIN SERIAL ANALYSER CONTENTS

The LIN Serial Analyser kit contains the following items:
• LIN Serial Analyser
• Mini-B USB Cable
• LIN Serial Analyser CD-ROM

1.4 LIN SERIAL ANALYSER DEVELOPMENT TOOL

The LIN Serial Analyser consists of several components, that together, make a network debug and analysis tool. The user interface program runs on Microsoft operating system compatible computers with a USB port.
The LIN Serial Analyser connects to the PC using a mini-B USB cable. The LIN Serial Analyser interfaces to the target network using a three-position, screw-type terminal block. Figure 1-1 illustrates the LIN Serial Analyser tool connected to a network.
®
Windows®
© 2008 Microchip Technology Inc. DS51675B-page 5
LIN Serial Analyzer User’s Guide Rev2.0

FIGURE 1-1: LIN SERIAL ANALYSER DEVELOPMENT TOOL

Optional
Power
Supply
Board Under Test

1.5 LIN SERIAL ANALYSER HARDWARE

The LIN Serial Analyser connects to a Microsoft® Windows® operating system compatible computer using a USB port. It interfaces to the target network using a three-position, screw-type terminal block.

FIGURE 1-2: LIN SERIAL ANALYSER

Status LEDs
LIN Tool
PC
USB Port

1.5.1 Status LEDs

The Status LEDs indicate the status of the LIN Serial Analyser. An illuminated LED means:
• USB (green) – Power has been applied to the LIN Serial Analyser by the USB port.
• Busy (yellow) – The LIN Serial Analyser is communicating with the LIN network.
• LIN (blue) – The LIN Serial Analyser is connected to the target bus.
DS51675B-page 6 © 2008 Microchip Technology Inc.
LIN Serial Analyser Overview

1.5.2 USB Port Connection

The USB port connection is a USB mini-B connector. Connect the LIN Serial Analyser to the PC using the cable supplied with the device.
FIGURE 1-3: LIN SERIAL ANALYSER NETWORK AND POWER
Terminal Block Screws
Auxiliary Power

1.5.3 Network Communication Connector

The communication connector connects to the target device using a three-position, screw clamp terminal block. The pin assignments, labeled on the top of the device, are:
• VBAT – Positive battery connection for voltage supplied by the vehicle
• LIN – Bidirectional data I/O
• GND – Common chassis, power and serial ground

1.5.4 Power Jack

The device us es a stan dard, 6.5 x 2.5 DC pow er plug. Th e center pi n is posit ive. Powe r can be supplied either through the power plug or the network connector as the two are internally connected.

1.6 LIN SERIAL ANALYSER SOFTWARE

1.6.1 User Interface Program

The LIN Serial Analyser PC program displays all of the board’s bus activity via the software’s Transaction window, displayed on the connected PC. This is useful for “sniffing” the bus and tracking message frames.
Chapter 3. “LIN Serial Analyser PC Program” explains the installation and operation of the program.
Network Connection

1.6.2 Firmware

The LIN Serial Analyser firmware is explained in Chapter 9. “PICkit™ Serial Analyzer Firmware” of the “PICkit™ Serial Analyzer User’s Guide” (DS51647).
© 2008 Microchip Technology Inc. DS51675B-page 7
Loading...
+ 25 hidden pages