PCI-1718 Series 12-bit Multifunction Cards with Universal PCI Bus User Manual
Copyright The documentation and the software included with this product are copyrighted 2005 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 Chapter Chapter 1 Introduction ..................................................... 2 1.1 1.2 1.3 Features ............................................................................. 3 Applications ..................................................................... 4 Installation Guide ............................................................. 5 1.4 1.5 1.6 Software Overview ........................................................... 7 Device Driver Programming Roadmap .......
3.3.1 3.3.2 3.3.3 3.4 Chapter 1718 Series 28 I/O Connector Signal Description ................................ 29 Table 3.9:I/O Connector Signal Descriptions .............. 29 Analog Input Connections ........................................... 30 Figure 3.3:Analog Output Connections ....................... 33 Digital Signal Connections .......................................... 34 Field Wiring Considerations .......................................... 35 4 Programming Guide ............................
Table C.12:Register for FIFO Interrupt Control .......... 70 C.11 Clear Interrupt Request — BASE+08H .......................... 71 C.12 A/D Status — BASE+08H.............................................. 71 C.13 A/D Control — BASE+09H ........................................... 73 C.14 Timer/Counter Enable — BASE+0AH........................... 74 C.15 C.16 Programmable Timer/Counter — BASE+0C~0FH ........ 74 Clear FIFO Interrupt Request — BASE+14H ................ 75 C.
PCI-1718 Series User Manual viii
CHAPTER 1 2 Introduction This chapter introduces the PCI-1718 cards and their typical applications.
Chapter 1 Introduction Thank you for buying the Advantech PCI-1718HDU/HGU. PCI1718HDU/HGU is a PCI-Bus multifunction card for IBM PC/XT/AT or compatible computers. It offers the five most desired measurement and control functions: • 12-bit A/D conversion • D/A conversion • Digital input • Digital output • Timer/counter. A programmable-gain instrument amplifier lets you acquire different input signals without external signal conditioning.
1.
Onboard FIFO There are 1 K samples FIFO for A/D (AI) on PCI-1718HDU/HGU. This is an important feature for faster data transfer and more predictable performance under Windows system. Onboard Programmable Timer/Counter PCI-1718HDU/HGU provides a programmable timer counter for generating pacer trigger for the A/D conversion. The timer/counter chip is 82C54, which includes three 16-bit counters of 10 MHz clock. One counter is used as an event counter for counting events coming from the input channel.
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 PCI1718HDU/HGU card: • Device Drivers (on the companion CD-ROM) • LabVIEW driver • Advantech ActiveDAQ • Advantech ADAQView 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.
1.6 Accessories Advantech offers a complete set of accessory products to support the PCI-1718HDU/HGU card. These accessories include: Wiring Cables PCL-10120 The PCL-10120 cable is a 20-pin flat cable for PCI-1718HDU/HGU cards. PCL-10137 The PCL-10137 shielded cable is specially designed for PCI-1718HDU/ HGU cards to provide high resistance to noise.
CHAPTER 2 2 Installation This chapter provides a packaged 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-1718HDU/HGU package, please inspect its contents first. The package should contain the following items: • PCI-1718HDU or PCI-1718HGU card • Companion CD-ROM (Device Drivers included) • User Manual The PCI-1718 cards harbor certain electronic components vulnerable to electrostatic discharge (ESD). ESD can easily damage the integrated circuits and certain components if preventive measures are ignored.
. 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 a PC or transport it elsewhere. 2.2 Driver Installation We recommend you install the driver before you install the PCI1718HDU/HGU card into your system, since this will guarantee a smooth installation process. The Advantech Device Drivers Setup program for the PCI-1718HDU/ HGU card is included in the companion CD-ROM that is shipped with your DA&C card package.
Figure 2.1: Setup Screen of Advantech Automation Software 3. Select the Device Drivers option. 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 Note: Make sure you have installed the driver before you install the card (please refer to chapter 2.2 Driver Installation) After the Device Drivers installation is completed you can install the PCI1718HDU/HGU card into any PCI slot on your computer. However, it is suggested that you refer to the computer’s user manual or related documentation if you have any doubts. Please follow the steps below to install the card onto your system. 1.
2.4 Device Setup & 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. 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/Advantech Automation/Device Manager/Advantech Device Manager ). 2.
Configuring the Device 4. On the Device Setting dialog box (Fig. 2-4), you can configure the A/D channels configuration either as 8 Differential or 16 Singleended, and specify the D/A voltage reference either as External or Internal. Figure 2.4: The Device Setting Dialog Box 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.
After your card is properly installed and configured, you can click the Test… button to test your hardware by using the testing utility supplied. Figure 2.6: The Test Utility Dialog Box For more detailed information, please refer to Chapter 2 of the Device Drivers Manual. You can also find rich examples on the CD-ROM to speed up your programming.
CHAPTER 3 2 Signal Connections This chapter provides useful information about how to connect input and output signals to the PCI-1718 cards via the I/O connector..
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 PCI1718 cards via the I/O connector. 3.
3.2.1 Setting the BoardID Switch (SW1) BoardID settings are used to set a board’s unique identifier when multiple identical cards are installed in the same system. PCI-1718 cards have a built-in DIP switch (SW1), which is used to define each card’s unique identifier. You can determine the unique identifier in the register as shown in Table 3.1.
3.2.2 Channel Configuration, S/E or DIFF (SW2) The PCI-1718 cards offer 16 single-ended or eight differential analog input channels. Slide switch SW2 changes the channels between singleended or differential input. Slide the switch to the left-hand position, marked DIFF, for eight differential inputs (the default) or to the righthand position, marked S/E, for 16 single-ended inputs. Table 3.2: Summary of Switch SW2 Settings Switch Function description SW2 Differential (default) Single-ended 3.2.
When you set JP11 to EXT, the D/A converter takes its reference voltage input from pin 31 of connector CN3. You can apply any voltage between -10 V and +10 V to this pin to function as the external reference. The reference input can be either DC or AC (<100 kHz). When you use an external reference with voltage Vref you can program the D/A channel to output from 0 V to -Vref, you can also use the D/A converter as a programmable attenuator.
3.2.5 Timer Clock Selection (JP8) PCI-1718’s JP8 controls the input clock frequency for the 8254 programmable clock/timer. You have two choices: 10 or 1 MHz. This lets you generate pacer output frequencies from 2.5 MHz to 0.00023 Hz (71 minutes/pulse). The following equation gives the pacer rate: Pacer rate = Fclk / (Divl * Div2) Fclk is 1 MHz or 10 MHz, as set by jumper JP8. Div 1 and Div2 are the dividers set in counter 1 and counter 2 in the 8254. Table 3.
3.2.6 Ext. trigger and Counter Gate 0 Control (JP5) Jumper 5 determines the source of A/D external trigger signal (Lower) and gate control for counter 0 on 8254 timer/counter.(Upper). Table 3.6: Summary of Jumper Settings Jumper Function description JP5 (Upper) G0 (default) DI2 Ext. (default) JP5 (Lower) DI0 3.2.7 Digital Output, 20-pin or 37-pin Connector (JP1) The PCI-1718 cards’ JP1 switch digital output channels 0 to 3 between the card's 20-pin connector and 37-pin connector.
Table 3.
3.2.8 Setting the Time to Reset Digital Outputs Some users will want the capability of clearing each digital output when the system (or PC) issues a reset signal on the PCI bus. Other users will want to clear their signal outputs only as part of system power-on. PCI-1718 cards satisfy both these needs with jumper JP21. Depending on the application, this capability may allow digital outputs to be “OFF” without requiring a complete shutdown of processes controlled by the card.
3.3 Signal Connections Pin Assignment Figure 3-2 shows the pin assignments for the 37-pin I/O connector on the PCI-1718HDU/HGU. D/O 0 D/O 2 D/O 4 D/O 6 D/O 8 D/O 10 D/O 12 D/O 14 D.GND +5 V CN1 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 D/O 1 D/O 3 D/O 5 D/O 7 D/O 9 D/O 11 D/O 13 D/O 15 D.GND +12 V CN3 (Single ended) A/D S0 A/D S1 A/D S2 A/D S3 A/D S4 A/D S5 A/D S6 A/D S7 A.GND A.GND VREF S0* +12 V S2* D.
3.3.1 I/O Connector Signal Description Table 3.9: I/O Connector Signal Descriptions Signal Reference Name Direction Description A/D S A.GND <0..15> Input Analog input (single-ended), channels 0 through 15. A/D H <0..7> A.GND Input Analog input high (differential), channels 0 through 7. A/D L <0..7> A.GND Input Analog input low (differential), channels 0 through 7. D/A A.GND Output Analog output AGND - - Analog Ground. The two ground references (A.GND and D.
3.3.2 Analog Input Connections PCI-1718HDU/HGU supports either 16 single-ended or 8 differential analog inputs. Switch SW2 selects the input channel configuration. Single-ended Channel Connections Single-ended connections use only one signal wire per channel. The voltage on the line references to the common ground on the card. A signal source without a local ground is called a "floating" source. It is fairly simple to connect a single ended channel to a floating signal source.
If the signal source has one side connected to a local ground, the signal source ground and the PCI-1718HDU/HGU ground will not be at exactly the same voltage, as they are connected through the ground return of the equipment and building wiring. The difference between the ground voltages forms a common-mode voltage. To avoid the ground loop noise effect caused by common-mode voltages, connect the signal ground to the LOW input. Do not connect the LOW input to the PCI-1718HDU/HGU ground directly.
Expanding Analog Inputs You can expand any or all of the PCI-1718HDU/HGU's A/D input channels using multiplexing daughterboards. Daughterboards without D-type connectors require the PCLD-774 Analog Expansion Board. The PCLD-789(D) Amplifier and Multiplexer multiplexes 16 differential inputs to one A/D input channel. You can cascade up to eight PCLD789(D)s to the PCI-1718HDU/HGU for a total of 128 channels. See the PCLD-789(D) user's manual for complete operating instructions.
Analog Output Connection The PCI-1718HDU/HGU provides one D/A output channel. You can use the internal precision -5 V or -10 V reference to generate 0 to +5 V or 0 to +10 V D/A output. Use an external reference for other D/A output ranges. The maximum reference input voltage is ±10 V and maximum output scaling is ±10 V. Loading current for D/A outputs should not exceed 5 mA. Connector CN3 provides D/A signals.
3.3.3 Digital Signal Connections The PCI-1718HDU/HGU has 16 digital input and 16 digital output channels. The digital I/O levels are TTL compatible. The following figure shows connections to exchange digital signals with other TTL devices: TTL Devices DO DI D.GND D.GND To receive an OPEN/SHORT signal from a switch or relay, add a pull-up resistor to ensure that the input is held at a high level when the contacts are open. See the figure below: +5V 4.7K D.
3.4 Field Wiring Considerations When you use PCI-1718 cards 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-1718 card.
PCI-1718 Series User Manual 36
CHAPTER 4 2 Programming Guide This chapter provides useful information about how to do register level programming for PCI-1718 cards.
Chapter 4 Programming Guide 4.1 Overview The PCI-1718 cards are delivered with an easy-to-use 32-bit Device Driver for user programming under the Windows 98/2000/XP operating systems. At the Windows driver level, PCI-1718 cards are fully compatible with the PCL-818 series so you can easily use older applications of the PCL818 series with PCI-1718 cards.
4.3.1 Software Trigger and Polling Set Scan Channel MUX Scan Channel Control & A/D Range Control Set Software Trigger and Disable Generated Interrupt w Base+0 2H w Base+0 1H w Base+ 09H Software A/D Trigger w Base+ 00H Check EOC r Base+ 08H EOC!=0 Yes EOC=0 Get Data r Base+ 00H r Base+01H More Data? No 1. Set the input range for each A/D channel 2. Set the input channel by specifying the MUX scan range 3.
Example Code: /********This code supports TurboC 3.0 or later versions********/ #include #include
4.3.2 Pacer Trigger Mode with Interrupt ISR Set to Software Trigger Mode To Disable Trigger.
1. Set the input range for each A/D channel 2. Set the input channel by specifying the MUX scan range 3. Set pacer rate and interrupt service routine (ISR) 4. Enable device to generate interrupts and system to accept interrupts 5. Trigger the A/D conversion by writing “1” to the A/D control register (BASE+9) 6. Interrupts generate by the device when the A/D conversion is completed. 7. Read data from the A/D converter by reading the A/D data register (BASE+0 and BASE+1) 8.
/***** Set Pacer *****/ outportb(base_addr+0x0f,0x7E); //Pacer=1M/clk1/clk2 outportb(base_addr+0x0d,0x0A); //clk1 outportb(base_addr+0x0d,0x00); //10=0x0A ; 100=0x64 ; 1000=0x3E8 outportb(base_addr+0x0f,0xBE); outportb(base_addr+0x0e,0x0A); //clk2 outportb(base_addr+0x0e,0x00); /***** Pacer=1M/10/10=10k ******/ /***** Set ISR *****/ Add you code here /********************/ /***** Set Interrupt *****/ Add you code here /********************/ outportb(base_addr+8,0); //Clear Interrupt outportb(base_addr+9,0
void interrupt isr(void) { disable(); /***** Add code on here *****/ iflag = 1; //Interrupt Flag outportb(base_addr+0x08,0);// Clear Interrupt /****************************/ outportb(0x20,0x20); outportb(0xA0,0x20); enable(); } PCI-1718 Series User Manual 44
4.3.
1. Set the input range for each A/D channel 2. Set the input channel by specifying the MUX scan range 3. Set pacer rate and interrupt service routine (ISR) 4. Enable FIFO to generate interrupts and system to accept interrupts 5. Trigger the A/D conversion by writing “1” to the A/D control register (BASE+9) 6. Interrupts generate by FIFO when FIFO is half-full. 7. Read data from the A/D converter by reading the FIFO A/D data register (BASE+17 and BASE+18) 8.
outportb(base_addr+0x02,0x00); //MUX Scan Channel Control outportb(base_addr+0x01,0x03); //Channel 1 Gain Setting outportb(base_addr+0x02,0x11); // MUX Scan Channel Control outportb(base_addr+0x01,0x08); // Channel 2 Gain Setting outportb(base_addr+0x02,0x10); //Scan Channel 0-1 /***** Set Pacer *****/ outportb(base_addr+0x0f,0x7e); outportb(base_addr+0x0d,10); //Divide By 1 outportb(base_addr+0x0d,0); outportb(base_addr+0x0f,0xbe); outportb(base_addr+0x0e,20); //Divide By 2 outportb(base_addr+0x0e,0); /***
while(iflag==0) {;} /***** FIFO HALF Interrupt and Get Data *****/ for(k=0;k<512;k++) { iflag=0; ad_lb=inportb(base_addr+0x17); ad_hb=inportb(base_addr+0x18); /***** Save to Memory *****/ Add your code here /**************************/ i++; } /*******************************************/ } } void interrupt isr(void) { disable(); iflag = 1; /***** Add your code here *****/ outportb(base_addr+0x14,0); // Clear FIFO Interrupt /******************************/ outportb(0x20,0x20); outportb(0xA0,0x20); enable(
4.4 Programming with LabVIEW and ActiveDAQ Advantech offers not only a rich set of DLL drivers, but also third-party driver support and application software to help fully exploit the functions of your PCI-1718 cards.
PCI-1718 Series User Manual 50
APPENDIX A 2 Specifications
Appendix A Specifications A.1 Analog Input Channels 16 single-ended or 8 differential or combination Resolution 12-bit FIFO Size 1K samples Max. Sampling Rate 100 kS/s Input range and Gain List for PCI1718HDU Gain 0.5 1 2 4 8 Unipolar N/A 0~10 0~5 0~2.5 0~1.25 Bipolar ±10 ±5 ±2.5 ±1.25 ±0.625 Bandwidth 400 khz 0.01 400 kHz 0.01 400 kHz 0.04 (1LSB) 350 kHz 300 kHz 0.07 (3LSB) 0.1 (4LSB) Gain 0.5 1 10 100 1000 Unipolar N/A 0~10 0~0.1 0~0.01 0~0.
Common Mode Voltage ±11 V max. (operational) Max. Input Voltage ±15 V Input Protect 30 Vp-p Input Impedance 100 MΩ/10pF(Off); 100 MΩ/100pF(On) Trigger Mode Software, on-board Programmable Pacer or External External TTL Trigger Input Low High 0.8 V max. 2.0 V min. A.2 Analog Output Channels 1 Resolution 12-bit Max.
A.3 Digital Input Input Channels 16 Input Voltage Low 0.4V max. High 2.4 V min. Low 0.4 V max.@ -0.2mA High 2.7 V min.@20µA Input Load A.4 Digital Output Output Channels 16 Output Voltage Low 0.4 V max.@ +8.0mA (sink) High 2.4 V min.@ -0.
A.5 Counter/Timer Counter chip 82C54 or equivalent Channels 3 channels, 2 channels are permanently configured as programmable pacers; 1 channel is free for user application Resolution 16-bit Compatibility TTL level Base Clock Channel 1: 10 MHz Channel 2: Takes input from output of channel 1 Channel 0: Internal 100 kHz or external clock (10 MHz max.) selected by software Max. Input Frequency 10 MHz Clock Input Low 0.8 V max. High 2.0 V min. Low 0.8 V max.
A.6 General I/O Connector Type 37-pin DSUB female for Analog One 20-pin Box Header for DI One 20-pin Box Header for DO Dimensions 175 x 100 mm (6.9" x 3.9") Power Consumption Typical +5 V @ 850 mA Max.
B APPENDIX 2 Block Diagrams
Appendix B Block Diagrams PCI-1718 Series User Manual 58
C APPENDIX 2 Register Structure & Format
Appendix C Register Structure & Format C.1 Overview PCI-1718 cards are delivered with an easy-to-use 32-bit Device Drivers for user programming under the Windows 98/2000/XP operating systems. We advise users to program the PCI-1718 cards using the 32-bit Device Drivers provided by Advantech to avoid the complexity of lowlevel registry programming. The most important consideration in programming the PCI-1718 cards at the register level is to understand the function of the cards’ registers.
Table C.1: PCI-1718HDU/HGU Register Format (Part 1) Base Addr.
Table C.2: PCI-1718HDU/HGU Register Format (Part 2) Base Addr.
Table C.3: PCI-1718HDU/HGU Register Format (Part 3) Base Addr.
C.3 A/D Data and Channels — BASE+00H~01H Table C.
C.5 A/D Range Control — BASE+01H Each A/D channel has its own individual input range, controlled by a range code stored in onboard RAM. If you want to change the range code for a given channel, select the channel as the start channel in register BASE+02H, MUX scan (described in the next section), then write the range code to bits 0 to 3 of BASE+01H. Table C.
PCI-1718HGU Input Range (V) Unipolar/Bipolar ±5V Gain Code G3 G2 G1 G0 B 0 0 0 0 ±0.5V B 0 0 0 1 ±0.05V B 0 0 1 0 ±0.005V B 0 0 1 1 0 to 10V U 0 1 0 0 0 to 1V U 0 1 0 1 0 to 0.1V U 0 1 1 0 0 to 0.01V U 0 1 1 1 ±10V B 1 0 0 0 ±1V B 1 0 0 1 ±0.1V B 1 0 1 0 ±0.
C.6 MUX Scan Channel Control — BASE+02H The write register at BASE+02H controls multiplexer (MUX) scanning. The high nibble provides the stop scan channel number, and the low nibble provides the start scan channel number. Writing to this register automatically initializes the MUX to the start channel. Each A/D conversion trigger sets the MUX to the next channel. With continuous triggering the MUX will scan from the start channel to the end channel, then repeat.
C.7 MUX Scan Channel Status — BASE+02H Read register BASE+02H to get the current multiplexer (MUX) channel. Table C.8: Register for MUX Scan Channel Status Read MUX scan channel status Bit # 7 6 5 4 BASE + 02H 3 2 1 0 CC3 CC2 CC1 CC0 CC3 ~ CC0 Current channel number CC0 The least significant bit (LSB) of the stop channel CC3 The most significant bit (MSB) C.8 Digital I/O Registers - BASE + 03/0BH The PCI-1718HDU/HGU provides 16 digital input channels and 16 digital output channels.
Table C.10: Register for Digital Output Read Digital Input Bit # 7 6 5 4 3 2 1 0 BASE + 03H DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 BASE + 0BH DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8 DI15 ~ DI0 Digital input data DI0 The least significant bit (LSB) of the DI data DI15 The most significant bit (MSB) Note: Digital Outputs D0 - D3 is selectable from the 20-pin connector or the 37-pin D connector. Please refer to chapter 2 for details. C.
DA11 ~ DA0 Analog to digital data DA0 The least significant bit (LSB) of the D/A data DA11 The most significant bit (MSB) When you write data to D/A channels, write the low byte first. The low byte is temporarily held by a register in the D/A and not released to the output. After you write the high byte, the low byte and high byte are added and passed to the D/A converter. This double buffering process protects the D/A data integrity through a single step update.
C.11 Clear Interrupt Request — BASE+08H Write any value to register BASE+08H to clear the interrupt request. Table C.13: Register for Clear Interrupt Request Write A/D control Bit # 7 6 5 4 3 2 1 0 BASE + 09H X X X X X X X X C.12 A/D Status — BASE+08H Read-only register BASE+08H provides information on the A/D configuration and operation.
U/B Unipolar/bipolar mode indicator 0 Bipolar mode 1 Unipolar mode MUX Single-ended/differential channel indicator 0 8 differential channels 1 16 single-ended channels INT Data valid 0 No A/D conversion has been completed since the last time the INT bit was cleared. Values in the A/D data registers are not valid data. 1 The A/D conversion has finished, and converted data is ready.
C.13 A/D Control — BASE+09H Read/write register BASE+09H provides information on the PCI1718HDU/HGU's operating modes. Table C.15: Register for A/D Control Read/Write A/D control Bit # 7 BASE + 09H INTE INTE 6 5 4 3 2 1 0 ST1 ST0 Disable/enable generated interrupts 0 Disables the generation of interrupts. No interrupt signal can be sent to the PC bus. 1 Enables the generation of interrupts. If DMAE = O the PCI-1718 card will generate an interrupt when it completes an A/D conversion.
C.14 Timer/Counter Enable — BASE+0AH Write register BASE+0AH enables or disables the PCI-1718 card’s timer/ counter. Table C.16: Register for Timer/Counter Enable Write Timer/Counter enable Bit # 7 6 5 4 3 BASE + 0AH 2 1 0 TC1 TC0 TC0 Disable/enable pacer 0 Pacer enabled 1 Pacer controlled by TRIG0. This blocks trigger pulses sent from the pacer to the A/D until TRIG0 is taken high.
C.16 Clear FIFO Interrupt Request — BASE+14H Write any value to this I/O port to clear the FIFO's interrupt request. Table C.17: Register for Clear FIFO Interrupt Request Write Clear FIFO Interrupt Request Bit # 7 6 5 4 3 2 1 0 BASE + 14H X X X X X X X X C.17 A/D Data and Channel from FIFO - BASE + 17/18H The PCL-818HD/HG stores data from A/D conversions in a 1 K word First-In First-Out (FIFO) data buffer. Registers at BASE+17H and BASE+18H store the channel number and data.
C.18 FIFO Status — BASE+19H The register at BASE+19H clears the FIFO buffer and sets its empty flag (EF). The FIFO status register, address BASE+19H, has flags which you can read to determine the current state of the FIFO buffer, including full flag, half-full flag, and empty flag. Table C.
C.20 Register Programming Flow Chart C.20.
C.20.2 Pacer Trigger Mode with Interrupt ISR Set to Software Trigger Mode To Disable Trigger.
C.20.
PCI-1718 Series User Manual 80
APPENDIX D 2 Calibration This appendix provides brief information on PCI-1718 card calibration. Regular calibration checks are important to maintain accuracy in data acquisition and control applications.
Appendix D Calibration PCI-1718 cards are calibrated at the factory for initial use. However, a recalibration of the analog input and the analog output function is recommended: 1. Every six months. 2. Everytime the analog output range is changed. We provide a calibration program on the companion CD-ROM to assist you with D/A calibration. The calibration programs make calibration an easy job.
D.1 VR Assignment The six variable resistors (VRs) on the PCI-1718HDU/HGU board help you make accurate adjustment on all A/D and D/A channels. See the figure in Appendix B for help finding the VRs. The following list shows the function of each VR: VR Function VR1 A/D unipolar offset VR2 A/D full scale VR3 A/D bipolar offset VR4 PGA offset VR5 D/A full scale VR6 D/A offset Figure D.
D.2 A/D Calibration Note: Using a precision voltmeter to calibrate the A/D outputs is recommended. Regular and accurate calibration ensures maximum possible accuracy. The CALB.EXE calibration program leads you through the whole A/D offset and gain adjustment procedure. The basic steps are outlined below: Short the A/D input channel 0 to ground and measure the voltage at TP1 on the PCB (see the figure in Appendix B). Adjust VR4 until TP1 is as close as possible to 0 V.
D.3 D/A Calibration Note: Using a precision voltmeter to calibrate the D/A outputs is recommended. Connect a reference voltage within the range ±10 V to the reference input of the D/A channel you want to calibrate. You can use either the on-board -5 V (-10 V) reference or an external reference. Adjust the full-scale gain and zero offset of the D/A channel with VR5 and VR6, respectively. Use a precision voltmeter to calibrate the D/A output.
PCI-1718 Series User Manual 86