background image

Kvaser PCIEcan User's Guide

 

 

10(17)

 

 

                            

Kvaser AB, Mölndal, Sweden 

— www.kvaser.com 

 

 

 

6  Software Development Information 

 

This section is intended for those who want to program the PCIEcan card directly. Normally, 
you would choose to use the supporting device drivers available for the PCIEcan card. Refer 
to the “CANLIB Software Development Kit” documentation for further information on these 
device drivers from a programm

er’s point of view. Please note that this board is fully software 

compatible with the Kvaser PCIEcan 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 in chapter 9. General knowledge about the PCI 
Express bus is also assumed. 
 

6.2  The PCI Express bus controller 

 

All PCIEcan 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.3  Address decoding 

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

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 PCIEcan, but the first address area is set up to be 
compatible with the Kvaser PCIcan cards. 

Summary of Contents for 00405-4

Page 1: ...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 ...

Page 2: ...Kvaser PCIEcan User s Guide 2 17 Kvaser AB Mölndal Sweden www kvaser com This page is intentionally left blank ...

Page 3: ... 8 5 2 CAN Bus Termination 8 5 3 D SUB connector 9 6 Software Development Information 10 6 1 Additional Documentation 10 6 2 The PCI Express bus controller 10 6 3 Address decoding 10 6 4 Interrupts 11 6 5 Registers in the Xilinx 11 6 6 PCI Configuration Data 11 6 7 Configuration of the SJA1000 12 7 Support 13 8 Disposal and Recycling Information 14 9 References 15 10 Legal Information 16 10 1 Elec...

Page 4: ...ovides 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 PCIEcan features Up to two independent CAN channels High Speed CAN Supports bit rates up to 1 Mbit s Fits in PCI Express slots Communicates with the PC through Direct I O S...

Page 5: ...rating systems Windows XP or later For other operating systems see Kvaser web or contact Kvaser support CAN Controllers and Oscillator Frequency CAN controllers 1 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 SN65HVD251D compliant with the ISO 11898 2 standard Voltage f...

Page 6: ...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 SN65HVD251D 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 Grou...

Page 7: ... product versions of the Kvaser PCIEcan boards is shown in Figure 1 CAN Driver Isolation DC DC Converter CAN Controller SJA1000 PCI Bridge Xilinx FPGA PCI Express Bus Connector CAN 1 PCIEcan HS and HS HS CAN 2 equal to CAN 1 PCIEcan HS HS CAN Bus Connector D SUB Figure 1 Block diagram for Kvaser PCIEcan HS HS ...

Page 8: ...more than 50 Volt from the PC computer chassis ground Note that the PCIEcan will not secure this condition itself If any DSUB pin has an external voltage in the range below 500 Volt from chassis ground this will also be the true voltage at this pin 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...

Page 9: ...ed on a bracket and connects to the metallic housing of the PC The pinning of the 9 pin DSUB connector is listed in Table 3 Table 3 9 pin DSUB connector for Kvaser PCIEcan HS HS HS Per channel Pin Function 1 Not connected 2 CAN L 3 Signal ground 4 Not connected 5 Shield 6 Not connected 7 CAN H 8 Not connected 9 Not connected ...

Page 10: ...ssumed 6 2 The PCI Express bus controller All PCIEcan 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...

Page 11: ...N ENABLE bit 13 in the INTCSR register in the S5920 6 5 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 10 which is read from the VERINT register as 1110xxxx Future revi...

Page 12: ...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 PCIEcan ...

Page 13: ...re and its documentation are available from our web site and is 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 ...

Page 14: ...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 ...

Page 15: ...ler Preliminary Specification 1997 Nov 04 Also available on the web Shanley T and Anderson D PCI Express system architecture MindShare Inc ISBN 0 321 15630 7 More CAN information is found on www kvaser com and has many links to other sites with CAN information You can also download new versions of the software for PCIEcan here ...

Page 16: ...lease also note that the information in this document is subject to change without notice and should not be construed as a commitment on the part of Kvaser AB 10 4 Trademarks and patents All product names mentioned in this manual are registered or unregistered trademarks of their respective owner The products described in this document are protected by U S patent 5 696 911 NOTE This equipment has ...

Page 17: ...11 Document revision history Revision Date Changes 1 2008 01 17 Original revision 2 2008 12 01 Updated chapter 9 Legal Information 3 2011 01 14 Updated supported OS list 4 2011 09 12 Updated disposal information 5 2012 09 03 Improved PCI access documentation Minor corrections ...

Page 18: ...X ON Electronics Largest Supplier of Electrical and Electronic Components Click to view similar products for kvaser manufacturer Other Similar products are found below 00671 3 00685 0 ...

Reviews: