PCI-1723 16-bit / 8-ch.
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. Packing List Before setting up the system, check that the items listed below are included and in good condition. If any item does not accord with the table, please contact your dealer immediately.
Contents Chapter Chapter 1 Introduction ..................................................... 2 1.1 1.2 1.3 Features ............................................................................. 2 Applications ...................................................................... 3 Installation Guide .............................................................. 4 1.4 1.5 1.6 Software Overview............................................................ 6 Device Driver Programming Roadmap ..............
Appendix B Block Diagram ............................................... 34 Appendix C Register Structure & Format ....................... 36 C.1 C.2 Overview ......................................................................... 36 I/O Port Address Map ..................................................... 36 C.3 D/A channels output data — BASE+00H~0EH ............ 41 C.4 D/A channels latch data — BASE+00H~0EH................ 42 C.5 Board ID — BASE+10H .............................................
CHAPTER 2 1 Introduction This chapter gives background information on the PCI-1723.
Chapter 1 Introduction Thank you for buying the Advantech PCI-1723. The PCI-1723 is a nonisolated multiple channels analog output card for PCI bus, and each analog output channel is equipped with a 16-bit, double-buffered DAC. It features an auto-calibration function and Board ID. The PCI-1723 is an ideal solution for industrial applications where multiple analog output channels are required.
Flexible Voltage Output Range The PCI-1723 provides a fixed voltage output range of °”10 V to fulfill your flexible range needed applications. Users can define the specific voltage output range and output data format via the enclosed software utility and driver. Keeping Output Values After System Reset Users can independently set the eight outputs to different ranges: °”10 V, 0 ~ 20 mA or 4 ~ 20 mA, and all ranges are software selectable.
1.
Figure 1.
1.4 Software Overview Advantech offers a rich set of DLL drivers, third-party driver support and application software to help fully exploit the functions of your PCI-1723 card: • Device Drivers (on the companion CD-ROM) • LabVIEW driver • Advantech ActiveDAQ • Advantech GeniDAQ Programming choices for DA&C cards: You may use Advantech application software such as Advantech Device Drivers.
1.5 Device Driver Programming Roadmap This section will provide you a roadmap to demonstrate how to build an application from scratch using Advantech Device Drivers with your favorite development tools such as Visual C++, Visual Basic, Delphi and C++ Builder. The step-by-step instructions on how to build your own applications using each development tool will be given in the Device Drivers Manual. Moreover, a rich set of example source code is also given for your reference.
Programming with Device Drivers Function Library Advantech Device Drivers offer a rich function library that can be utilized in various application programs. This function library consists of numerous APIs that support many development tools, such as Visual C++, Visual Basic, Delphi and C++ Builder.
Wiring Board ADAM-3968 The ADAM-3968 is a 68-pin SCSI wiring terminal module for DIN-rail mounting. This terminal module can be readily connected to the Advantech PC-Lab cards and allow easy yet reliable access to individual pin connections for the PCI-1723 card.
PCI-1723 User Manual 10
CHAPTER 2 2 Installation This chapter gives users a package item checklist, proper instructions for unpacking and step-by-step procedures for both driver and card installation.
Chapter 2 Installation 2.1 Unpacking After receiving your PCI-1723 package, please inspect its contents first. The package should contain the following items: • PCI-1723 card • Companion CD-ROM (Device Drivers included) • User Manual The PCI-1723 card harbors certain electronic components vulnerable to electrostatic discharge (ESD). ESD can easily damage the integrated circuits and certain components if preventive measures are ignored.
• Whenever you handle the card, grasp it only by its edges. DO NOT TOUCH the exposed metal pins of the connector or the electronic components. Note: Keep the anti-static bag for future use. You might need the original bag to store the card if you have to remove the card from PC or transport it elsewhere. 2.2 Driver Installation We recommend you to install the driver before you install the PCI-1723 card into your system, since this will guarantee a smooth installation process.
Note: If the autoplay function is not enabled on your computer, use Windows Explorer or Windows Run command to execute SETUP.EXE on the companion CDROM. Step 3: Select the Device Drivers option. Step 4: Select the specific device then just follow the installation instructions step by step to complete your device driver installation and setup. Figure 2.
2.3 Hardware Installation Make sure you have installed the driver first before you install the card (please refer to 2.2 Driver Installation). After the Device Drivers installation is completed, you can then install the PCI-1723 card into any PCI slot on your computer. However, it is suggested that you refer to the computer user’s manual or related documentation if you have any doubt. Please follow the steps below to install the card onto your system. 1.
After the PCI-1723 card is installed, you can verify whether it is properly installed on your system in the Device Manager: 1. Access the Device Manager through Control Panel/System/Device Manager. 2. The device name of the PCI-1723 should be listed on the Device Manager tab on the System Property Page. Figure 2.3: Device Name on the Device Manager If your card is properly installed, you should see the device name of your card listed on the Device Manager tab.
2.4 Device Setup and Configuration The Advantech Device Manager program is a utility that allows you to set up, configure and test your device, and later stores your settings on the system registry. These settings will be used when you call the APIs of Advantech Device Drivers. 2.4.1 Setting Up the Device 1. To install the I/O device for your card, you must first run the Device Installation program (by accessing Start/Programs/ Advantech Device Driver V2.0). 2.
3. Scroll down the List of Devices box to find the device that you wish to install, then click the Add… button to evoke the Device(s) found dialog box such as one shown in Fig. 2-5. The Device(s) found dialog box lists all the installed devices on your system. Select the device you want to configure from the list box and press the OK button. After you have clicked OK, you will see a Device Setting dialog box such as the one in Fig. 2-6. Figure 2.5: “Device(s) Found” Dialog Box 2.4.
5. After you have finished configuring the device, click OK and the device name will appear in the Installed Devices box as seen below: Figure 2.7: Device Name on List of Devices Box Note: As we have noted, the device name “000:PCI-1723 BoardID=0 I/O=6500H” begins with a device number “000”, which is specifically assigned to each card. The device number is passed to the driver to specify which device you wish to control.
PCI-1723 User Manual 20
CHAPTER 2 3
Chapter 3 Signal Connections 3.1 Overview Maintaining signal connections is one of the most important factors in ensuring that your application system is sending and receiving data correctly. A good signal connection can avoid unnecessary and costly damage to your PC and other hardware devices. This chapter provides useful information about how to connect input and output signals to the PCI1723 via the I/O connector. 3.
3.2.1 JP9 Keep last status after hot reset. Default configuration. 3.2.2 JP1~JP8 4~20 mA 0~20 mA 3.2.3 Setting the Time to Reset Analog Outputs Some users will want the capability of clearing each analog output when the system (or PC) issues a reset signal on the PCI bus. Some users will want to clear their analog output only as part of system power-on. The PCI-1723 satisfies both these needs by providing jumper JP1.
3.2.
3.3 Signal Connections 3.3.1 Pin Assignment Figure 3-3 shows the pin assignments for the 68-pin I/O connector on the PCI-1723.
3.3.2 I/O Connector Signal Descriptions Table 3.1: I/O Connector Signal Descriptions Signal Name Reference Direction Description Vout<0..3> AGND Output Voltage Output, Channels 0 through 3. Iout<0..3> AGND Output Current Output, Channels 0 through 3. AGND - - Analog Ground. The two ground references (AGND and DGND) are connected together on the PCI-1723 card. DI0<0..15> DGND - Digital Input / Output signals. These pins are digital input / Output channel 0 to 15.
Figure 3.3: Analog Output Connections Current output mode: Caution: The external voltage should be under 30 V.
3.4 Field Wiring Considerations When you use the PCI-1723 to acquire data from outside, noises in the environment might significantly affect the accuracy of your measurements if due cautions are not taken. The following measures will be helpful to reduce possible interference running signal wires between signal sources and the PCI-1723.
APPENDIX A 2 Specifications This appendix provides information on the specifications of PCI-1723.
Appendix A Specifications A.1 Analog Output Channels 8 Resolution 16-bit Operation mode Single output, Synchronized output Output Range (Internal Reference only) -10 ~+10 V, 0 ~ 20 mA, 4 ~ 20 mA Accuracy Relative ±6 LSB Differential Non-linearity ±6 LSB (monotonic) Offset < 6 LSB Output Impedance 0.1 max. Throughput PC dependent, Software update (direct AO) Settling time 50 us (to °”6 LSB of FSR) A.
A.3 General I/O Connector Type 68-pin SCSI-II female Dimensions 175 x 100 mm (6.9" x 3.9") Power Consumption Typical Max.
PCI-1723 User Manual 32
APPENDIX B 2 Block Diagram This appendix shows the block diagram for PCI-1723.
Appendix B Block Diagram Bidirectional And Latched 8 Bits DIO DIO[7:0] Bidirectional And Latched 8 Bits DIO DIO[15:8] Iout 0 16-Bit DAC 0 Vout 0 Iout 1 16-Bit DAC 1 PCI Interface Vout 1 Iout 2 16-Bit DAC 2 Vout 2 Local Bus PCI Bus Iout 3 16-Bit DAC 3 Vout 3 Iout 4 16-Bit DAC 4 Vout 4 Iout 5 16-Bit DAC 5 Vout 5 Iout 6 16-Bit DAC 6 Vout 6 Iout 7 16-Bit DAC 7 Vout 7 Auto Calibration Circuit PCI-1723 User Manual 34
C APPENDIX 2 Register Structure & Format
Appendix C Register Structure & Format C.1 Overview The PCI-1723 is delivered with an easy-to-use 32-bit Device Drivers for user programming under the Windows 2000/95/98/NT/ME/XP operating system. We advise users to program the PCI-1723 using the 32-bit Device Drivers provided by Advantech to avoid the complexity of low-level registry programming. The most important consideration in programming the PCI-1723 the register level is to understand the function of the card's registers.
Table C.1: PCI-1723 Register Format Base Adr.
Table C.
18 H W Calibration parameter strobe X X X X X X X X X X X X X X X X X X X X X X X X X X HD IO LD IO 0 0 0 0 0 0 0 0 0 0 HD IO LD IO D1 1 D1 0 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 D1 1 D1 0 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 X X X X D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 0 D7 D6 D5 D4 D3 D2 D1 D0 R N/A 1A H W Digital I/O port setting X X X X R Digital I/O port mode 0 1C H 0 0 0 W Write digital output command D1 5 D1 4 D1 3 D1 2
24H W Reset the calibration controller strobe X 26H X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X REF_A1 REF_A0 R N/A W Change D/A channels output type strobe X 28H X X X X X X R N/A W Select the calibration Ref_V X R X X X X X N/A PCI-1723 User Manual 40
C.3 D/A channels output data — BASE+00H~0EH Table C.3: Register for D/A Channels Output Data Base Addr.
C.4 D/A channels latch data — BASE+00H~0EH Table C.4: Register for D/A Channels Latch Data Base Addr.
C.5 Board ID — BASE+10H The PCI-1723 offers Board ID register BASE+10H. With correct Board ID settings, users can easily identify and access each card during hardware configuration and software programming. Table C.5: Register for Board ID Base Addr.
C.6 D/A Channels Synchronized Settings (BASE+12H) The PCI-1723 provides an innovate function in which all D/A channels can output their data in synchronization. Table C.6: D/A channels synchronous setting Base Addr.
C.7 All D/A Channels Synchronized Status — BASE+12H Table C.7: D/A Channels Synchronized Status Base Addr. 15 12H R All D/A channels synchronized status 0 14 0 13 12 0 11 0 0 10 0 9 0 8 0 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 SY NC SYNC D/A channels output synchronous 0 Disable (all D/A channels output directly) 1 Enable C.8 DAC Range and Calibration Mode — BASE+14H Table C.8: DAC Range and Calibration Mode Base Addr.
O_G Calibrate gain or offset 0 Gain 1 Offset R1 ~ R0 Select D/A range 00 ± 10V 01 N/A 10 0 ~ 20 mA 11 4 ~ 20 mA SELF Select normal or self-system calibration 0 Normal calibration 1 Self-system offset calibration Note: Once you want to change the range of the specific channel, be sure to write the value to this register first. After that, write any value to BASE+26H to strobe the change. C.9 DAC Range and Calibration Status — BASE+14H Table C.
011 Channel 3 100 Channel 4 101 Channel 5 110 Channel 6 111 Channel 7 O_G Calibrate gain or offset 0 Gain 1 Offset R1 ~ R0 Select D/A range 00 ± 10V 01 N/A 10 0 ~ 20 mA 11 4 ~ 20 mA SELF Select normal or self-system calibration 0 Normal calibration 1 Self-system offset calibration INIT Initial the calibration controller 0 Idle 1 Processing BUSY Calibration controller busy flag 0 Idle 1 Busy IDX1 ~ IDX0 Calibration procedure index 00 Read/Write calibration status 0
C.10 SADC Control Command for Calibration Function— BASE+16H The PCI-1723 uses SADC (serial analog to digital converter) for the calibration function. Please refer to the Burr-Brown ADS7822 data sheet for the chipset detailed information (CD-ROM:\Documents\Component Specification\ ADS7822.PDF). Table C.10: SADC control command for calibration Base Addr.
C.12 Calibration Parameter Strobe — BASE+18H Write any values to BASE+18H after finishing the calibration procedure to save all the D/A channels’ parameters into the EEPROM. Table C.12: Calibration parameter strobe Base Addr. 15 18H W Calibration parameter strobe X 14 X 13 12 X Note: X 11 X 10 X 9 8 7 6 5 4 3 2 1 0 X X X X X X X X X X If you want to calibrate the range of the specific channel, be sure to write the value to BASE+14H first.
C.14 Digital I/O port mode — BASE+1AH Table C.14: Register for digital I/O port modes Base Addr. 15 1AH R Digital I/O port mode 0 14 0 13 12 0 0 11 0 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 HD LD IO IO LDIO Status of the Low byte DIO port 0 Output 1 Input HDIO Status of the High byte DIO port 0 Output 1 Input 0 C.15 Write Digital Output Command — BASE+1CH Table C.15: Register for write digital output command Base Addr.
C.16 Read Digital Input Data — BASE+1CH Table C.16: Register for Read Digital Input Data Base Addr. 15 14 13 12 11 1CH R Read digital input data 10 9 8 7 6 5 4 3 2 1 0 D1 D1 D1 D1 D11 D1 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 5 4 3 2 0 D15 ~ D0 Digital input data D0 LSB of the input data D15 MSB of the input data C.17 Write Calibration Command — BASE+1EH Table C.17: Register for write calibration command Base Addr.
C.18 Read calibration status — BASE+1EH Table C.18: Register for read calibration status Base Addr. 15 1EH R Read calibration status 0 14 0 13 0 12 0 11 0 10 9 8 7 6 5 4 3 2 1 0 0 0 0 D7 D6 D5 D4 D3 D2 D1 D0 D7 ~ D0 Calibration result data D0 the least significant bit (LSB) of the data D7 the most significant bit (MSB)Synchronized Strobe — BASE+20H Write any values to BASE+20H to synchronize all D/A channels. Table C.19: Register for synchronized strobe Base Addr.
C.19 Reset all D/A channels strobe — BASE+22H Write any values to BASE+22H to reset all D/A channels. Table C.20: Register for reset all D/A channels strobe Base Addr. 15 22H W Reset all D/A channels strobe X 14 X 13 X 12 X 11 10 X X 9 8 7 6 5 4 3 2 1 0 X X X X X X X X X X C.20 Reset the calibration controller strobe — BASE+24H Write any values to BASE+24H to reset the calibration controller. Table C.21: Reset the calibration controller strobe Base Addr.
C.22 Select the calibration Ref_V — BASE+28H Table C.23: Register for select the calibration Ref_V Base Addr. 15 28H W Select the calibration Ref_V X 14 X 13 X 12 X 11 X 10 X 9 8 7 6 5 4 3 2 1 X X X X X X X X RE RE F_ F_ A1 A0 REF_A1 ~ REF_A0 Ref_V (reference voltage) index 00 -10 V 01 0V 10 N/A 11 +10 V C.