Advantech PCI-1718 Series manuel d'utilisation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94

Aller à la page of

Un bon manuel d’utilisation

Les règles imposent au revendeur l'obligation de fournir à l'acheteur, avec des marchandises, le manuel d’utilisation Advantech PCI-1718 Series. Le manque du manuel d’utilisation ou les informations incorrectes fournies au consommateur sont à la base d'une plainte pour non-conformité du dispositif avec le contrat. Conformément à la loi, l’inclusion du manuel d’utilisation sous une forme autre que le papier est autorisée, ce qui est souvent utilisé récemment, en incluant la forme graphique ou électronique du manuel Advantech PCI-1718 Series ou les vidéos d'instruction pour les utilisateurs. La condition est son caractère lisible et compréhensible.

Qu'est ce que le manuel d’utilisation?

Le mot vient du latin "Instructio", à savoir organiser. Ainsi, le manuel d’utilisation Advantech PCI-1718 Series décrit les étapes de la procédure. Le but du manuel d’utilisation est d’instruire, de faciliter le démarrage, l'utilisation de l'équipement ou l'exécution des actions spécifiques. Le manuel d’utilisation est une collection d'informations sur l'objet/service, une indice.

Malheureusement, peu d'utilisateurs prennent le temps de lire le manuel d’utilisation, et un bon manuel permet non seulement d’apprendre à connaître un certain nombre de fonctionnalités supplémentaires du dispositif acheté, mais aussi éviter la majorité des défaillances.

Donc, ce qui devrait contenir le manuel parfait?

Tout d'abord, le manuel d’utilisation Advantech PCI-1718 Series devrait contenir:
- informations sur les caractéristiques techniques du dispositif Advantech PCI-1718 Series
- nom du fabricant et année de fabrication Advantech PCI-1718 Series
- instructions d'utilisation, de réglage et d’entretien de l'équipement Advantech PCI-1718 Series
- signes de sécurité et attestations confirmant la conformité avec les normes pertinentes

Pourquoi nous ne lisons pas les manuels d’utilisation?

Habituellement, cela est dû au manque de temps et de certitude quant à la fonctionnalité spécifique de l'équipement acheté. Malheureusement, la connexion et le démarrage Advantech PCI-1718 Series ne suffisent pas. Le manuel d’utilisation contient un certain nombre de lignes directrices concernant les fonctionnalités spécifiques, la sécurité, les méthodes d'entretien (même les moyens qui doivent être utilisés), les défauts possibles Advantech PCI-1718 Series et les moyens de résoudre des problèmes communs lors de l'utilisation. Enfin, le manuel contient les coordonnées du service Advantech en l'absence de l'efficacité des solutions proposées. Actuellement, les manuels d’utilisation sous la forme d'animations intéressantes et de vidéos pédagogiques qui sont meilleurs que la brochure, sont très populaires. Ce type de manuel permet à l'utilisateur de voir toute la vidéo d'instruction sans sauter les spécifications et les descriptions techniques compliquées Advantech PCI-1718 Series, comme c’est le cas pour la version papier.

Pourquoi lire le manuel d’utilisation?

Tout d'abord, il contient la réponse sur la structure, les possibilités du dispositif Advantech PCI-1718 Series, l'utilisation de divers accessoires et une gamme d'informations pour profiter pleinement de toutes les fonctionnalités et commodités.

Après un achat réussi de l’équipement/dispositif, prenez un moment pour vous familiariser avec toutes les parties du manuel d'utilisation Advantech PCI-1718 Series. À l'heure actuelle, ils sont soigneusement préparés et traduits pour qu'ils soient non seulement compréhensibles pour les utilisateurs, mais pour qu’ils remplissent leur fonction de base de l'information et d’aide.

