LIN Serial Analyzer User’s Guide Rev2.0 © 2008 Microchip Technology Inc.
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.
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 Highlights ........................................................................
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.
LIN Serial Analyzer User’s Guide Rev2.0 CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description 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 Represents 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 ...
Preface 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 Serial Analyzer User’s Guide Rev2.0 NOTES: DS51675B-page 4 © 2008 Microchip Technology Inc.
LIN SERIAL ANALYZER USER’S GUIDE REV2.0 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 graphical 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.
LIN Serial Analyzer User’s Guide Rev2.0 FIGURE 1-1: LIN SERIAL ANALYSER DEVELOPMENT TOOL Optional Power Supply LIN Tool PC 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 USB Port 1.5.
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 Connection Network Communication Connector The communication connector connects to the target device using a three-position, screw clamp terminal block.
LIN Serial Analyzer User’s Guide Rev2.0 1.6.3 Dynamically Linked Library (DLL) The LIN Serial Analyser DLL is explained in Chapter 10. “PICkit™ Serial Analyzer DLL” of the “PICkit™ Serial Analyzer User’s Guide” (DS51647). DS51675B-page 8 © 2008 Microchip Technology Inc.
LIN SERIAL ANALYZER USER’S GUIDE REV2.0 Chapter 2. Getting Started – Quick Setup 2.1 HIGHLIGHTS This chapter discusses: • Using the LIN Serial Analyzer for the First Time • Software Installation • Running LIN Serial Analyser Program 2.2 USING THE LIN SERIAL ANALYZER FOR THE FIRST TIME The LIN Serial Analyser is shipped preprogrammed and ready for use. The user needs to supply: • A wiring harness with appropriate connections to its system network • A power supply (nominal 13.
LIN Serial Analyzer User’s Guide Rev2.0 There is a hard-wired, loopback bus path, so connection to a network is not needed for testing the installation. To start the software: 1. 2. 3. 4. On the Windows operating system taskbar, click Start. Click All Programs>Microchip Technology Inc.>LIN Serial Analyser. Click Setup>COM port. From the pull-down menu, select the USB port to be used. Note: Only available, plugged in USB ports are displayed by the pull-down menu.
LIN SERIAL ANALYZER USER’S GUIDE REV2.0 Chapter 3. LIN Serial Analyser PC Program 3.1 HIGHLIGHTS This chapter discusses: • • • • • • • • 3.2 Interface Overview Transaction Window File Functions Setup Functions Tools Functions Start/Stop Logging Button Master Message Group Box Status Bar INTERFACE OVERVIEW When the LIN Serial Analyser’s software program starts, the window, shown in Figure , appears. The commands are accessed through the pull-down menus at the top of the interface.
LIN Serial Analyzer User’s Guide Rev2.0 3.3 TRANSACTION WINDOW This window, shown in Figure 3-1, constantly monitors and display bus traffic when in the “Display All” mode. Any message frames seen on the bus are shown, regardless of the source. The data is displayed as it is seen on the bus without modification. This section describes the window’s fields. FIGURE 3-1: MESSAGE FRAMES DISPLAY 3.3.
LIN Serial Analyser PC Program 3.3.7 Errors This field displays any of the error types described in this section. If multiple errors are detected, only one is displayed. 3.3.7.1 PARITY The parity is calculated on the frame identifier bits as shown in Equation 3-1. EQUATION 3-1: PARITY CALCULATIONS† P0 = ID0 ℘? ID1 ℘? ID2 ℘? P1 = - (ID1 ℘? ID3 ℘? ID4 ℘? I † P0 is bit 6 and P1 is bit 7 of the ID byte. 3.3.7.2 TX BIT A slave or master node that is transmitting a bit on the bus also monitors the bus.
LIN Serial Analyzer User’s Guide Rev2.0 3.4 FILE FUNCTIONS 3.4.1 Open The “Open” dialog box loads configuration and master message frames from a user-selected file into the “Master Frames” field, so that they can be sent (see Section 3.8.1 “Master Frames Field”). By default, the dialog box, shown in Figure 3-2, displays the file that was last used in the previous session. To display the dialog box, go to the pull-down menus at the top of the user interface and select File>Open. FIGURE 3-2: 3.4.
LIN Serial Analyser PC Program 3.4.3 Save As The “Save As” dialog box saves or appends configuration and master message frames, displayed in the “Master Frames” field, to a preselected file (see Section 3.8.1 “Master Frames Field”). The default file name is the last used file from the previous session. To display the dialog box, shown in Figure 3-3, go to the pull-down menus at the top of the user interface and select File>Save As. FIGURE 3-3: 3.4.
LIN Serial Analyzer User’s Guide Rev2.0 3.5 SETUP FUNCTIONS The Tools pull-down menu has the following commands. 3.5.1 Setup COM port The “Setup COM port” function selects the USB communication port to use. Note: The “COM port” drop-down list box displays only available, plugged-in USB ports. If the correct serial port is not displayed in the menu, verify that the USB hardware is correctly installed. The menu also sets the baud rate to apply to master transactions.
LIN Serial Analyser PC Program 3.5.2 Log File The Log File setup function specifies the new or existing file that will store bus transactions. If an existing file that already contains data is selected, any new messages will be appended to the end of the file. FIGURE 3-5: LOG FILE SETUP WINDOW To display the dialog box, select Setup>Log File. © 2008 Microchip Technology Inc.
LIN Serial Analyzer User’s Guide Rev2.0 3.5.3 Slave Response The Slave Response setup function specifies message frames that are published to the bus whenever the correct ID is recognized. FIGURE 3-6: SLAVE RESPONSE SETUP WINDOW To display the dialog box, select Setup>Slave Response. 3.5.4 Slave Response Frames Field The “Slave Response Frames” field is composed of 0 to n rows of one or more messages that are sent over the bus in response to a valid ID byte.
LIN Serial Analyser PC Program 3.5.4.2 DEVELOPING AND STORING RESPONSE CONTENT To manually add a slave response message content to the “Slave Response Frames” field: 1. Click the Add button. A second window displays for creation of the new message. 2. Type the message in the text box. 3. Click OK. To load a pre-existing message to the “Slave Response Frames” field: WARNING Importing a file into the “Slave Response Frames” field overwrites any content that previously had been in that field. 1.
LIN Serial Analyzer User’s Guide Rev2.0 To save a slave reponse message to a file: 1. See Section 3.4.2 “Save” and Section 3.4.3 “Save As”. 3.5.4.3 SLAVE RESPONSE FRAMES FIELD ELEMENTS This section describes the “Slave Response Frames” field’s two elements. 3.5.4.3.1 ID The “ID” element displays the identifier byte that is compared to identifier bytes received from the bus. The ID is entered without the upper two parity bits.
LIN Serial Analyser PC Program The checksum returned by the slave will be displayed in the “Checksum” field of the Transaction window (see Section 3.3.5 “ChkSumType”.) © 2008 Microchip Technology Inc.
LIN Serial Analyzer User’s Guide Rev2.0 3.6 TOOLS FUNCTIONS This sections lists the commands on the Tools pull-down menu. 3.6.1 Debug Mode Selecting Tools>Debug Mode enables the user to debug bus or slave operational issues. One function forces a user-supplied checksum to be appended to a master message to check a slave for proper error handling. In this mode, the generation of identifier parity bits is inhibited and the identifier byte is transmitted without modification. 3.6.
LIN Serial Analyser PC Program 3.7 START/STOP LOGGING BUTTON This button – located in the top, right corner of the interface – starts, pauses, or stops the capturing of messages to the log file. Before starting the logging process, select and open a log file (see Section 3.5.2 “Log File”). To pause the logging process, click the button a second time. 3.
LIN Serial Analyzer User’s Guide Rev2.0 3.8.1.2 DEVELOPING AND STORING MESSAGE CONTENT To manually add message content to the “Master Frames” field: 1. Click the Add button. A second window displays for creation of the new message. 2. Type the message in the text box. 3. Click OK. To load a pre-existing message to the “Master Frames” field: WARNING Importing a file into the “Master Frames” field overwrites any content that previously had been in that field. 1. From the pull-down menus, select File>Open.
LIN Serial Analyser PC Program To store a message: 1. See Section 3.4.2 “Save” and Section 3.4.3 “Save As”. 3.8.1.3 MASTER FRAMES FIELD ELEMENTS This section describes the “Master Frames” field’s two elements. 3.8.1.3.1 ID The “ID” element displays the identifier byte to be sent without the upper two parity bits. Parity is calculated and appended at send time unless the application is in the Debug mode (see Section 3.6.1 “Debug Mode”). The acceptable range of values is 00 to 3F hex (0 to 63 decimal). 3.
LIN Serial Analyzer User’s Guide Rev2.0 3.8.2.6 DELETE BUTTON Clicking the Delete button deletes the content that is highlighted in the “Master Frames” field. (see the “Delete” procedure in Section 3.8.1.2 “Developing and Storing Message Content”). 3.8.3 Checksum Group The checksum value is computed at send time.
LIN SERIAL ANALYZER USER’S GUIDE REV2.0 Appendix A. LIN Serial Analyzer Technical Information A.1 HIGHLIGHTS This chapter discusses: • LIN Serial Analyzer Schematic A.2 LIN SERIAL ANALYZER SCHEMATIC The LIN Serial Analyzer management hardware diagram is shown in Figure A-1. © 2008 Microchip Technology Inc.
P1 1 2 3 4 5 6 J2 1 3 2 0.1 MF C7 VCC MMBZ27VCLT1G R9 C8 C6 D4 10K 1 R8 2 22 pF 22 pF C5 220 pF R3 1K VDD 3 R10 VCC PIC18F2450-QFN RA0/AN0 RA1/AN1 RA2/AN2/VREFRA3/AN3/VREF+ RA4/T0CLI/RCV RA5/AN4/LVDIN OSC2/CLKOUT/RA6 OSC1/CLKIN MCLR/VPP/RE3 USB_ATTACH 4.7K 27 28 1 2 3 4 Y1 20 MHz 7 6 26 U2 MCP2021-500 2 4 1 8 1.0 MF C3 VDD CS/WAKE LIN TX RX FAULT/TXE GND U1 LIN_ATTACH 5 6 D3 1N4148WX-TP C2 .
LIN SERIAL ANALYZER USER’S GUIDE REV2.0 Index B M Buttons Start/Stop Logging ............................................ 19 Master Frames Field Data .................................................................. 21 Deleting Message Content................................ 20 Developing and Storing Message Content ............................... 20 ID ...................................................................... 20 Loading Pre-Existing Message Content............
LIN Serial Analyzer User’s Guide Rev2.0 Software Dynamically Linked Library (DLL) ....................... 8 File Menu .......................................................... 14 Firmware ............................................................. 8 Installation ........................................................... 9 Interface Window .............................................. 11 Master Message Group Box ............................. 19 Overview ..................................................
Index NOTES: © 2008 Microchip Technology Inc.
WORLDWIDE SALES AND SERVICE AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://support.microchip.com Web Address: www.microchip.