PCI-1680U 2-Port CAN Interface Universal PCI Communication Card w/Isolation User Manual
Copyright The documentation and the software included with this product are copyrighted 2004 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reliable.
Product Warranty (2 years) Advantech warrants to you, the original purchaser, that each of its products will be free from defects in materials and workmanship for two years from the date of purchase. This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech, or which have been subject to misuse, abuse, accident or improper installation.
CE This product has passed the CE test for environmental specifications when shielded cables are used for external wiring. We recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for ordering information. Technical Support and Assistance Step 1. Visit the Advantech web site at www.advantech.com/support where you can find the latest information about the product. Step 2.
Contents Chapter 1 Introduction ..................................................... 2 1.1 1.2 1.3 1.4 Chapter Features ............................................................................. 3 Specifications .................................................................... 3 Ordering Information ........................................................ 4 Advantech Device Manager Installation ........................... 6 Driver Installation .....................................................
PCI-1680U User Manual vi
CHAPTER 1 2 Introduction This chapter provides a general description of the PCI-1680U.
Chapter 1 Introduction 1.1 Description PCI-1680U is special purpose communication card that offers connectivity to Controller Area Networks (CAN) on your PC. With its built-in CAN controllers, the PCI-1680U provides bus arbitration and error detection with an automatic transmission repetition function. This drastically reduces the chance of data loss and ensures system reliability. You can run both CAN controllers independently at the same time.
1.2 Features • PCI bus specification 2.2 compliant • Operates two separate CAN networks at the same time • High speed transmission up to 1 Mbps • 16 MHz CAN controller frequency • Optical isolation protection of 1000 VDC ensures system reliability • I/O address automatically assigned by PCI PnP • LED indicates Transmit/Receive status on each port • Windows DLL library and examples included • Supports Windows 98/ME/2000/XP driver and utility • Universal PCI 1.3 Specifications • Bus Interface: PCI bus spec.
1.4 Ordering Information PCI-1680U: 2-port CAN interface universal PCI communication card w/isolation.
CHAPTER 2 2 Installation of Driver and Advantech Device Manager This chapter shows how to install the driver and Advantech Device Manager.
Chapter 2 Installation of Driver and Advantech Device Manager 2.1 Advantech Device Manager Installation Advantech Device Manager is a software program that allows you to configure your hardware and store the settings in your Windows registry. You must install the Advantech Device Manager if you want to add and manage Advantech CAN cards. Please follow the steps below to install Advantech Device Manager. 1. Click the Installation button for installation.
2. Click the CAN Card Drivers button to enter the CAN cards selection screen. 3. Click the Install Advantech Device Manager hyperlink to install Advantech Device Manager.
4. The InstallShield Wizard wil initiate the installation process..
5. Click Next to start the install process. 6. Click Yes if you accept the License Agreement.
7. Type user name and company name, and then click Next. 8. Click Next to accept the default installation folder, or you can specify a folder by clicking the Browse button.
9. Choose the type of setup you prefer, then click Next. 10. Setup will add program icons to the default program folder. You may type a new folder name, or select one from the existing folder list. Click Next to continue.
11. Click Back to review or change your settings. Click Next, and the installation program will copy the files to your computer to finish the installation process.
12. You can see that shortcuts that were added to your Windows Start Menu. 13. After the physical hardware has been installed, execute Advantech Device Manager to see PCI-1680U in both Installed Devices & Support Devices windows. You can get the device number for AdsCAN.dll compiler. Click the Setup button for each port setting.
2.2 Driver Installation Please follow the steps below for PCI-1680U driver installation. 1. Insert your companion CD-ROM disc into your CD-ROM drive 2. The driver setup program will be launched automatically. If the auto-play function is not enabled on your system, use Windows Explorer or the Windows Run command to execute autorun.exe on the companion CD-ROM. 3. Click the Installation button to start installation.
4. Click the CAN Card Drivers button to enter the CAN cards selection screen. 5. Choose the card you want to install (PCI-1680U), and then click the hyperlink.
6. Click Next, and the Advantech Device Driver will be automatically installed on your computer. 7. After the physical hardware has been installed, the card will be automatically detected.
CHAPTER 3 2 Hardware Installation This chapter covers inspection and installation of hardware and drivers.
Chapter 3 Hardware Installation 3.1 Initial Inspection You should find the following items inside the shipping package: • PCI communication interface card • Industrial Communication Driver, Utility and PCI communication card user's manual in ICOM CD-ROM PCI-1680U was carefully inspected mechanically and electrically before it was shipped. It should be free of marks and scratches and in perfect working order when received.
3.2 Jumper Locations & Setting Figure 3.
3.2.1 How to Set Jumpers You configure your card to match the needs of your application by setting jumpers. A jumper is the simplest kind of electric switch. It consists of two metal pins and a small metal clip (often protected by a plastic cover) that slides over the pins to connect them. To “close” a jumper you connect the pins with the clip. To “open” a jumper you remove the clip. Figure 3.2: How to Set Jumpers 3.2.
3.3 Card Installation Note: Warning! Make sure you have installed the driver before installing the card. We strongly recommend that you install the software driver before installing the hardware into your system, since this will guarantee a smooth and trouble-free installation process. Turn off your PC’s power supply whenever you install or remove the PCI communication card or its cables. Static electricity can easily damage computer equipment.
14. Replace anti-vibration cardholder. 15. Replace the PC’s cover. Connect the cables you removed in step 3. 16. Turn the computer power on. 17. The board is now installed in the computer. See Chapter 5 for information on cabling.
CHAPTER 4 2 Software Requirements This chapter has information on the software of PCI-1680U.
Chapter 4 Software Requirements 4.1 Introduction PCI-1680 and PCL-841 are Isolated Dual-port CAN communication cards. Each provides two isolated CAN ports for communication applications in difficult environments. The chip on the CAN cards is SJA1000. The SJA1000 is a single chip solution for PC-based CAN port and parallel expansion add-in cards. This chapter outlines the CAN card’s windows DLL driver software requirement specifications. Including functionality, performance, and user interface requirements.
4.3 Specific Requirements 4.3.1 Device Driver Functionality The AdsCAN.dll driver needs to decide which driver should be called depending on different hardware. The AdsCAN.dll driver should properly translate the function parameters to a lower layer driver. 4.3.2 The CAN Driver Framework All user-mode functionality is implemented through Win32 communication API Functions. The AdsCan.dll unified driver interface for all CAN cards is shown in figure 4.1. User's Application AdsCAN.
4.3.3 Software Interfaces AdsCAN.dll should follow the CAN software-programming interface, so that users can use Advantech’s driver software in the same way. You can access the CAN functionality via the AdsCAN.dll Library as shown in the following table. For detailed function library definitions and descriptions please see the file ‘can.chm’ on the CD-ROM. Path in CD-ROM: Documents\Software Manuals\CAN Table 4.1: Function Table of AdsCAN.
Table 4.1: Function Table of AdsCAN.dll 19 CANReadFile() Reads data 20 CANReset() Resets CAN port 21 CANSendMsg() Sends message 22 CANSetAcp() Set the card 2.0 A protocol acceptance code 23 CANSetAcpEx() Set 2.0B protocol accept code 24 CANSetBaud() Set card baud rate 25 CANSetBufferPtr() Set the data receive buffer 26 CANSetCountPtr() Set the counter of receive buffer 27 CANSetIntrMaskEx() Set 2.
PCI-1680U User Manual 28
CHAPTER 5 2 Pin Assignments and Wiring This chapter covers the pin assignment for the CAN connector, and the wiring of the two transmission wires.
Chapter 5 Pin Assignments and Wiring 5.1 Pin Assignments Figure 5.1 shows the pin assignment for the card’s DB-9 connectors Figure 5.1: PCI-1680U DB-9 pin assignment 5.2 Wiring The CAN standard supports half–duplex communication. This means that just two wires are used to transmit and receive data. Table 5.