background image

APPENDIX C

PCI-1711/1731 User’s Manual

Advantech Co., Ltd.
www.advantech.com

– 42 –

Read

Channel Number and A/D Data

Bit #

7

6

5

4

3

2

1

0

BASE+1

CH3

CH2

CH1

CH0

AD11 AD10

AD9

AD8

BASE+0

AD7

AD6

AD5

AD4

AD3

AD2

AD1

AD0

C.3 Channel Number and A/D Data — BASE+0 and

BASE+1

BASE+0 and BASE+1 hold the result of A/D conversion data.

The 12 bits of data from the A/D conversion are stored in BASE+1 bit
3 to bit 0 and BASE+0 bit 7 to bit 0.BASE+1 bit 7 to bit 4 hold the
source A/D channel number.

Table C-2  Register for channel number and A/D data

AD11 ~ AD0

Result of A/D Conversion

AD0    the least significant bit (LSB) of A/D data

 AD11  the most significant bit (MSB)

CH3 ~ CH0

A/D Channel Number
CH3 ~ CH0   hold the number of the A/D channel

  from which the data is received

CH3: MSB
CH0 :LSB

C.4 Software A/D Trigger —  BASE+0

You can trigger an A/D conversion by software, the card's on-board
pacer or an external pulse.

BASE+6, Bit 2 to bit 0, select the trigger source.

   (see Section C.7, Control Register -- BASE+6 )

If you select software triggering, a write to the register BASE+0 with
any value will trigger an A/D conversion.

Summary of Contents for PCI-1711

Page 1: ...use Acknowledgments PC LabCard is a trademark of Advantech Co Ltd IBM and PC are trademarks of International Business Machines Corporation MS DOS Windows MicrosoftVisual C andVisual BASIC are trade m...

Page 2: ...sting 15 3 Signal Connections 19 3 1 Overview 19 3 2 I O Connector 19 3 3 Analog Input Connections 22 3 4 Analog Output Connections 22 3 5 Trigger Source Connections 23 3 6 Field Wiring Considerations...

Page 3: ...7 45 C 8 Control Register BASE 6 46 C 9 Clear Interrupt and FIFO BASE 8 and BASE 9 47 C 10 D A Output Channel 0 BASE 10 and BASE 11 47 C 11 D A Output Channel 1 BASE 12 and BASE 13 48 C 12 D A Referen...

Page 4: ......

Page 5: ...31 provides users with the most requested measurement and control functions as seen below q 16 channel Single Ended A D Input q 12 bit A D conversion with up to 100 kHz sampling rate q 16 channel Digi...

Page 6: ...or Cost Savings The PCI 1711 goes further with 2 analog output channels while the PCI 1731 doesn t It is for users to differentiate between the PCI 1711 and the PCI 1731 according to what they really...

Page 7: ...ngboard PCLD 8710 ADAM 3968 q Computer Personal computer or workstation with a PCI bus slot running Windows 95 98 NT Some other optional components are also available for enhanced operation q Applicat...

Page 8: ...dvantech com Install Driver CD ROM then power off PC Plug in Hardware and power on PC Use configuration utility to configure hardware Use testing utility to test hardware Read examples driver m anual...

Page 9: ...ormation please refer to Appendix C Register Structure and Format 1 4 Accessories Advantech offers a complete set of accessory products to support the PCI 1711 1731 cards These accessories include Wir...

Page 10: ...ds which have 68 pin SCSI connectors The PCLD 8710 features the following functions l 2 additional 20 pin flat cable connectors for digital input and output l Reserved space on the board to meet futur...

Page 11: ...ward off possible ESD damage l Touch the metal part of your computer chassis with your hand to discharge static electricity accumulated on your body Or one can also use a grounding strap l Touch the a...

Page 12: ...Setup program for the PCI 1711 1731 card is included on the companion CD ROM that is shipped with your DAS card package Please follow the steps below to install the driver software Step 1 Insert the c...

Page 13: ...ver Manual 2 3 Hardware Installation Note Make sure you have installed the driver first before you install the card please refer to 2 2 Driver Installation After the DLL driver installation is complet...

Page 14: ...PCI card Step 8 Replace the cover of your computer chassis Re connect the cables you removed in step 2 Step 9 Plug in the power cord and turn on the computer Note In case you installed the card witho...

Page 15: ...e Device Manager tab If you do see your device name listed on it but marked with an exclamation sign Fig 2 4 it means your card has not been correctly installed In this case remove the card device fro...

Page 16: ...vice and later stores your settings on the system registry These settings will be used when you call the APIs of Advantech 32 bit DLL drivers Setting Up the Device Step 1 To install the I O device for...

Page 17: ...device you want to install Step 4 Scroll down the List of Devices box to find the device that you wish to install then click the Install button to evoke the Device s Found dialog box such as one show...

Page 18: ...channels Fig 2 9 The Device Setting dialog box Note Users can configure the source of D A reference voltage either as Internal or External and select the output voltage range When selecting voltage so...

Page 19: ...specifically assigned to each card cifically The device number is passed to the driver to specify which device you wish to control If you want to test the card device further go right to the next sec...

Page 20: ...sting Analog Input Function Click the Analog Input tab to bring it up to front of the screen Select the input range for each channel in the Input range drop down boxes Configure the sampling rate on t...

Page 21: ...ow Through the color of the lamps users can easily discern whether the status of each digital input channel is either high or low Fig 2 14 Digital Input tab on the Device Test dialog box Testing Digit...

Page 22: ...our clock source to pin CNT0_CLK and the counter will start counting after the pin CNT0_GATE is triggered If you select Pulse Out the clock source will be output to pin CNT0_OUT You can configure the...

Page 23: ...ect input and output signals to the PCI 1711 1731 via the I O connector 3 2 I O Connector The I O connector on the PCI 1711 1731 is a 68 pin connector that enable you to connect to accessories with th...

Page 24: ...I12 DI14 DG ND DO 0 DO 2 DO 4 DO 6 DO 8 DO 10 DO 12 DO 14 DG ND CNT0_C LK CNT0_O UT CNT0_G ATE 12V 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35...

Page 25: ...up to 10 MHz or internal 1 MHz as set by software CNT0 _OUT DGND Output Counter 0 Output CNT0 _GATE DGND Input Counter 0 Gate Control PACER _OUT DGND Output Pacer Clock Output This pin pulses once for...

Page 26: ...gnal source In this mode the PCI 1711 1731 provides a reference ground for external floating signal sources Figure 3 2 shows a single ended channel connection between a floating signal source and an i...

Page 27: ...se Counter 1 and Counter 2 are cascaded to create a 32 bit timer for pacer triggering A low to high edge from the Counter 2 output PACER_OUT will trigger an A D conversion on the PCI 1711 1731 At the...

Page 28: ...way from any video monitor since it can significantly affect a data acquisition system If the cable travels through area with significant electromagnetic interference you should adopt individually shi...

Page 29: ...allowed another option for register level program ming although not recommended due to its laborious and time consuming nature 4 1 Programming Choices A simple diagram such as Figure 3 1 is helpful to...

Page 30: ...ddition to these typical HMI functions GeniDAQ is further enhanced with a Visual Basic programming environment to facilitate rapid design of complex applications that involve lengthy calculation and a...

Page 31: ...ch offers a Tutorial Chapter in the DLL Drivers Manual for your reference Please refer to the corresponding sections in this chapter on the DLL Drivers Manual to begin your programming efforts You can...

Page 32: ...mperatureMeasurementFunctionGroup q AlarmFunctionGroup q PortFunctionGroup q CommunicationFunctionGroup q EventFunctionGroup For the usage and parameters of each function please refer to the Function...

Page 33: ...installed the program to another directory you can find these programs in the corresponding subfolders in your destination directory These calibration programs make calibration an easy job With a var...

Page 34: ...The basic steps are outlined below 1 Connect a DC voltage source of 9 995 V to AI0 2 Connect AGND to AI1 AI2 AI3 AI4 and AI5 3 Run the ADCAL EXE program 4 Adjust VR2 until the output codes from the c...

Page 35: ...ost cases it is difficult to find a good enough DC voltage source for A D calibration We provide a self adjusted A D calibration program SELFCAL EXE to help solve this problem The steps of self calibr...

Page 36: ...Chapter 5 PCI 1711 1731 User s Manual Advantech Co Ltd www advantech com 32...

Page 37: ...1 V 0 1 l a n r e t x E Analog Input Analog Output Only for PCI 1711 d e d n e e l g n i s 6 1 s l e n n a h C t i b 2 1 n o i t u l o s e R s e l p m a s K 1 e z i S O F I F z H k 0 0 1 e t a R g n i...

Page 38: ...Gate Input TGW gate width high 50 ns min TGL gate width low 50 ns min Input Channels 16 Input Voltage Low 0 8 V max High 2 0 V min Output Channels 16 Output Voltage Low 0 8 V max 8 0 mA sink High 2 0...

Page 39: ...A Output 0 12 bit D A Output 1 Data Bus P C I B us A D D A Status Control Logic 1K Sam ples FIFO 12 bit A D Convertor IRQ Control Logic A D Trigger Logic 10 M Hz OSC 10 M Hz 10 1 M Hz PGIA Gain Contro...

Page 40: ...APPENDIX B PCI 1711 1731 User s Manual Advantech Co Ltd www advantech com 36...

Page 41: ...nt consideration in programming the PCI 1711 1731 at the register level is to understand the function of the card s registers The information in the following sections is provided only for users who w...

Page 42: ...decimal Read 7 6 5 4 3 2 1 0 Channel Number and A D Data 1 CH3 CH2 CH1 CH0 AD11 AD10 AD9 AD8 0 AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 N A 3 2 N A 5 4 Status Register 7 IRQ F F F H F E 6 CNT0 ONE FH IRQEN GAT...

Page 43: ...Read 7 6 5 4 3 2 1 0 N A 15 14 Digital Input 17 DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8 16 DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 Counter 0 25 24 D7 D6 D5 D4 D3 D2 D1 D0 Counter 1 27 26 D7 D6 D5 D4 D3 D2 D1 D0...

Page 44: ...3 2 G2 G1 G0 MUX Control 5 Stop channel 4 Start channel Control Register 7 6 CNT0 ONE FH IRQEN GATE EXT PACER SW Clear Interrupt and FIFO 9 clear FIFO 8 clear interrupt D A Output Channel 0 11 DA11 D...

Page 45: ...5 14 DA1_I E DA1_5 10 DA0_I E DA0_5 10 Digital Output 17 DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 16 DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 Counter 0 25 24 D7 D6 D5 D4 D3 D2 D1 D0 Counter 1 27 26 D7 D6 D5 D4 D3...

Page 46: ...4 hold the source A D channel number Table C 2 Register for channel number and A D data AD11 AD0 Result of A D Conversion AD0 the least significant bit LSB of A D data AD11 the most significant bit MS...

Page 47: ...by a gain code stored in the on board RAM To change the range code for a channel l Write the same channel in BASE 4 the start channel and BASE 5 the stop channel refer to Section C 6 l write the gain...

Page 48: ...the A D trigger source is on the multiplexer will continuously scan between channels and the range setting may be set to an unexpected channel Make sure the A D trigger source is turned off to avoid...

Page 49: ...7 Status Register The content of the status register of BASE 6 is the same as that of the control register F E FIFOEmptyflag This bit indicates whether the FIFO is empty 1 means that the FIFO is empty...

Page 50: ...disable PACER Pacer trigger enable bit 1 enable 0 disable EXT External trigger enable bit 1 enable 0 disable Note Users cannot enable SW PACER and EXT concurrently GATE External trigger gate function...

Page 51: ...lear Interrupt and FIFO BASE 8 and BASE 9 Writing data to either of these two bytes clears the interrupt or the FIFO Table C 8 Register to clear interrupt and FIFO C 10 D A Output Channel 0 BASE 10 an...

Page 52: ...d BASE 13 accept data for D A channel 1 output PCI 1731 The PCI 1731 is not equipped with the D A functions PCI 1711 Table C 10 Register for D A channel 1 data DA11 DA0 Digital to analog data DA0 the...

Page 53: ...PCI 1731 The PCI 1731 is not equipped with the D A functions PCI 1711 Table C 11 Register for D A reference control DA0_5 10 The internal reference voltage for the D A output channel 0 0 5 V 1 10V DA0...

Page 54: ...input and output ports at addresses BASE 16 and BASE 17 Table C 12 Register for digital input Table C 13 Register for digital output Note The default configuration of the digital output channels is a...

Page 55: ...ernal source counter 0 is a 16 bit timer when set as an external source then counter 0 is an event counter and the clock source comes from CNT0_CLK The counter is controlled by CNT0_GATE When CNT0_GAT...

Page 56: ...D6 D5 D4 D3 D2 D1 D0 Value SC1 SC0 RW1 RW0 M2 M1 M0 BCD Description SC1 SC0 Select counter Counter SC1 SC0 0 0 0 1 0 1 2 1 0 Read back command 1 1 RW1 RW0 Select read write operation Operation RW1 RW0...

Page 57: ...cted by C2 to C0 contains a byte which shows the status of the counter The data format of the counter read write register then becomes BASE 24 26 28 Dec Status read back mode Bit D7 D6 D5 D4 D3 D2 D1...

Page 58: ...put high When the gate input goes high the counter will start from the initial count You can thus use the gate input to synchronize the counter With this mode the output will remain high until you loa...

Page 59: ...control byte to the control register BASE 30 Dec Since the control byte register and all three counter read write registers have separate addresses and each control byte specifies the counter it appli...

Page 60: ...ue of a counter without disturbing the count in progress You do this by latching the count value for the specific counter then reading the value The 82C54 supports the counter latch operation in two w...

Reviews: