Page 1
PCI-1680U 2-Port CAN Interface Universal PCI Communication Card w/Iso- lation User Manual...
Page 2
No part of this man- ual 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 reli- able.
Page 3
Product Warranty (2 years) Advantech warrants to you, the original purchaser, that each of its prod- ucts 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...
Page 4
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.
Page 7
Introduction This chapter provides a general description of the PCI-1680U. Sections include: • Description • Features • Specifications • Ordering Information...
PCI-1680U is special purpose communication card that offers connectiv- ity to Controller Area Networks (CAN) on your PC. With its built-in CAN controllers, the PCI-1680U provides bus arbitration and error detec- tion with an automatic transmission repetition function. This drastically reduces the chance of data loss and ensures system reliability.
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 •...
1.4 Ordering Information PCI-1680U: 2-port CAN interface universal PCI communication card w/isolation PCI-1680U User Manual...
Page 11
Installation of Driver and Advantech Device Manager This chapter shows how to install the driver and Advantech Device Manager. Sections include: • Driver Installation • Advantech Device Manager Installa- tion...
Advantech Device Manager is a software program that allows you to con- figure your hardware and store the settings in your Windows registry. You must install the Advantech Device Manager if you want to add and man- age Advantech CAN cards.
Page 13
Click the CAN Card Drivers button to enter the CAN cards selec- tion screen. Click the Install Advantech Device Manager hyperlink to install Advantech Device Manager. Chapter 2...
Page 14
The InstallShield Wizard wil initiate the installation process.. PCI-1680U User Manual...
Page 15
Click Next to start the install process. Click Yes if you accept the License Agreement. Chapter 2...
Page 16
Type user name and company name, and then click Next. Click Next to accept the default installation folder, or you can spec- ify a folder by clicking the Browse button. PCI-1680U User Manual...
Page 17
Choose the type of setup you prefer, then click Next. 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. Chapter 2...
Page 18
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. PCI-1680U User Manual...
Page 19
Menu. 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. Insert your companion CD-ROM disc into your CD-ROM drive 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...
Page 21
Click the CAN Card Drivers button to enter the CAN cards selec- tion screen. Choose the card you want to install (PCI-1680U), and then click the hyperlink. Chapter 2...
Page 22
Click Next, and the Advantech Device Driver will be automatically installed on your computer. After the physical hardware has been installed, the card will be automatically detected. PCI-1680U User Manual...
Page 23
Hardware Installation This chapter covers inspection and installation of hardware and drivers. Sections include: • Initial inspection • Jumper locations & setting • Card installation...
It should be free of marks and scratches and in perfect working order when received. As you unpack the PCI-1680U, check for signs of shipping damage (dam- aged box, scratches, dents, etc.). If it is damaged or it fails to meet speci- fications, notify our service department or your local sales representative immediately.
Figure 3.2: How to Set Jumpers 3.2.2 Terminator Resistor Setup You can set the terminator resistor if necessary to match impedance. Each port has a separate resistor. Table 3.1: PCI-1680U Terminator Resistor Reference Status Value of Terminator Resistor() Open mode...
3.3 Card Installation Note: 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. Warning! Turn off your PC’s power supply whenever you install or remove the PCI communication card or its...
Page 28
Replace anti-vibration cardholder. Replace the PC’s cover. Connect the cables you removed in step 3. Turn the computer power on. The board is now installed in the computer. See Chapter 5 for infor- mation on cabling. PCI-1680U User Manual...
Page 29
Software Requirements This chapter has information on the software of PCI-1680U. Sections include: • Introduction • Overall Description • Specific Requirements...
SJA1000 chip. 4.2 Overall Description In order to unify the driver interface of Advantech’s CAN series of prod- ucts, a new DLL file named AdsCAN.dll has been defined. This makes it possible to change the CAN card from PCI-1680 to PCL-841 without recompiling applications.
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 communica- tion API Functions.
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’...
Page 33
Table 4.1: Function Table of AdsCAN.dll CANReadFile() Reads data CANReset() Resets CAN port CANSendMsg() Sends message CANSetAcp() Set the card 2.0 A protocol accep- tance code CANSetAcpEx() Set 2.0B protocol accept code CANSetBaud() Set card baud rate CANSetBufferPtr() Set the data receive buffer CANSetCountPtr() Set the counter of receive buffer CANSetIntrMaskEx()
Page 35
Pin Assignments and Wiring This chapter covers the pin assignment for the CAN connector, and the wiring of the two transmission wires. Sections include: • Pin Assignments • Wiring...
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.1: PCI-1680U Pin Wiring and Description Terminal DTE PCI-1680U DTE (male DB-9 Signal...