background image

Kvaser PCIcanx User's Guide

 

 

13(20)

 

 

                            

Kvaser AB, Mölndal, Sweden 

— www.kvaser.com 

 

 

 

6  Software Development Information 

 

This section is intended for those who want to program the PCIcanx card directly. Normally, 
you would choose to use the supporting device drivers available for the PCIcanx card. Refer 
to the “CANLIB Software Development Kit” documentation for further information on these 
device drivers from a programmer’s point of view. Please note that this board is fully software 
compatible with the Kvaser PCIcan boards. 
 

6.1  Additional Documentation 

 

This document includes all information you need to use the circuits on the card. However, the 
circuits themselves are not described here so information about these must be obtained from 
the suppliers. See the list of references on page 15. General knowledge about the PCI bus is 
also assumed. 

6.2  A note on the different PCIcanx versions 

 

PCIcanx 4xHS has four CAN controllers. PCIcanx HS/HS has two CAN controllers and 
PCIcanx HS has one controller. This chapter describes primarily PCIcanx 4xHS; if you have 
one of the other cards, just disregard the circuits and switches that are not on your card. 
Differences between the different members of the PCIcan family are explicitly noted wherever 
they occur. 
 

6.3  The PCI bus controller 

All PCIcanx boards use the same PCI controller, which is a Xilinx FPGA with PCI core. The 
PCI controller is responsible for address decoding and interrupt steering. 
 
The initialization of the PCI controller is outside the scope of this manual. Typically, it is 
carried out by the operating system and/or the BIOS. There are a few registers you have to 
set up in the driver; these are described below. 
 

6.4  Address decoding 

 
The PCI controller can decode up to 5 different address areas, three of which are used by the 
PCIcanx. 
 
 

Address area # 

Type 

Size (bytes) 

Used for 

I/O 

128 

Xilinx registers 

(“AMCC S5920”) 

I/O 

128 

SJA1000 circuits 

– 0x1f: SJA1000 #1 

0x20 

– 0x3F: SJA1000 #2 

0x40 

– 0x5F: SJA1000 #3 

0x60 

– 0x7F: SJA1000 #4 

I/O 

16 

Xilinx registers 

 
Address area number 1, the one used for the SJA1000’s, is further subdivided into four areas 
of 32 bytes each; one for each (possible) SJA1000. 
 
There is no actual AMCC S5920 in the PCIcanx, but the first address area is set up to be 
compatible with the Kvaser PCIcan cards. 

Содержание PCIcanx 4xHS

Страница 1: ...l service in house repair center WE BUY USED EQUIPMENT Sell your excess underutilized and idle used equipment We also offer credit for buy backs and trade ins www artisantg com WeBuyEquipment REMOTE INSPECTION Remotely inspect equipment before purchasing with our interactive website at www instraview com LOOKING FOR MORE INFORMATION Visit us on the web at www artisantg com for more information on ...

Страница 2: ...12 We believe that the information contained herein was accurate in all respects at the time of printing Kvaser AB cannot however assume any responsibility for errors or omissions in this text Also note that the information in this document is subject to change without notice and should not be construed as a commitment by Kvaser AB ...

Страница 3: ...Kvaser PCIcanx User s Guide 2 20 Kvaser AB Mölndal Sweden www kvaser com This page is intentionally left blank ...

Страница 4: ... 10 5 4 D SUB connector 11 5 5 The LED indicators 12 6 Software Development Information 13 6 1 Additional Documentation 13 6 2 A note on the different PCIcan versions 13 6 3 The PCI bus controller 13 6 4 Address decoding 13 6 5 Interrupts 14 6 6 Registers in the Xilinx 14 6 7 PCI Configuration Data 14 6 8 Configuration of the SJA1000 15 7 Support 16 8 Disposal and Recycling Information 17 9 Refere...

Страница 5: ...s the user with excellent software support through Kvaser CANlib Fully software compatible with the Kvaser PCIcan boards i e 100 compatible with applications written for the Kvaser PCIcan boards using Kvaser CANlib API 2 3 PCIcanx features Up to four independent CAN channels High Speed CAN ISO 11898 2 Supports bit rates up to 1 Mbit s Fits in PCI X and PCI slots See chapter 5 1 Communicates with t...

Страница 6: ... systems Windows XP or later For other operating systems see Kvaser web or contact Kvaser support CAN Controllers and Oscillator Frequency CAN controllers 4 x SJA1000 CAN Clock frequency 16 MHz Option Possible to specify CAN oscillator frequency per channel contact our Sales Department for an inquiry CAN Bus Driver s Drivers Texas SN65HVD251 compliant with the ISO 11898 2 standard Voltage feed The...

Страница 7: ...Controllers and Oscillator Frequency CAN controllers 2 x SJA1000 CAN Clock frequency 16 MHz Option Possible to specify CAN oscillator frequency per channel contact our Sales Department for an inquiry CAN Bus Driver s Drivers Texas SN65HVD251 compliant with the ISO 11898 2 standard Voltage feed The drivers are galvanically separated from the power supply on the PC by on board DC DC converters Groun...

Страница 8: ... CAN Controller and Oscillator Frequency CAN controller 1 x SJA1000 CAN Clock frequency 16 MHz Option Possible to specify CAN oscillator frequency contact our Sales Department for an inquiry CAN Bus Driver Driver Texas SN65HVD251 compliant with the ISO 11898 2 standard Voltage feed The driver is galvanically separated from the power supply on the PC by on board DC DC converter Grounding The ground...

