CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide 2011 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.
CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD USER’S GUIDE Table of Contents Preface ........................................................................................................................... 5 Chapter 1. Introduction 1.1 Overview ...................................................................................................... 11 1.2 Functional Overview ..................................................................................... 13 Chapter 2. Hardware 2.1 Board Setup .........
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide NOTES: DS70319B-page 4 2011 Microchip Technology Inc.
CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD 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 web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide 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
Preface WARRANTY REGISTRATION Please complete the enclosed Warranty Registration Card and mail it promptly. Sending in the Warranty Registration Card entitles users to receive new product updates. Interim software releases are available at the Microchip web site. RECOMMENDED READING This user’s guide describes how to use CAN/LIN/J2602 PICtail (Plus) Daughter Board. Other useful documents are listed below. Microchip documents are available and recommended as supplemental reference resources.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide DEVELOPMENT SYSTEMS CUSTOMER 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 web site at www.microchip.
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 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.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide DOCUMENT REVISION HISTORY Revision A (January 2008) • Initial Release of this Document. Revision B (March 2011) • Added support for PIC18 Explorer Development Board. DS70319B-page 10 2011 Microchip Technology Inc.
CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD USER’S GUIDE Chapter 1. Introduction Thank you for purchasing Microchip Technology’s CAN/LIN/J2602 PICtail™ (Plus) Daughter Board.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide FIGURE 1-1: CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD CONNECTED TO EXPLORER 16 DEVELOPMENT BOARD CAN/LIN/J2602 PICtail™ (Plus) Daughter Board dsPIC33F or PIC24 Plug In Module Explorer 16 Development Board FIGURE 1-2: CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD CONNECTED TO PIC18 EXPLORER DEVELOPMENT BOARD PIC18 Explorer Development Board CAN/LIN/J2602 PICtail™ (Plus) Daughter Board PIC18 Plug In Module DS70319B-page 12 2011 Microchip
Introduction 1.2 FUNCTIONAL OVERVIEW The block diagram shown in Figure 1-3 illustrates the mainstream operation of the CAN/LIN/J2602 PICtail™ (Plus) Daughter Board. The board contains two LIN signal conditioning circuits and two CAN signal conditioning circuits. The board also enables power to be provided by the development board it is connected to, or by an external 12V DC source.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide For PIC18 devices, the pinout for the LIN1 and LIN2 modules can be different. The jumpers J4, J8, J13 and J14 are for choosing between these pinouts. For the specific pinout that is necessary for the PIC18 that is used, refer to that device’s data sheet. For PIC24 and dsPIC33 devices, make sure to leave the J4, J8, J13 and J14 jumpers disconnected. Otherwise, these connections can disrupt LIN communications.
CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD USER’S GUIDE Chapter 2. Hardware This chapter provides a functional overview of the CAN/LIN/J2602 PICtail (Plus) Daughter Board and identifies the major hardware components. Topics covered include: • Board Setup • Hardware Components 2.1 BOARD SETUP Figure 2-1 is a photograph of the CAN/LIN/J2602 PICtail (Plus) Daughter Board. Callouts indicate the CAN bus, LIN bus and signal connections on the daughter board.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide 2.2 HARDWARE COMPONENTS Figure 2-2 identifies the key hardware components on the CAN/LIN/J2602 PICtail (Plus) Daughter Board.
Hardware 2.2.1 Explorer 16 Board PICtail™ Connector (J7) Explorer 16 Board PICtail connector J7 (see Reference 1), a 120-pin signal connector that carries signals from the I/O pins of the dsPIC33F or PIC24 device on the Explorer 16 Board to the CAN/LIN/J2602 PICtail (Plus) Daughter Board. This connector handles the following signals: • 9V, 5V and 3.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide 2.2.8 CAN Transceivers (U3, U4) A pair of MCP2551 CAN transceivers (see Reference 11 and Reference 14) provide the interface between the ECAN modules on the dsPIC33F, PIC24 or PIC18 control device and the CAN bus. The transceiver converts the signals from the ECAN modules on the dsPIC33F, PIC24 or PIC18 device to a pair of differential CAN bus signals. 2.2.
Hardware 2.3 AUXILIARY HEADER PINOUTS The two auxiliary headers, J17 and J18, allow for monitoring and debugging other pins from the microcontroller as well as the CAN and LIN pins. Depending on which development board is being used, the auxiliary headers have different pinouts. Table 2-1 maps out microcontroller pins to header pins for both development boards, the PIC18 Explorer Board and the Explorer 16 Board. Refer to Figure A-4 for the schematic of the headers.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide Table 2-1: DS70319B-page 20 PINOUT MAP FOR MICROCONTROLLERS TO DEBUG HEADERS (Continued) Header Pin # on Header Name of Pin on Header PIC18 Explorer Pin Explorer 16 Pin J18 8 DEBUG38 RF6 RB7 J18 9 DEBUG39 NC RB5 J18 10 DEBUG40 NC RB10 J18 11 DEBUG41 NC RB11 J18 12 DEBUG42 NC RB12 J18 13 DEBUG43 NC RB13 J18 14 DEBUG44 NC RB14 J18 15 CAN1TX RB2 RF1 J18 16 CAN1RX RB3 RF2 J18 17 CAN2TX RC6 or RE5 (s
CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD USER’S GUIDE Chapter 3. CAN/LIN/J2602 PICtail (Plus) Daughter Board Tutorial Program This chapter provides a brief description of the code that can be used with the CAN/LIN/J2602 PICtail (Plus) Daughter Board. When connected to the PIC18 Explorer Board, the code included with the board can be used. When the daughter board is connected to the Explorer 16 Board, some examples available on Microchip’s web site (www.microchip.com) can be used.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide 3.2 dsPIC33F and PIC24H Tutorial Overview 3.2.1 ECAN Software Several code examples are available to demonstrate the usage and functionality of the ECAN module on the dsPIC33F and PIC24H device families.
CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD USER’S GUIDE Appendix A. Drawings and Schematics This appendix provides drawings and schematic diagrams of the CAN/LIN/J2602 PICtail (Plus) Daughter Board for both Revision 1 and Revision 2. A.1 CAN/LIN/J2602 PICTAIL™ (Plus) DAUGHTER BOARD LAYOUT Figure A-1 is a drawing of the CAN/LIN/J2602 PICtail (Plus) Daughter Board (AC164130-2) layout. Figure A-2 is a drawing of the CAN/LIN/J2602 PICtail (Plus) Daughter Board (AC164130) layout.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD (AC164130) LAYOUT (REVISION 2) FIGURE A-2: RF3 RF6 RF2 RF7 RF8 RG2 RG3 J11 GND RB0 GND RB1 RB3 GND RB4 GND RE9 RD14 RE8 RD15 +3.3V +5V +3.3V +5V +9V RG9 +9V RF0 RG6 RG7 RF1 RF4 RG8 GND RF5 RA2 RB8 RA9 RA3 GND GND RA15 RB9 RA10 RF12 +3.3V GND RA14 +9V RF13 +3.
2011 Microchip Technology Inc.
CONNECTOR AND HEADER PINOUT SCHEMATICS RB2/SS1/AN2 RF6/SCK1 RF2/U1RX_E RF3/U1TX_E RF7/SDI1_E RG2/SCL1 RF8/SDO1_E RG3/SDA1 RE2 RE3 RB0/AN0 RB3/AN3 RE9/INT2 RD14/U1CTS_E RA7 RB1/AN4 RA6 RB4/AN4 RE8/INT1 RD15/U1RTS_E RC7 RC6 RB7 RB6 RB5 RB4 RG0 RG1 RB3 RF0 RF1 RB2 RB1 RG9/PMPA2/SS2 RF4/PMA9/R2RX RG6/PMPA5/SCK2 RF5/PMA8/U2TX RG7/PMPA4/SDI2 RA2/SCL2 RG8/PMPA3/SDO2 RA3/SDA2 RB0 RD1 RB8/AN8 RA9/PMA7 RB9/AN9 RD3 RA10/PMA6 RD5 RD7 RA15/INT4 RF12/U2CTS RA14/INT3 RE1 RF13/U2RTS RG1 RG0
Drawings and Schematics FIGURE A-5: LIN CIRCUIT SCHEMATICS LIN Power LIN2 +3.3V J13 used for Master/Slave select D6 43V J13 CS/WAKE VBAT VREG LIN Power LIN J11 VSS Txd C9 10uF RF5/PMPA8/U2TX RF13/U2RTS R4 RA14/INT3 FAULT/TXE D5 Rxd 1k R3 100k U2 RF4/PMPA9/U2RX 1 MCP2021 +12V C11 DNP D4 27V C7 0.1uF C2 10uF 2 3 LIN Power J9 D3 2 LIN Power C3 22uF 25V 1 +9V 1 J8 2 3 LIN Power J12 used for Master/Slave select +3.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide FIGURE A-6: CAN CIRCUIT SCHEMATICS J5 U4 TXD RS VSS CANH VDD CANL RXD VREF C6 +5V 0.1uF RG1 R6 120R CAN2 RG0 J7 1 6 MCP2551-DIP 2 7 3 8 4 9 5 CAN1 U3 TXD RS VSS CANH VDD CANL RXD VREF C5 +5V 0.1uF RF1 R5 120R J4 RF0 MCP2551-DIP J6 1 6 2 7 3 8 4 9 5 DS70319B-page 28 2011 Microchip Technology Inc.
Drawings and Schematics FIGURE A-7: CONNECTOR AND HEADER PINOUT SCHEMATICS J1 RB2/SS1/AN2 RF6/SCK1 RF7/SDI1_E RF8/SDO1_E RB0/AN0 RB3/AN3 RE9/INT2 +3.3V RD14/I1CTS_E +5V +9V RG9/PMPA2/SS2 RG6/PMPA5/SCK2 RG7/PMPA4/SDI2 RG8/PMPA3/SDO2 RB8/AN8 RA9/PMPA7 +3.
CAN/LIN/J2602 PICtail™ (Plus) Daughter Board User’s Guide Figure A-8: DS70319B-page 30 CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD (AC164130) 2011 Microchip Technology Inc.
CAN/LIN/J2602 PICtail™ (Plus) DAUGHTER BOARD USER’S GUIDE Index B Board Layout............................................................ 23 C CAN Bus Connectors ............................................... 18 CAN Bus Termination Jumpers................................ 18 CAN Circuits .......................................................26, 28 CAN Operation......................................................... 14 CAN Transceivers ....................................................
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://www.microchip.com/ support Web Address: www.microchip.