Home

CANmunicator User Manual

image

Contents

1. i 8 5 Add message 7 8 6 Send 8 8 7 Arm Trigger S 5 5 Abort Tx ws Enable Tx 8 8 9 Filter Registers 8 8 10 Baud rate Register 9 ll Register MAap 9 8 12 MCP2515 Status 10 8 13 Reset MCP2515 Il 8 14 Exit Il 8 15 Operation mode Il 8 16 Baud Rate
2. Il USB 2 CAN Communication protocol 22 022 00220000 12 9 1 Command R 12 9 2 Command W 13 9 3 Command C 13 9 4 Command X 14 9 5 Command I 15 9 6 Command A 15 9 7 Command T 16 9 8 Command M 16 9 9 Command D 17 9 10 Command Q 7 9 11 Command V
3. IS 9 12 Command Z IS 9 13 Command J 19 10 Initialization 7 4 2 1 21 11 Revision History 4 4 4 1 1 1 1 23 Q Proto System www qprotos com 1 Introduction QuickCAN device provides a simple reliable and high performance connection between your PC and the controller area network CAN via USB port No external power is required as QuickCAN device is powered by built in USB port QuickCAN package comes with a Windows interface application program called CANmunicator This program initializes QuickKCAN MCP2515 firmware at startup and provides point and click access to all MCP2515 internal registers It also provides a user friendly interface to send and receive CAN messages that can be either standard or extended frames QuickCAN package also provides the USB 2 CAN communication protocol which offers users the flexibility to develop their own applications The following block diagram illustrates the operation of the QuickCAN device QuickCAN device C8051F320 Core MCP2515 Controller Area Network 16 MHzClock 2 Quick Start 2 1 Download QuickCAN Application
4. 1 Packet format lt TxBuf Id gt lt CAN id gt lt Frame type gt lt length gt lt data gt lt triggered time gt Each packet ends with followed by the carriage return 2 lt Frame type gt must be set to one of the following values 1 STD 2 EXT 3 R STD 4 R EXT 3 A line starting with character is considered as comment 4 When lt triggered time gt is 1 the packet will not be transmitted when lt Arm Trigger gt is active 10 2 Examples 10 2 1 QuickCAN 1ini SWITCH ON 1 TIMER _22 Q Proto System www qprotos com INTERVAL 30 timer interval is 30 ms This value is used by TX trigger event CONFIG MASKO 0x0 MASK1 0xFFFFFFFF FILTERO 0x87654321 FILTER 1 0x5BO00000 FILTER2 0x 12345678 FILTER3 0x 12345678 FILTER4 0x 12345678 FILTERS5 0x 12345678 CNF3 0x6 CNF2 0xf9 CNF1 0x43 0 filter off 1 standard 2 extended 3 standard or extended ACCEPTANCE0 1 accept standard frames that meet the filter criteria ACCEPTANCE1 3 accept both standard and extended frames FILE NAME lt c quickcan host debug init txt 10 2 2 Example of the init txt specified in QuickCAN ini FILE option TxBuf Id CAN id Frame type length data triggered time lt This is a comment line 0 0x2d8 R STD 0x3 0x1E 0x12 0x13 1 lt remote standard frame id is 0x2d8 length is 0x3 and no time trigger 0 0x2d8 STD 0x8 0x5a 0 0 0 0 0 0 0x2d 0x567 standard frame id is 0x2d8
5. CANmunicator User Manual QuickCAN interface program Revision 1 3 Date 11 2005 Introduction 2200202 220000 22202 nn nnn e enn n ne ee enn eeee nee eeeenes 1 Quick Start 222 222 22020 2220000222 00n nn ne enna een n nnn een nnn eeen nn eeeeneneee 1 Disclaimer 2 222 222 2222 222 22222 c ence nen enn enn ene e ee ene een e nee e een e eee e eee e eee e ee eeeeeeeeeeeeeeees 1 System requirements 22220002000 e nnn n nnn n nnn nee e eee e een e nnn n nnn n nnn e eee eeeeeeee 1 Specification 22222 0 222222 e nee e ene e enn n enna anne eee e eee e een e nnn n nnn e eee eeeeeeeeeneeee 2 QuickCAN hardware pin out and LED indication 2 Device driver installation 2 3 CANmunicator 2220 2222 n 6 8 l Clear All 6 8 2 Get Message 7 8 3 Enable Scan 7 8 4 SAVE
6. Tell me why this testing i important Continuing your installation of this software may impair or destabilize the corect operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anyway 7 5 Click the lt Finish gt button to complete the installation after the hardware wizard finishes installing QuickCAN device driver Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for Quick Cah Device Click Finish to close the wizard Eancel To verify the successfully installation of the driver open Windows lt control panel gt gt lt System gt gt lt Hardware gt gt lt Device Manager gt the QuickCAN device shall be shown under Universal Serial Bus controllers tree Q Proto System www qprotos com 8 CANmunicator The CANmunicator formally called QuickCAN interface application provides users an easy and quick start to access Controller Area Network CAN The application uses the USB 2 CAN communication protocol to access the MCP2515 internal registers and initialize the proper MCP2515 registers to send and receive CAN messages Overview The CANmunicator is composed of three major control groups 1 Action buttons Send command to access the internal registers of
7. The protocol is developed with the Silicon Laboratories USB Xpress driver development kits and allows users to easily create USB application to the QuickCAN device It is strongly recommended that USB Xpress be used to develop applications because of its easy to use and compatibility with the QuickCAN device For details of the USBXpress please refer to USB Xpress programmer guide from http www cygnal org QuickCAN application version USB Xpress version used USBXpress 1 4 USBXpress 2 1 The communication protocol is asynchronous which means one command and one response No command shall be issued before the previous response is received e All commands start with followed by QuickCAN command byte and ended with checksum e All responses start with followed by QuickCAN command byte plus returned data if any and the checksum except for the response to J command J response does not have checksum appended e If any error occurs during the operation the first two bytes of the response are E followed by the error code and checksum e The user application shall check for error status from the response before proceeding to the next operation The XOR checksum method is applied to all the commands and responses except for the response to J command For example if a request 0x40 0x41 is sent to the device a checksum byte 0x01 shall be appended to the original data Therefore the real time o
8. length is 8 data packets are OxSa 0 0 0 0 O 0 Ox2d triggered time is 0x567 count of the preset application timer interval MAX_LIST_CNT COUNT 10000 lt Message Activities gt will display as many as 10000 messages before flushing 11 Revision History Document Software Revision Date Comment Revision 11 05 2004 1 1 1 1 7 22 2005 1 Add section 6 1 to show how to upgrade Interface program from 1 0 to 1 1 2 Add description for lt view register gt button under lt Add message gt dialog 3 The interface program is USBXpress 2 1 compatible 4 Add lt view ID format gt in filter dialog to show the converted ID IA Q Proto System www qprotos com format from registers values a 1 2 1 2 8 18 r eee The QuickCAN interface program is now called CANmunicator Fixed the description in Section 10 Init file should now be in the same directory of quickcan exe file instead of c windows lt Message activities gt pane will not reset the content and first in first out method is used lt Abort All gt button is changed to lt Abort Tx gt and lt Enable Tx gt to toggle the ABAT bit Users are no longer need to clear this bit manually to re enable the transmission Le 11 1 2005 Add lt refresh gt button in the a map dialog _24
9. receive CAN messages Documented USB to CAN communication protocol allows users to develop their own applications for extensive usage Full USB1 1 speed at 12MHz DB9 Male connector for CAN network 5 10 Support loopback and listen operations 5 11 Up to 1 M bit software selectable CAN baud rate 5 12 Windows driver for Win98 SE 2000 and XP is included 6 QuickCAN hardware pin out and LED indication 6 1 DB9 Male pin out RST Not used for CAN bus CAN Low GND Pin 1 Pin 4 and Pin 8 are used for C8051F320 programming purpose and they shall not be used for CAN connection Misuse of these pins may result in damage of the QuickCAN device C2D Not used for CAN bus Pin 9 V is not connected at this time 6 2 LED indication The LED is lit when the QuickCAN device is connected to the PC The lit LED indicates that the device is powered Please note that the Windows device driver must be installed before the QuickCAN is ready to be used Q Proto System www qprotos com 7 Device driver installation 7 1 For new purchase skip to the step 6 2 For Interface Program UPGRADE from 1 0 to 1 1 or later the following steps must be followed to ensure the QuickCAN device is working properly on the new device driver 1 2 3 4 5 6 7 Detach the QuickCAN device from your PC USB port Remove the older version of the QuickCAN directory Install the new version of the Interface program Plug the QuickC
10. MCP2515 such as lt Filter Registers gt lt Baud rate registers gt and lt MCP2515 status gt etc 2 lt Message Activities gt pane Displays both lt Tx gt and lt Rx gt activities across the CAN bus Each message is time stamped by the Windows timer not firmware timer that is defined by the Timer interval in QuickCAN in1 3 lt Outgoing message gt pane Lists all user defined lt Tx gt data Pressing either the button lt Send gt or lt Arm Trigger gt can send any messages in this list lt Outgoing message gt list can be pre loaded with data from a flat file The data file name with full path is defined in QuickCAN in1 2 ihr kCAN rier ace Apik a by Q Froto Syalem E _ i me ih 2 el mere F Ii CNS oo SS i i i 1 F EE EEEk DEES mere F te 1213 SA 0000 w a i On 20 Ba t213 0i a rr AS 1112 13401 EE 11121713 J 0000 O00 S GA E13 0t I TAS iiin ii w ii f Dl if ri w ee T E a E 8 1 Clear All Clear All This button removes all the activities in the lt Message Activities gt control list 62 Q Proto System www qprotos com This button gets all the received CAN message from the QuickCAN software FIFO It cannot be used with lt Enable Scan gt simultaneously It is disabled when lt Enable Scan gt is enabled The QuickCAN device uses Interrupt Method to receive CAN messages User must make sure the receive bits in CANINTE are enabled before CAN messages can be
11. Rx Status 0 0 No 0 1 MessageinRxBO 19 Q Proto System www qprotos com essage in RxB1 essages in both buffers Frame type shall be checked from the message packet Bit 2 Bit 1 BitO Filter match RXFO RXF1 RXF2 RXF3 RXF4 RXF5 RXFO roll over to RxB1 RXFI1 roll over to RxB1 p ama Error response Error code Error code MCP2515 Error Invalid QuickCAN command _20 Q Proto System www qprotos com 10 Initialization Configuration file QuickCAN ini is used to initialize the MCP2515 when the CANmunicator is launched This file is located at the same directory of the QuickCAN exe The following parameters can be set in the QuickCAN ini file 10 1 Initialization parameters O SWITCH Format ON 1 or 0 When ON 1 QuickCAN 1ni file is used to initialize the MCP2515 When ON 0 QuickCAN 1in1i file is not used at all TIMER Format INTERVAL lt value gt Set up the CANmunicator timer interval This interval and the trigger time value together determine when to send a Time Triggered CAN message from the lt outgoing messages gt list User shall carefully set the timer interval that 1s sufficient to process all the timer triggered messages in the lt Outgoing Messages gt list control CONFIG Format MASKO lt value gt MASK 1 lt value gt FILTERO lt value gt FILTERI lt value gt FILTER2 lt value gt FILTER3 lt value gt FILT
12. can be retrieved later with the J command The RxStatus returned from the I command may not be real time because this value is refreshed each time a new message atrives Format Response I Status value see MCP2515 lt SPI Checksum interface gt for details Error response Error code MCP2515 Error Invalid QuickCAN command Invalid Checksum 9 6 Command A Description Reset MCP2515 Format Byte 0 es es yte 2 Q Response Byte A Error response _15 Q Proto System www qprotos com Error code Error code 1 MCP2515 Error Invalid command 1 Invalid Checksum 9 7 Command T Description Set RTS command Format Command byte Command byte refer to MCP2515 datasheet e 0 None e 1 TXO e 2 TXI e 3 TXO amp TXI e 4 TX2 e 5 TX2 amp TX0 e 6 TX2 amp TXI1 e 7 TX2 TX1 TXO Response Error response Error code Error code MCP2515 Error Invalid QuickCAN command 9 8 Command M Description Send BIT modify command Format _16 Q Proto System www qprotos com Response Error response Error code 2 Invalid QuickCAN command __ 2 Invalid QuickCAN command Invalid Checksum 9 9 Command D Description Get multiple bytes from MCP2515 up to 8 bytes each time Format Error code Error code MCP2515 Error Invalid QuickCAN command Invalid Checksum Byte 2 gt 8 9 10 Command Q Descripti
13. to QuickCAN 1in1 Q Proto System www qprotos com Recerve Butter 1 F z wiew IO f t Mask Ox FFESFFFF lew TL Farma F 7 Exit ter 2 Ox 12205678 Mote Filter 3 Ox 12205678 All the values shown here are in l p2205678 raw register format Filter 4 Ox 12405675 Refer to Microchip Recewe Butter 0 Mask Ox FFE 3FFFF Filter O Ox 87614321 Filter 1 Ox JSR OOO000 Ae Butter Operating Mode STD Mags that meet crite MCP2515 for Filter 5 x 12205678 details Ae Buffer Operating Mode Example Enable Roll to Butter 1 jail Mags that meet criteria Se A z filter value 0x56 000000 shall be entered lt View ID format gt allows user to view the filter register into converted ID format For example a standard frame filter register value 0x5B000000 is shown as 0x000002D8 after the conversion 8 10 Baud rate Register Baudrate Reg This button allows users to change the baud rate registers for the customized CAN speed It is disabled when button lt Enable Scan gt is enabled The MCP2515 chip is running at 16MHz CAN Baud rate registers x CAN Bit Timing Configuration Contig 1 px 43 Config 2 s IFS Contig 3 Ux 06 8 11 Register map Reg Map Q Proto System www qprotos com This button allows users to retrieve and edit the values of all the MCP2515 internal registers except for baud rate and filter registers Refer to MCP2515 datasheet for detail
14. AN device to your PC Go to lt Control panel gt gt lt system gt gt lt device manager gt to remove the QuickCAN device driver It should be under lt Universal Serial bus controller gt Detach and reattach the QuickCAN Windows should pop up the lt Found new hardware Wizard gt dialog a When Windows OS asks Can Windows connect to Windows Update to search for software Click lt this time only gt b Select install from a list or specific location and click lt next gt c Check the include this location in the search box and browse to the driver directory that the driver directory that QuickCAN application is just installed d Sometimes Windows may ask the location of the file SiF32x sys This file is also under the driver sub directory of the QuickCAN application 7 2 The following steps are only applied to the new purchase user Plug in the QuickCAN device to your USB port through the USB A B cable The setup wizard should run automatically and a Welcome screen should appear as follows Select option lt Install from a list or specified location Advanced gt Then click the lt Next gt button Q Proto System www qprotos com Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for Fes USB press Device 9 If your hardware came with an installation CD or floppy disk insert it now what do you want the wizard to do Install the softwar
15. ER4 lt value gt FILTERS lt value gt CNF3 lt value gt CNEF2 lt value gt CNF1 lt value gt ACCEPTANCEO lt value gt ACCEPTANCE lt value gt Where MASKO MASK1 FILTERO FILTER1 FILTER2 FILTER3 FILTER4 FILTERS CNF3 CNF2 CNFI are the mask filter and baud rate registers of the MCP2515 ACCEPTANCE parameter defines the type of CAN message that can be received in filter O or 1 respectively See table below for detail ACCEPTANCE value oO Filter is off 1 Receive only valid messages with extended identifiers that meet filter criteria _2 Q Proto System www qprotos com 2 Receive only valid messages with standard identifiers that meet filter criteria 3 Receive all valid messages using either standard or extended identifiers that meet the filter criteria o MAX_LIST_COUNT Format COUNT lt value gt The lt value gt is the maximum number of messages that can be displayed in the lt Message Activities gt list control When this limit is reached the first come first out method is used Setting this limit to zero allows lt Message Activities gt control to continuously display all the traffic without flushing Time to flush the lt Message Activities gt may vary on different OS and CPU o FILE Format FILE lt file name with full path gt The lt name gt is file name of the ASCII file that has all the TX data to be loaded into the lt Outgoing Messages gt list Format of the file
16. QuickCAN exe from Q Proto system web site www gqprotos com download html and install it to your local 2 2 Connect the QuickCAN device to the PC via USB A B cable 2 3 Install the Windows device driver see chapter 6 2 4 Launch the QuickCAN exe from Windows lt start gt lt QuickCAN gt menu 2 5 Ready to use 3 Disclaimer While every effort has been made to ensure that the information contained in this manual is accurate and complete no liability can be accepted for any error and omission Q Proto system reserves the right to change the specification of the hardware and software described herein at any time prior notice Q Proto System shall not be liable for direct indirect incidental general or consequential damage from the use of the products from Q Proto system If you do not agree with these terms do not buy the products 4 System requirements 4 1 Windows 98SE 2000 XP operating system 4 2 Pentium II 350MHz or above 4 3 Minimum 256M RAM 4 4 One available USB 1 1 or above port on the PC Q Proto System www qprotos com 5 Specification 5 1 5 2 5 3 5 4 5 5 5 6 S 5 8 5 9 High speed 8051 compatible microcontroller C8051F320 with built in USB functionality CAN2 0A and B support Microchip MCP2515 CAN controller running at 16 MHz Microchip MCP2551 CAN transceiver Self powered by USB port The CANmunicator initializes the MCP 2515 firmware at start up The device is ready to send and
17. d C Description Read RX buffer Format MCP2515 Command byte MCP2515 Command byte refer to MCP2515 datasheet e 0 RX buffer starts from RXBOSIDH _13 Q Proto System www qprotos com e 1 RX buffer starts from RXBDO e 2 RX buffer starts from RXB1ISIDH e 3 RX buffer starts from RXBD1 Response Error respons Error code Ce 2 code MCP2515 Error Invalid QuickCAN command byte 1 Invalid MCP2515 Command byte byte 2 9 4 Command X Description Load TX buffer Format Byte 2 9 or 2 14 Byte 10 or 15 Byte 3 15 Byte 16 X MCP2515 Data see MCP2515 datasheet Checksum Command byte MCP2515 Command byte 0x40 0x41 0x42 0x43 0x44 0x45 Response TX buffer 0 start at TXBOSIDH TX buffer 0 start at TXBODO TX buffer 1 start at TXB1SIDH TX buffer 1 start at TXB1DO TX buffer 2 start at TXB2SIDH TX buffer 2 start at TXB2D0 Error response Error code Error code _14 Q Proto System www qprotos com Invalid QuickCAN command Invalid Checksum 9 5 Command I Description Get Rx status This command is intended for QuickCAN firmware use even it is listed here Developers should use the Status byte in the J command to determine the RX buffer number and matched filter The ISR interrupt service routine in the QuickCAN firmware is active all the time It copies the RxStatus to the software receiver FIFO along with the data when message arrives so it
18. e automatically Recommended Click Nest to continue 4 Back Cancel 7 3 Select option lt Search for the best driver in these locations gt Set the search location to the directory where QuickCAN driver is located 1 e c QuickCAN driver if you unzip QuickCAN zip to c QuickCAN Then click the lt Next gt button Found New Hardware Wizard Please choose your search and installation options S Use the check boxes below to limit or expand the default search which includes local paths and removable media The best driver found will be installed Search removable media floppy CO ROM Ii Include this location in the search E Duck CANS Driver Browse Don t search will choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the diver you choose will be the best match for pour hardware lt Back Cancel 7 4 Occasionally you may get the following warning on some operating systems This is because QuickCAN device driver has not been certified from Microsoft at this time However this installation Q Proto System www qprotos com should not effect the operation of your system Click the lt Continues Anyway gt button to continue installation Hardware Installation AN The software you are installing for this hardware OOO QuickCAN Device has not passed Windows Logo testing to very its compatibility with Windows F
19. is button sends all CAN messages that have the trigger time set in the lt Outgoing Messages gt list These messages are called Time Triggered messages Once a time triggered message is transmitted its trigger time value is set to 1 to indicate the completion of transmission The trigger time and the QuickCAN application timer interval together determine when a time triggered message is sent The formula is shown as below Time to send the message QuickCAN application timer value trigger time value Where QuickCAN application timer interval value is set in the file QuickCAN ini See Chapter 9 and its default value is 10ms the trigger time value set by users For example the QuickCAN application timer value is 10 ms set in the file QuickCAN ini and the trigger is set to 0x64 decimal 100 then this CAN message will be transmitted at 1000 ms after the button lt Arm Trigger gt is pressed 8 8 Abort Tx ws Enable Tx This button toggles the Global abort bit ABAT bit in the MCP2515 This bit can be manually set or cleared from lt Reg Map gt dialog 8 9 Filter Registers Filters Reg This button allows users to edit the current values of MCP2515 reception filters and masks It is disabled when button lt Enable Scan gt is enabled The values of MCP2515 reception filters and masks at application startup are defined in the file QuickCAN ini if any Filters and masks changes made from the interface are NOT saved back
20. on Write multiple bytes to MCP2515 up to 8 bytes each time Format Byte4 11 Byte 5 or6or 12 247 lt Q Proto System www qprotos com Number of byte Starting address Data Checksum to write Response Qf Checksum _ _ ___ Error response Error code MCP2515 Error Invalid QuickCAN command Invalid Checksum Byte 2 gt 8 9 11 Command V Description Get the error status packet dropped count from the MCP 2515 Format Response V TEC REC EFLG Dropped Dropped Number of Checksum packet count packet count CAN Msg in high byte low byte the FIFO Error response Error code Error code MCP2515 Error Invalid QuickCAN command Invalid Checksum 9 12 Command Z Description Reset the MCP 2515 RX FIFO The number of CAN messages in FIFO is also reset to zero Format 18 Q Proto System www qprotos com Response Byte 0 Error response o ooo Firor 0 Error code ae MCP2515 Error Invalid QuickCAN command Invalid Checksum 9 13 Command J Description Request the MCP2515 to send received messages up to 32 packets to the host Format Response Transfers up to 32 packets to the host Note that this response has no checksum byte The format of the packet is shown below o p PR Satis CAND Langit Data NA Se ES ee Ee ee J Rx Status CANID Length Data N A ee ee eee eee J Rx Status CANID Length Data N A Up to 32 packets
21. received properly Both RXIIE and RXOIE are enabled when the CANmunicator is launched Users must re enable those 2 bits after the lt Reset MCP2515 gt is called before any message can be received Other Interrupt bits shall be disabled set to 0 in CANINTE 8 3 Enable Scan Enable Scan i This button enables the automatic scanning of the incoming CAN message from QuickCAN MCP2515 Button lt Get Msg gt is disabled when lt Enable Scan gt is enabled 8 4 Save Save i This button saves all the data in lt Message Activities gt to a file in ASCII format It is disabled when lt Enable Scan gt is enabled 8 5 Add message Add Message This button allows users to add a CAN message to the lt outgoing message gt list After lt Add Message gt button is pressed a CAN dialog form pops up as following xi blessage CAN ID Os Jooooo000 Length fi Tranemit Buffer fo Trigger time Dx Enter FFFF if you like to View Registers disable the time trigger Data Ox oo os foo Us fon Us foo Os foo Os fon Os foo Os foo Frame ype STD C ExT C STDRTA Tea pene Cancel Q Proto System www qprotos com View H egisters The lt View registers gt button allows user to see the generic data format of the CAN ID registers MCP2515 8 6 Send This button allows user to send the selected CAN message from the lt Outgoing Messages gt list 8 7 Arm Trigger Arm Trigger Th
22. s Note The MCP2515 operation mode is NOT changed during this operation Hence the values of the baud rate registers and filter registers may not be shown properly as they can only be updated in configuration mode MCP2515 Register Map xj Address Register Value Hex format RX FOSIDH AesFOSIDL AsFOEIDS As FOEI AesF1SIDH AesF1SIDL RaFIEIDS RaFIEIDO ReF25IDH RaF2sIDL RaFeEIDS Update ox Refresh Exit 8 12 MCP2515 Status MCF2515 Status This button shows the error status of CAN network Refer to MCP2515 datasheet for details It also shows the status of the receiving FIFO e Packet Dropped count the number of dropped packet when the receiving FIFO is full The QuickCAN device has 32 software FIFOs to receive CAN messages e Number of messages in the FIFO the number of received CAN messages in the software FIFO _10 Q Proto System MCP2515 FIFO and Error Status Efron wannitg 8 13 Reset MCP2515 This button resets the MCP2515 to its power up state 8 14 Exit This button exits the QuickCAN application 8 15 Operation mode This button sets the MCP2515 operation mode 8 16 Baud Rate This dropdown list allows the users to set the MCP2515 to a pre configured baud rate 11 Q Proto System www qprotos com 9 USB 2 CAN Communication protocol The QuickCAN device provides a set of communication protocol for users to develop their own applications
23. utgoing data is 0x40 0x41 0x01 the same XOR method applies to responses except for the response to J command In the USB 2 CAN protocol QuickCAN command byte refers to the command sent to the QuickCAN device Usually this command byte is the second byte the command packet The MCP2515 command byte refers to the command sent to MCP2515 which could be embedded in the whole packet The USB 2 CAN protocol is an extension of the MCP2515 SPI command set It allows developers to interface with MCP2515 through the USB interface For detailed of the MCP2515 SPI command set see MCP2515 datasheet SPI interface section section 12 In the USB 2 CAN protocol even the length of the response is always 16 bytes with the exception of the J response multiple of 16 bytes only first few bytes are meaningful This is because the QuickCAN firmware software buffer is rounded at 16 bytes The following section depicts the details of the commands set 9 1 Command R Description Read register Format Register address Response _12 Q Proto System www qprotos com Ri Register value Checksum Error response Byte 2 Error code Error code MCP2515 Error Invalid QuickCAN command Invalid checksum 9 2 Command W Description Update register Format Register address Value Response sy Error response Error code MCP2515 Error Invalid QuickCAN command Invalid checksum 9 3 Comman

Download Pdf Manuals

image

Related Search

Related Contents

定時株主総会 招集ご通知  depliant_mediatheque_accessible_en_ligne_avril_2015  MANUAL DEL USUARIO - Icon Heath & Fitness  Sony VAIO SVF15A18CXB notebook  Manuale - CB Sabbiatrici  Jasco 12719 Instruction Manual  Invacare® G50 MANUEL DE MAINTENANCE  "user manual"  Bose SoundTouch AM3 Wi-Fi  食品添加物 次亜塩素酸ソーダ 取扱説明書  

Copyright © All rights reserved.
Failed to retrieve file