Table des matières du manuel d’utilisation

  • Page 1

    PCI-1718 Series 12-bit Multifunction Cards with Universal PCI Bus User Manual[...]

  • Page 2

    PCI-1718 Series User Manual ii Copyright The documentation and th e software included with this product are copy- righted 2005 by Advantech Co., Lt d. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time wi thout notice. No part of this man- ual may be reproduced, [...]

  • Page 3

    iii Product W arranty (2 years) Advantech warrants to you, the original purchaser , that each of its prod- ucts will be free from defects in mat erials and workm anship for two years from the date of purchase. This warranty does not apply t o any products which have b een repaired or altered by persons other than repair perso nnel authorized by Adv[...]

  • Page 4

    PCI-1718 Series User Manual iv CE This product has passed the CE test for environmental specificati ons when shielded cables are used for external wiring. W e recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for orderi ng information. T echnical Support and Assistance Step 1. V[...]

  • Page 5

    v Contents Chapter 1 Introd uction ..................................................... 2 1.1 Features ............. .............. ........... .............. ........... .............. 3 1.2 Applications ..... .............. ........... .............. ......................... 4 1.3 Installation Guide ..... .............. .............. .........[...]

  • Page 6

    PCI-1718 Series User Manual vi Table 3.9:I/O Connector Signal Descriptions .. ............ 29 3.3.2 Analog Input Connections ...... ........... ........... ......... ...... 30 Figure 3.3:Analog Output Connect ions .......... ............. 33 3.3.3 Di gital Signal Connections ....... ........... ......... ........... .... 34 3.4 Field Wiring Conside[...]

  • Page 7

    vii C.13 A/D Control — BASE+09H ................. .............. ............ 73 Table C.15:Registe r for A/D Control ............ ........... .. 73 C.14 Timer/Counter Enable — BA SE+0AH .......... ........... ...... 74 Table C.16:Registe r for Timer/Counter Enable ... ........ 74 C.15 Programmable Timer/Cou n ter — BASE+0C~0FH ........ 74 C.[...]

  • Page 8

    PCI-1718 Series User Manual viii[...]

  • Page 9

    2 CHAPTER 1 Introduction This chapter introduces the PCI-1718 cards and their typical applications. Sections include: • Features • Application s • Installation Guide • Software Overview • Device Driver Programming Road- map • Accessories[...]

  • Page 10

    PCI-1718 Series User Manual 2 Chapter 1 Introduction Thank you for buying the Adv antech PCI-1718HDU/HGU. PCI- 1718HDU/HGU is a PCI-Bus multifun ction card for IBM PC/XT/A T or compatible computers. It offers th e five most desired measurement and control functions: • 12-bit A/ D conversion • D/A conversion • Digital i nput • Digital output[...]

  • Page 11

    3 Chapter 1 1.1 Features • Register lev el programm ing compatibl e with PCL-818HD/ HG • 16 single-ended or 8 differential A/D inputs, switch selectab le • 12-bit A/D converter, up to 100 kHz sampling rate • Programmable gain for each input channel • Automatic Channel/Gain Scanning • On-board 1 K word FIFO buffer with software selectabl[...]

  • Page 12

    PCI-1718 Series User Manual 4 Onboard FIFO There are 1 K samples FIFO for A/D (AI) on PCI-17 18HDU/HGU. This is an important feature for faster data transfer and more predictable per- formance under Windows system. Onboard Programmable Timer/Counter PCI-1718HDU/HGU provides a programmable timer count er for generat- ing pacer trigger for the A/D co[...]

  • Page 13

    5 Chapter 1 1.3 Inst allation Guide Before you install your PCI-1 718HDU/ HGU card, please make sure you have the following necessary comp onents: • PCI-1718HDU/HG U DA&C card • PCI-1718HDU/HG U User Manual • Driver software Advantech DLL drivers (included in the companion CD-ROM) • Personal computer or workstation with a PCI-bus slot ([...]

  • Page 14

    PCI-1718 Series User Manual 6 Figure 1.1: Installation Flow Chart[...]

  • Page 15

    7 Chapter 1 1.4 Sof tware Overview Advantech offers a rich set of DLL dr ivers, third-party driver su pport and application software to help fully exploit the functions of your PCI- 1718HDU/HGU card: • Device Drivers (on the companion CD-ROM) • LabVIEW driver • Advantech ActiveDAQ • Advantech ADAQV iew Programming choices for DA&C cards[...]

  • Page 16

    PCI-1718 Series User Manual 8 1.5 Device Driver Programming Roadmap This section will provide you a roadmap to demonstrate ho w to build an application from scrat ch using A dvantech Devi ce Drivers w ith your favorite development tools such as V isual C++, V isual Basic, Delphi and C++ Builder . The st ep-by-step instructions on how to build you r[...]

  • Page 17

    9 Chapter 1 Programming with Device Drivers Function Library Advantech Device Drivers of fer a rich function lib rary that can be uti- lized in various applicat ion programs. Th is function library con sists of numerous APIs that support man y development tools, such as V isual C++, V isual Basic, Delphi and C++ Builder . According to their specifi[...]

  • Page 18

    PCI-1718 Series User Manual 10 1.6 Accessories Advantech offers a complete set of accessory products to support the PCI-1718HDU/HGU card. Th ese accessories include: Wiring Cables PCL-10120 The PCL-10120 cable is a 20-pin flat cable for PCI-1718HDU/HG U cards. PCL-10137 The PCL-10137 shielded cable is specially design ed for PCI-1718HDU/ HGU cards [...]

  • Page 19

    2 CHAPTER 2 Inst allation This chapter provides a packaged item checklist, proper instructions for unpacking and step-b y-step procedures for both driver and card installation.. Sections include: • Unpacking • Driver Installation • Hardware Installation • Device Setup & Configuration[...]

  • Page 20

    PCI-1718 Series User Manual 12 Chapter 2 Inst allation 2.1 Unp ackin g After receiving your PCI-1718HDU/H GU package, please inspect its contents first. The package shou ld contain the following items: • PCI-1718HDU or PCI-1718HGU card • Companion CD-ROM (D evice Drivers included) • User Manual The PCI-1718 cards harbor certain el ectronic co[...]

  • Page 21

    13 Chapter 2 . 2.2 Driver Inst allation W e recommend you instal l the driver before you install the PCI- 1718HDU/HGU card into you r 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 compani on CD-ROM that is shipped with your DA&C card p[...]

  • Page 22

    PCI-1718 Series User Manual 14 Figure 2.1: Setup Screen of Advantech Automation Software 3. Select the Device Drivers option. 4. Select the specific device then just follow the in stallation instruc- tions step by step to complete your device driver installation and setup. Figure 2.2: Dif ferent Options for Driver Setup For further information on d[...]

  • Page 23

    15 Chapter 2 2.3 Hardware Inst allation After the Device Drivers inst allation is completed you can install the PCI- 1718HDU/HGU card into any PCI slot on your computer . However, it is suggested that you refer to the computer ’ s user manual or related docu- mentation if you hav e any doubts. Pl ease follow the steps belo w to install the card o[...]

  • Page 24

    PCI-1718 Series User Manual 16 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. T o in stall[...]

  • Page 25

    17 Chapter 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 Differ en tial or 16 Singl e- ended , and specify the D/A voltage referenc e either as External or Internal . Figure 2.4: The Device Setting Dialog Box 5. After you have fi nished configuring t he device, [...]

  • Page 26

    PCI-1718 Series User Manual 18 After your card is properly installed and config ured, you can click the Te s t … button to test your hardware by using the testin g utility supplied. Figure 2.6: The T est Utility Dialog Box For more detailed inform ation, please refer to Chapter 2 of the Device Drivers Manual . Y ou can also find rich examples on [...]

  • Page 27

    2 CHAPTER 3 Signal Connections This chapter provides u seful inform a- tion about how to connect inpu t and output signal s to the PCI-1718 cards via the I/O connector .. Sections include: • Overview • Switch and Jumper Setting s • Signal Connect ions • Field W iring Con siderations[...]

  • Page 28

    PCI-1718 Series User Manual 20 Chapter 3 Signal Connections 3.1 Overview Maintaining si gnal connections is one of the most important factors in ensuring that y our application system is se nding and receiving data cor- rectly . A good signal connection can avoid unnecessary and costly dam- age to your PC and other hardware devices. This chapter pr[...]

  • Page 29

    21 Chapter 3 3.2.1 Setting the BoardID Switch (SW1) BoardID settings are used to set a boa rd’ s unique identifier when multiple identical cards are installed in the same sys tem. PCI-1718 cards have a built-in DIP switc h (SW1 ), which is used to define each card’ s unique identifier . Y ou can determine the unique identifier in the register a[...]

  • Page 30

    PCI-1718 Series User Manual 22 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 ch anges the channels between single- ended or differential input. Slide the switch to the left-hand positi on, marked DIFF , for eight differential inputs (t he default[...]

  • Page 31

    23 Chapter 3 When you set JP11 to EXT , the D/A converter takes its reference vo ltage input from pin 31 of connector CN3. Y o u can apply any voltage between -10 V and +10 V to this pin t o functio n as the external reference. The ref- erence input can be either DC or AC (<100 kHz). When you use an external reference with voltage V ref you can [...]

  • Page 32

    PCI-1718 Series User Manual 24 3.2.5 Timer Clock Selection (JP8) PCI-1718’ s JP8 controls the input clo ck frequency for the 8254 program- mable clock/timer . Y ou have two choices: 10 or 1 MHz. This lets you generate pacer output frequencies from 2.5 MHz to 0.00 023 Hz (71 min- utes/pulse). The following equation gives the pacer rate: Pacer rate[...]

  • Page 33

    25 Chapter 3 3.2.6 Ext. trigger and Counter Gate 0 Control (JP5) JP5 has two jumpers. The upper jump er selects the card's A/D trigger source when you use external trigge ring. The lower jumper selects the gate control for counter 0 of the card's 8254 timer/ counter . 3.2.7 Digit al Output, 20-pin or 37-pin Connector (JP1) The PCI-1718 ca[...]

  • Page 34

    PCI-1718 Series User Manual 26 T able 3.7: Summary of Jumper Setting s Jumper Func tion Description JP1 (first) S0 D0 (default) JP1 (sec- ond) S1 D1 (default) JP1 (third) S2 D2 (default) JP1 (fourth) S3 D3 (default)[...]

  • Page 35

    27 Chapter 3 3.2.8 Setting the T ime to Reset Digit al Output s Some users will want the capability of clearing each digital output when the system (or PC) issues a reset sign al on the PCI bus. Other users will want to clear their si gnal outputs only as part of sy stem power-on. PCI-1718 cards satisfy both these needs with jumper JP21. Depending [...]

  • Page 36

    PCI-1718 Series User Manual 28 3.3 Signal Connections Pin Assignment Figure 3-2 shows the pin assignments for th e 37-pin I/O connector on the PCI-1718HDU/HGU. Figure 3.2: I/O Connector Pin Assignm ents for the PCI-1718 Series Note: S0/S1 is NC, and S2/S3 is AGND for PCI-1718 HGU CN1 CN2 D/O 0 1 2 D/O 1 D/I 0 1 2 D/I 1 D/O 2 3 4 D/O 3 D/I 2 3 4 D/I[...]

  • Page 37

    29 Chapter 3 3.3.1 I/O Connector Signal Description T able 3.9: I/O Connector Signal Descriptions Signal Name Refere nce Direct ion Description A/D S <0..15> A.GND Input Analog input (single-ended), channels 0 through 15. A/D H <0..7> A.GND Input Analog input hi gh (differential), channels 0 through 7. A/D L <0..7> A.GND Input Ana[...]

  • Page 38

    PCI-1718 Series User Manual 30 3.3.2 Analog Input Connections PCI-1718HDU/HGU support s either 16 single-ended or 8 differential analog inputs. Switch SW2 selects the input channel configuration. Single-ended Channel Connections Single-ended connections use o nly one signal wire per channel. The volt- age on the line references to the co m mon grou[...]

  • Page 39

    31 Chapter 3 If the signal source h as one side con nected to a local g round, the signal source ground and the PCI-1718HDU/HGU ground will not be at exactly the same vol tage, as they are connected t hrough the grou nd return of the equipment and building wiring . The difference between the ground volt- ages forms a common-mode voltage. T o avoid [...]

  • Page 40

    PCI-1718 Series User Manual 32 Expanding An alog Inputs Y ou can expand any or all of the PCI-1718HD U/HGU's A/D input chan- nels using m ultiplexing daught erboards. Daughterb oards without D-typ e connectors require the PCLD-774 Analog Expansion Board. The PCLD-789(D) Amplifier and Multip lexer multiplexes 16 differential inputs to one A/D i[...]

  • Page 41

    33 Chapter 3 Analog Outp ut Connection The PCI-1718HDU/HGU provides one D /A output channel. Y ou can use the internal precision -5 V or -10 V reference t o 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 . Load ing[...]

  • Page 42

    PCI-1718 Series User Manual 34 3.3.3 Digit al Signal Connections The PCI-1718HDU/HGU has 16 digi tal input and 16 digital output chan- nels. The digital I/O levels are TTL compatible. The following figure shows connections to exchange digital signals with other TTL devices: T o receive an OPEN/SHOR T signal from a switch or relay , add a pull-up re[...]

  • Page 43

    35 Chapter 3 3.4 Field Wiring Considerations When you use PCI-1718 cards to acquire dat a from outside, noises in the environment might signifi cantly affect the accur acy of your measure- ments if due cautions are not taken. The following measures will be help- ful to reduce possible interference runnin g signal wires between signal sources and th[...]

  • Page 44

    PCI-1718 Series User Manual 36[...]

  • Page 45

    2 CHAPTER 4 Programming Guide This chapter provides u seful inform a- tion about how to do register level pro - gramming for PCI-1 718 cards. Sections include: • Overview • Programmin g with the Driv er • Register Programmin g • Programmin g with LabVI EW and ActiveDAQ[...]

  • Page 46

    PCI-1718 Series User Manual 38 Chapter 4 Programming Guide 4.1 Overview The PCI-1718 cards are delivered with an easy-to-use 32-bit Devi ce Driver for user programming under the Windows 98/2000/XP operating systems. At the W indo ws driver level, PCI-1718 cards are fully compatible with the PCL-818 series so you can easily use older ap plications o[...]

  • Page 47

    39 Chapter 4 4.3.1 Sof tware T rigger and Polling 1. Set the input range for each A/D channel 2. Set the input channel by specifying the MUX scan rang e 3. T rigger the A/D conversion by w riting to the A/D low byt e register (BASE+0) with any value. 4. Check for the end of the convers ion by reading the A/D status reg- ister (BASE+8) EOC bi t. 5. [...]

  • Page 48

    PCI-1718 Series User Manual 40 Example Code: /********This code supports T urboC 3.0 or later v ersions******* */ #include <stdio.h> #include <DOS.h> #define AD_NO 4096; // Number of Samples int base_addr; void main(void) { int ad_lb,ad_hb; //Declaration int i; int eoc; /****** Access your base address ******/ //Add your code here /****[...]

  • Page 49

    41 Chapter 4 4.3.2 Pacer T rigger Mode with Interrupt MUX Scan Channel Control & A/D Range Control Set Scan Channel Set To Pacer Trigger Mode and Enable Device Interrupt w Base+0 1 H w Base+0 2 H w Base+ 09H Set To Pacer Trigger Mode To Enable Trigger Set Pacer Rate Base+0 CH~ Base+0FH Interrupt Set to Software Trigger Mode To Disable Trigger. [...]

  • Page 50

    PCI-1718 Series User Manual 42 1. Set the input range for each A/D channel 2. Set the input channel by specifying the MUX scan rang e 3. Set pacer rate and interr upt service routine (ISR) 4. Enable device to generate interr upts and system to accept interrupts 5. T rigger the A/D conversion by writing “1” to the A/D cont rol register (BASE+9) [...]

  • Page 51

    43 Chapter 4 /***** Set Pacer *****/ outportb(base_addr+0x0f ,0x7E); //P acer=1M/clk1/clk2 outportb(base_addr+0x0d,0x0A); //clk 1 outportb(base_addr+0x0d,0x 00); //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 *****[...]

  • Page 52

    PCI-1718 Series User Manual 44 void interrupt isr(void) { disable(); /***** Add code on here *****/ iflag = 1; //Interrupt Flag outportb(base_addr+0x08,0);// Clear In terrupt /****************** **********/ outportb(0x20,0x20); outportb(0xA0,0x20); enable(); }[...]

  • Page 53

    45 Chapter 4 4.3.3 Pacer T rigger Mode with Interrupt and FIFO MUX Scan Channel Control & A/D Range Control Set Scan Channel w Base+0 1 H w Base+0 2 H Clear FIFO Set To Pacer Trigger Mode To Enable Trigger w Base+0 9 H w Base+ 1 9 H Interrupt Set Pacer Trigger and Disable Generated Interrupt Set To Software Trigger Mode To Disable Trigger w Bas[...]

  • Page 54

    PCI-1718 Series User Manual 46 1. Set the input range for each A/D channel 2. Set the input channel by specifying the MUX scan rang e 3. Set pacer rate and interr upt service routine (ISR) 4. Enable FIFO to generate interr upts and system to accept interrupts 5. T rigger the A/D conversion by writing “1” to the A/D cont rol register (BASE+9) 6.[...]

  • Page 55

    47 Chapter 4 outportb(base_addr+0x02,0x00); //MUX Scan Channel Control outportb(base_addr+0x01,0x03); //Chan nel 1 Gain Setting outportb(base_addr+0x02,0x11); // MUX Scan Channel Control outportb(base_addr+0x01,0x08); // Chann el 2 Gain Setting outportb(base_addr+0x02,0x10); //Scan Channel 0-1 /***** Set Pacer *****/ outportb(base_addr+0x0f,0x7e); [...]

  • Page 56

    PCI-1718 Series User Manual 48 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[...]

  • Page 57

    49 Chapter 4 4.4 Programming with LabVIEW and ActiveDAQ Advantech offers not only a rich set of DLL drivers, but also third-party driver support and applicat ion software to help fully explo it the functions of your PCI-1718 cards. For more det ailed information for these applications, please refer to: LabV iew StartAdvantech AutomationLabVI EWL[...]

  • Page 58

    PCI-1718 Series User Manual 50[...]

  • Page 59

    2 APPENDIX A Sp ecifications[...]

  • Page 60

    PCI-1718 Series User Manual 52 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 1 00 kS/s Input range and Gain List for PCI- 1718HDU 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 4 Mhz 4[...]

  • Page 61

    53 Appendix A A.2 Analog Output A.3 Digit al Input Channels 1 Resolution 12-bit Max. T ransfer Rate 100 kS/s Output Range (Internal & External Reference) Using Internal Reference 0~+5V ,0~+10 V Using External Reference 0 ~ x V @ x V (-10 =< x =< 10) Accuracy INLE ± 1LSB DNLE ± 1LSB (monotonic) Offset error Adjustable to ± 1 LSB Gain er[...]

  • Page 62

    PCI-1718 Series User Manual 54 A.4 Digit al Output A.5 Counter/Timer Output Channels 16 Output V oltage Low 0.4 V max.@ +8.0mA (sink) High 2.4 V min.@ -0.4mA(source) Counter chip 82C54 or equiva lent Channels 3 channels, 2 channels are permanently configured as programmable pacers; 1 channel is free for user appli- cation Resolution 16-bit Comp ati[...]

  • Page 63

    55 Appendix A A.6 General I/O Connector Ty p e 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 Consumptio n Ty p i c a l +5 V @ 850 mA Max. +5 V @ 1 A T emperatu re Operating 0~60° C (32~158° F) (refer to IEC 68-2-1,2) Stor ag e -20~ 70° C (-4~158° F) [...]

  • Page 64

    PCI-1718 Series User Manual 56[...]

  • Page 65

    2 APPENDIX B Block Diagrams[...]

  • Page 66

    PCI-1718 Series User Manual 58 Appendix B Block Diagrams[...]

  • Page 67

    2 APPENDIX C Register S tructure & Format[...]

  • Page 68

    PCI-1718 Series User Manual 60 Appendix C Register S tructure & Format C.1 Overview PCI-1718 cards are delivered with an easy-to-use 32-bit Device Drivers for user programming under the Wi ndows 98/2000/XP operating sys- tems. W e advise u sers to program t he PCI-1718 cards using the 32-bi t Device Drivers provided by Advantech to avoid the co[...]

  • Page 69

    61 Appendix C T able C.1: PCI-1718HDU /HGU Register Format (Part 1) Base Addr . +HEX 7 6 54 3210 00H R A/D low byte data and channels AD3 AD2 AD1 AD0 C3 C2 C1 C0 W Software A/D trigger 01H R A/D high byte data and channels AD1 1 AD10 AD9 AD8 AD7 AD6 AD5 AD4 W A/D range control G3 G2 G1 G0 02H R MUX scan channel status CC3 CC2 CC1 CC0 W MUX scan cha[...]

  • Page 70

    PCI-1718 Series User Manual 62 T able C.2: PCI-1718HDU /HGU Register Format (Part 2) Base Addr . +HEX 76 5432 1 0 08H R A/D S tatus EOC U/B MUX INT CN3 CN2 CN1 CN0 W Clear interrupt request 09H R A/D Control INTE I2 I1 I0 DMAE ST1 ST0 WA / D C o n t r o l INTE ST1 ST0 0AH R N/A W Timer/Counter Control TC1 TC0 0BH R Digital Input (high byte) DI15 DI[...]

  • Page 71

    63 Appendix C T able C.3: PCI-1718HDU /HGU Register Format (Part 3) Base Addr . +HEX 7 6543210 14H R BoardID I D 3I D 2I D 1I D 0 W Clear FIFO Interrupt Request 17H R A/D data and channels from FIFO AD3 AD2 AD1 AD0 C3 C2 C1 C0 W N/A 18H R A/D data and channels from FIFO AD1 1 AD10 AD9 AD8 AD7 AD6 AD5 AD4 W N/A 19H R FIFO status W FIFO clear FF HF E[...]

  • Page 72

    PCI-1718 Series User Manual 64 C.3 A/D Dat a and Ch annels — BASE+00H~01H AD1 1 ~ AD0 Analog to digi tal data AD0 The least signi ficant bit (LSB) of the A/D data AD1 1 The most significant bit (MSB) C3 ~ C0 A/D channel numb er from which th e data is derived C0 The least significant bit (LSB) of the channels C3 The most significant bit (MSB) C.4[...]

  • Page 73

    65 Appendix C C.5 A/D Range Control — BASE+01H Each A/D channel has its own indi vidual input range, controll ed by a range code stored in onboard RAM. If you want to change the range code for a given channel, select the channe l as the start channel in register BASE+02H, MUX scan (described in th e next section), then write the range code to bit[...]

  • Page 74

    PCI-1718 Series User Manual 66 PCI-1718HGU Input Range (V) Unipolar/Bipola r Gain Code G3 G2 G1 G0 ± 5 V B 0000 ± 0 . 5 V B 0001 ±0.05V B 0 0 1 0 ± 0 . 0 0 5 V B 0011 0 t o 1 0 V U 0100 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 ± 1 V B 1001 ± 0 . 1 V B 1010 ±0.01V B 1 0 1 1 N/A 1 1 0 0 N/A 1 1 0 1 N/A 1 1 1[...]

  • Page 75

    67 Appendix C C.6 MUX Scan Channel Control — BASE+02H The write register at BASE+02H controls multiplexer (MUX) scannin g. The high nibble provides the stop scan channel number , and th e low nib- ble provides the start scan channel number . Writing to this register auto- matically initializes the MUX to the start channel. Each A/D conversion tri[...]

  • Page 76

    PCI-1718 Series User Manual 68 C.7 MUX Scan Channel St atus — BASE+02H Read register BASE+02H to get th e current multiplexer (MUX) channel. CC3 ~ CC0 Current channel number CC0 The least significant b it (LSB) of the stop channel CC3 The most significant bit (MSB) C.8 Digit al I/O Regi sters - BASE + 03/0BH The PCI-1718HDU/HGU provides 16 digita[...]

  • Page 77

    69 Appendix C DI15 ~ DI0 Digital input data DI0 The least significant bit (LSB) of the DI data DI15 The most significant bit (MSB) C.9 D/A Output — BASE+04/05H W rite-only registers B ASE+04H and BASE+05H accept data for D/A output. The PCI-1718 cards provide one D/A output channel with two double- buffered 12-bit multi plying D/A conver ters. W [...]

  • Page 78

    PCI-1718 Series User Manual 70 DA1 1 ~ DA0 Analog to digital data DA0 The least significant bit (L SB) of the D/A data DA1 1 The most significant bit (MSB) When you write d ata to D/A ch annels, write the low by te 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[...]

  • Page 79

    71 Appendix C C.1 1 Clear Interrup t Request — BASE+08H W rite any valu e to register BASE+08H to clear the interrupt request. C.12 A/D S t atus — BASE+08H Read-only reg ister BASE+08H provides information on the A/D configu- ration and operation. Including: • Bipolar or unipolar input for the chann el to be converted next • Single-ended or[...]

  • Page 80

    PCI-1718 Series User Manual 72 U/B Unipolar/bipolar mode indicator 0 Bipolar mode 1 Unipolar mode MUX Single-ended/differen tial channel indicator 0 8 differential channels 1 16 single-ended channel s INT Data valid 0 No A/D conversion has been comple t ed since the last time the INT bit was cleared. V alues in the A/D data registers are not valid [...]

  • Page 81

    73 Appendix C C.13 A/D Control — BASE+09H Read/write register BASE+09H pro vides information on the PCI- 1718HDU/HGU's operating mo des. INTE Disable/enable ge nerated interrupts 0 Disables the generation of interrupts. No interrupt signal can be sent to the PC bus. 1 Enables the generation of interr upts. If DMAE = O the PCI-1718 card will [...]

  • Page 82

    PCI-1718 Series User Manual 74 C.14 T imer/Counter Enable — BASE+0AH W rite register BASE+0AH enables or disables the PCI-1718 card’ s timer/ counter . TC0 Disable/enable pacer 0 Pacer enabled 1 Pacer controlled by TRIG0. This bl ocks trigger pulses sent from the pacer to the A/D until TRIG0 is taken high. TC1 Counter 0 input source mode 0 Sets[...]

  • Page 83

    75 Appendix C C.16 Clear FIFO Inte rrupt Request — BASE+14H W rite any valu e to this I/O port to clear the FIFO's interrupt request. C.17 A/D Dat a and Channe l 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 buf fer . Registers at BASE+17H and BASE+18H store the chann[...]

  • Page 84

    PCI-1718 Series User Manual 76 C.18 FIFO St atus — BASE+19H The register at BASE+19H clears the FI FO buffer and sets its empty flag (EF). The FIFO status register, a ddress BASE+19H, has flags which you can read to determine the current stat e of the FIFO buf fer , including full flag, half-full flag, and empty flag. EF FIFO empty flag 1 FIFO is[...]

  • Page 85

    77 Appendix C C.20 Register Prog ramming Flow Chart C.20.1 Sof tware T rigger Mode with Polling MUX Scan Channel Control & A/D Range Control Set Software Trigger and Disable Generated Interrupt Software A/D Trigger Check EOC Get Data EOC=0 w Base+0 1 H w Base+0 2 H w Base+ 09H w Base+ 00H r Base+ 08H r Base+ 00H r Base+01H More Data? Yes No EOC[...]

  • Page 86

    PCI-1718 Series User Manual 78 C.20.2 Pacer T rigger Mode with Interrupt MUX Scan Channel Control & A/D Range Control Set Scan Channel Set To Pacer Trigger Mode and Enable Device Interrupt w Base+0 1 H w Base+0 2 H w Base+ 09H Set To Pacer Trigger Mode To Enable Trigger Set Pacer Rate Base+0 CH~ Base+0FH Interrupt Set to Software Trigger Mode T[...]

  • Page 87

    79 Appendix C C.20.3 Pacer T rigger Mode with Interrupt [FIFO Used] MUX Scan Channel Control & A/D Range Control Set Scan Channel w Base+0 1 H w Base+0 2 H Clear FIFO Set To Pacer Trigger Mode To Enable Trigger w Base+0 9 H w Base+ 1 9 H Interrupt Set Pacer Trigger and Disable Generated Interrupt Set To Software Trigger Mode To Disable Trigger [...]

  • Page 88

    PCI-1718 Series User Manual 80[...]

  • Page 89

    2 APPENDIX D Calibration This appendix provides brief informa- tion on PCI-1718 card calibration. R eg- ular calibration check s are important to maintain accuracy in data acquisition and contr ol applications.[...]

  • Page 90

    PCI-1718 Series User Manual 82 Appendix D Calibration PCI-1718 cards are calibrated at the f actory for initial use. However, a recalibration of the analog input and the analo g output function is recom- mended: 1. Every six months. 2. Everytime the analog output range is c hanged. W e provide a calibration program on the com panion CD-ROM to assis[...]

  • Page 91

    83 Appendix D D.1 VR Assignment The six variable resistors (VRs) on the PCI-1718HDU/H GU board help you make accurate adjustment on all A/D and D/A channels. See the fig- ure in Appendi x B for help finding th e VRs. The followi ng list shows the function of each VR: Figure D.1: PCI-1718 VR Assig nment VR Function VR1 A/D unipolar offset VR2 A/D fu[...]

  • Page 92

    PCI-1718 Series User Manual 84 D.2 A/D Calibration Regular and accurate calibration en sures maximum possible accuracy . The CALB.EXE calibration pro gram leads you through the whole A/ D offset and gain adjustment procedur e. 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 [...]

  • Page 93

    85 Appendix D D.3 D/A Calibration Connect a reference voltage within th e range ± 10 V to the reference inp ut of the D/A channel you want to calib rate. Y ou 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 wi th VR5 and VR6, respectively . Use a precision [...]

  • Page 94

    PCI-1718 Series User Manual 86[...]