Страница 9: ...is shown in Figure 1 CAN Driver Isolation DC DC Converter CAN Controller SJA1000 PCI Bridge Xilinx FPGA PCI X or PCI Bus Connector IRQ A CAN 1 PCIcanx HS HS HS and 4xHS CAN 2 equal to CAN 1 PCIcanx HS HS and 4xHS CAN 3 equal to CAN 1 PCIcanx 4xHS CAN 4 equal to CAN 1 PCIcanx 4xHS CAN Bus Connector D SUB Figure 1 Block diagram for the Kvaser PCIcanx boards ...

Страница 10: ...slots 3 3 V 64 bit 3 3 V 32 bit 5 V 64 bit 5 V 32 bit To summarize the Kvaser PCIcanx boards can be used in any PCI X and PCI slots Just keep in mind all cards on a common bus can only run as fast as the slowest card For example if there is a 33 MHz card in slot 1 and a 66 MHz card in slot 2 both cards will run at 33 MHz The performance degradation can be avoided by separating the Kvaser PCIcanx b...

Страница 11: ...in Each CAN driver circuit is protected from short time over voltage like ESD and accidental short cuts to high voltage An over voltage beyond 500 Volt on any used DSUB pin will cause a rapid shortcut to ground If the applied over voltage do have a high energy source some PCB wires may burn away in that case 5 3 CAN Bus Termination There are no terminating resistors onboard the standard PCIcanx bo...

Страница 12: ...le 4 1 and the pinning of the 9 pin DSUB connector is listed in table 4 2 Table 4 25 pin DSUB connector for Kvaser PCIcanx 4xHS Pin Function 1 Ground to CAN driver 1 2 Ground to CAN driver 2 14 Ground to CAN driver 3 15 Ground to CAN driver 4 5 6 CAN L for CAN 1 18 19 CAN H for CAN 1 7 8 CAN L for CAN 2 20 21 CAN H for CAN 2 9 10 CAN L for CAN 3 22 23 CAN H for CAN 3 11 12 CAN L for CAN 4 24 25 CA...

Страница 13: ... 2 CAN L 3 Signal ground 4 Not connected 5 Shield 6 Not connected 7 CAN H 8 Not connected 9 Not connected 5 5 The LED indicators The PCIcanx HS and PCIcan HS HS boards have LED indicators one per channel They are visible through a hole in the mounting bracket The LEDs indicates CAN bus activity and will emit a short pulse whenever a CAN message is received or transmitted ...

Страница 14: ...x 4xHS if you have one of the other cards just disregard the circuits and switches that are not on your card Differences between the different members of the PCIcan family are explicitly noted wherever they occur 6 3 The PCI bus controller All PCIcanx boards use the same PCI controller which is a Xilinx FPGA with PCI core The PCI controller is responsible for address decoding and interrupt steerin...

Страница 15: ...t 13 in the INTCSR register in the S5920 6 6 Registers in the Xilinx The Xilinx FPGA implements a few registers Address offset Register Usage 0 6 Reserved do not use 7 VERINT Bit 7 4 contains the revision number of the FPGA configuration 15 is the first revision 14 is the next and so on The current FPGA revision number is 13 which is read from the VERINT register as 1110xxxx Future revisions 12 11...

Страница 16: ...t connected CLKO is not connected Setting the OCR register to 0xDA is a good idea This means normal output mode push pull and the correct polarity In the CDR register you should set CBP to 1 You will probably also want to set the clock divider value to 0 meaning divide by 2 the Pelican bit and the clock off bit you have no need for CLKOUT anyway The only way to find out how many SJA1000 a PCIcanx ...

Страница 17: ...re and its documentation are available from our web site and are not further documented here Kvaser CANKing a free of charge and general purpose interactive CAN bus monitor can be download from our web site Please visit our homepage http www kvaser com to find software updates hints and tips and other helpful information You are always welcome to contact our Support Team support kvaser com ...

Страница 18: ...ser com 8 Disposal and Recycling Information When this product reaches its end of life please dispose of it according to your local environmental laws and guidelines For information about Kvaser s recycling programs visit www kvaser com en kvaser environment recycling ...

Страница 19: ...liminary Specification 1997 Nov 04 Also available on the web Shanley T and Anderson D PCI system architecture fourth edition MindShare Inc ISBN 0 201 30974 2 More CAN information is found on http www kvaser com and has many links to other sites with CAN information You can also download new versions of the software for PCIcanx there ...

Страница 20: ...atement This product is manufactured in accordance with directive 2002 95 EC on the Restriction of the use of certain Hazardous Substances in electrical and electronic equipment RoHS 10 3 About this manual This document is Copyright 2001 2008 Kvaser AB This document may not be reproduced without our written permission Infringement will render the user liable to prosecution We believe that the info...

Страница 21: ...rints in section 2 1 4 2008 05 13 Documented the LED indicators Various other editorial changes Updated WEEE RoHS and patent information 5 2008 12 03 Added OEM part numbers Minor editorial changes 6 2010 12 17 Removed faulty statement that PCIcan 4xHS does not have LED indicators 7 2011 01 14 Updated supported OS list 8 2011 09 12 Updated disposal information 9 2012 09 03 Improved PCI access docum...

Страница 22: ...l service in house repair center WE BUY USED EQUIPMENT Sell your excess underutilized and idle used equipment We also offer credit for buy backs and trade ins www artisantg com WeBuyEquipment REMOTE INSPECTION Remotely inspect equipment before purchasing with our interactive website at www instraview com LOOKING FOR MORE INFORMATION Visit us on the web at www artisantg com for more information on ...

Отзывы: