background image

Functions and Operating Procedures

AD12-64(PCI), AD12-16(PCI)

49

The following shows control ports for starting timer:

The following shows control ports for stopping timer:

The following are examples of timer period settings described in
high-level languages:

Microsoft C

outp( ADR+8, 5 );

outp( ADR+12, ClockData0 );

outp( ADR+13, ClockData1 );

outp( ADR+14, ClockData2 );

outp( ADR+15, ClockData3 );

outp( ADR+8, 6 );

:

outp( ADR+8, 7 );

Microsoft QBASIC

OUT  ADR+8 5

Timer period settings

OUT  ADR+12 ClockData0

OUT  ADR+13 ClockData1

OUT  ADR+14 ClockData2

OUT  ADR+15 ClockData3

OUT  ADR+8 6

Timer start

:

OUT  ADR+8 7

Timer stop

Reference

Sample software : TI.C, TI98.C

+8

(+08h)

0

0

0

0

1

1

0

0

Output

D 7

D 6

D 5

D 4

D 3

D 2

D 1

D 0

Command

+8

(+08h)

0

0

0

0

1

1

0

1

Output

D 7

D 6

D 5

D 4

D 3

D 2

D 1

D 0

Command

Summary of Contents for AD12-16(PCI)

Page 1: ...AD12 64 PCI AD12 16 PCI 64 16 Channel Analog to Digital Input Board for PCI User s Guide...

Page 2: ...o change without notice All relevant issues have been considered in the preparation of this document Should you notice an omission or any questionable item in this document please feel free to notify...

Page 3: ...prevent damage in shipping Check the contents to make sure that you have everything listed above If you do not have all the items contact your distributor or CONTEC group office where you purchased No...

Page 4: ...Installing the Board on Your PC and Turning the Power On 6 Setting up the Board 7 Installing for Windows 98 7 Installing for Windows 95 11 Installing for Windows NT 18 Installing for other OS System 1...

Page 5: ...ing sampling operation 39 Feeding conversion data 40 Details of analog input status 42 Digital input function 44 Digital output function 44 Interrupt function 45 External trigger 47 Timer 48 Status of...

Page 6: ...onnection for the Differential Input via a Shielded Cable 27 Figure 3 7 Connecting the Control Signal Inputs 29 Figure 3 8 Connecting the Control Signal Outputs 29 Figure 4 1 Basic operation for analo...

Page 7: ...mple conversion data in a 10 volt range conversion 40 Table 4 3 Output port list 51 Table 4 4 Input port list 52 Table 4 5 Command list 53 Table 6 1 Correspondence between Analog Input Circuit Adjusti...

Page 8: ...y API PAC W32 Ver Aug 1999 or later The API PAC W32 does not necessarily support full functions of the board Make sure specifications of the driver software before purchase Features Multi channel anal...

Page 9: ...interrupt by inputting a TTL level digital signal Also trigger input can be monitored on the basis of status without using interrupt capability Status of input signals can be monitored directly This...

Page 10: ...cable if the device has been tampered with or damaged through abuse mistreatment neglect or unreasonable use or if the original invoice is not included in which case repairs will be considered beyond...

Page 11: ...recautions on the signal connection to an external device Chapter 4 Functions and Operating Procedures This chapter describes the functions and operating procedures of the board as well as the functio...

Page 12: ...e Board Names of Components Signal connector Board ID setting switch SW1 BOARD ID 0 1 2 3 4 5 6 7 9 A B C D E F VR1 VR2 VR3 VR4 Analog input adjusting trimmers Figure 2 1 Names of Components Note that...

Page 13: ...W1 knob to set the board ID as shown below Figure 2 2 Board ID Setting SW1 Installing the Board on Your PC and Turning the Power On Make sure first that the main unit of your PC is off then disconnect...

Page 14: ...me up with the New Hardware detection dialog box In the Add New Hardware Wizard that appears next check that PCI Multimedia Device has been listed then select Next 5 In the next dialog box select a ra...

Page 15: ...at the first board has been set up correctly as described in Checking resources Be sure to complete installation of the first board before attempting to install the second one 3 Exit Windows 98 and tu...

Page 16: ...same steps as those for installing a second board Before you can install a third board or additional boards all board that are already installed must be in PCI bus slots Notes The second board cannot...

Page 17: ...esource Verify types and settings of resources and there is no conflict Support software CONTEC provides the following driver software for Windows 98 API PAC W32 Ver Aug 1999 or later The above driver...

Page 18: ...king the OS version Note that the procedure for installing the board depends on which version of Windows 95 you are using Check the version of Windows 95 on your system as follows before installing th...

Page 19: ...hich driver you want to install for your new hardware and then Driver from disk provided by hardware manufacturer 5 In the Install From Disk dialog box the attached FD into the disk drive enter the dr...

Page 20: ...zard that appears next check that PCI Multimedia Device has been listed then select Next 5 In the next dialog box select Specify Location Insert the supplied FD in a drive enter the drive name and dir...

Page 21: ...e second board then plug it into a PCI bus slot Assign ID to the second board a board ID that is different from the ID assigned to the first board 5 Turn the personal computer on again to start up Win...

Page 22: ...esses and interrupt level for the board can be allocated Before attempting to install the second board first determine what PC resources are free The resources used for each board do not depend on the...

Page 23: ...start up Windows 95 6 The OS will then automatically install the second board When the installation has been completed re check the assigned resources For installing the third board and any additiona...

Page 24: ...esource Verify types and settings of resources and there is no conflict Support software CONTEC provides the following driver software for Windows 95 API PAC W32 Ver Aug 1999 or later The above driver...

Page 25: ...1 Set the board ID 2 Be sure that the personal computer power is off Then plug the board into a PCI bus slot in the system 3 Start Windows NT with Administrator 4 Execute the optional driver program...

Page 26: ...on systems in addition of the Windows OS we use MS DOS as an example to show how to use the board under the OS For a PCI bus board the system will automatically assign a usable resource resources to t...

Page 27: ...nal computer Follow the steps below to check the assigned resources 1 Run the resource check program AIOPCI EXE stored in the DOS directory on the supplied floppy disk FD 2 Check the I O addresses and...

Page 28: ...6 B45 B44 B43 B42 B41 B40 B39 B38 B37 B36 B35 B34 B33 B32 B31 B30 B29 B28 B27 B26 B25 B24 B23 B22 B21 B20 B19 B18 B17 B16 B15 B14 B13 B12 B11 B10 B09 B08 B07 B06 B05 B04 B03 B02 B01 A48 A47 A46 A45 A4...

Page 29: ...signals in single ended input mode while Analog Input0 Analog input31 and Analog Input0 Analog Input31 indicate signals in differential input mode Reference Mounted connector PCR E96LMD HONDA TSUSHIN...

Page 30: ...8 A47 A46 A45 A44 A43 A42 A41 A40 A39 A38 A37 A36 A35 A34 A33 A32 A31 A30 A29 A28 A27 A26 A25 A24 A23 A22 A21 A20 A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A09 A08 A07 A06 A05 A04 A03 A02 A01 N C N C N...

Page 31: ...onnecting an External Device AD12 64 PCI AD12 16 PCI 24 Reference Mounted connector PCR E96LMD HONDA TSUSHIN KOGYO CO LTD equivalent Applicable connector PCR E96FA HONDA TSUSHIN KOGYO CO LTD equivalen...

Page 32: ...alog Ground V BOARD CN1 Cable Signal Source 1 1 0 15 on the AD12 16 PCI board Figure 3 3 Connection for the Single ended Input via a Flat Cable The following example uses a coaxial cable to connect th...

Page 33: ...ntial sources of noises A long connection cable may impair input of precise analog signals Keep a connection cable as short as possible Do not input an analog signal that exceeds a maximum input volta...

Page 34: ...nput via a Flat Cable The following example uses a two conductor shielded cable to connect the board to an external device Use this type of cable when the distance between the board and external devic...

Page 35: ...away from potential sources of noises A long connection cable may impair input of precise analog signals Keep a connection cable as short as possible No analog signal should be applied to either or i...

Page 36: ...output signals sampling operation signals output and programmable timer output are TTL level outputs Digital Ground Target Cable CN1 Output IOL 24mA BOARD ALS540 or equivalent Figure 3 8 Connecting t...

Page 37: ...lt in a fault in the board the PC or device or both When affected by noise the connection cable may fail to input output accurate analog signals Route the connection cable apart from noise sources A l...

Page 38: ...econd channel The conversion operation is roughly divided into the following two Software mode Sampling operation is performed once for a channel specified by sampling start command Clock mode Samplin...

Page 39: ...ation and input range Output the start command to feed the data for conversion Figure 4 2 Analog input procedures 1ch 1ch 3ch 2ch 1ch 0ch 3ch 2ch 1ch 0ch sampling start input channel 3ch 1ch sampling...

Page 40: ...he PC has been recycled or the reset button has been pressed The following are control ports for initialization The following are examples of initialization settings described in high level languages...

Page 41: ...the mode for performing sampling Select single channel mode for specifying only one channel or select multi channel mode for specifying two or more channels Channel Mode 0 Single Initial status 1 Mult...

Page 42: ...clock signal Sampling Mode 0 Software Command Initial status 1 Clock The following are examples of initialization settings described in high level languages Microsoft C Microsoft QBASIC outp ADR 8 1...

Page 43: ...n the AD12 16 PCI system data for channels from 0 15 is valid when single ended input is specified or data for channels from 0 7 is valid when differential input is specified The following are the con...

Page 44: ...ettings described in high level languages Microsoft C Microsoft QBASIC outp ADR 8 2 OUT ADR 8 2 for i 0 i 64 i FOR I 0 TO 63 outp ADR 12 i OUT ADR 12 I outp ADR 13 0x04 OUT ADR 13 H04 NEXT Reference S...

Page 45: ...0 000nsec to 1 073 741 824 000nsec approximately 17min and 54sec which corresponds to setting data from 39 to 4 294 967 295 The following formula expresses relation between the sampling period and set...

Page 46: ...ing channels from 0 to 10 The following shows control ports for starting sampling In software command sampling mode a specified channel is sampled only one time In clock mode or external sampling cloc...

Page 47: ...ffset binary format and the following equation represents the relation between conversion data and input voltage Figure 4 4 Input conversion data Table 4 2 Example conversion data in a 10 volt range c...

Page 48: ...ND LowerAiData INP ADR UpperAiData INP ADR 1 Reference Sample software AI1 C AI2 C AI3 C AI4 C AII C AII98 C Data Read Enable 6 06h Analog input status 0 0 0 Input D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 00...

Page 49: ...adable conversion data exists In a single channel mode the status is set to 1 if any piece of readable conversion data is stored In multi channel mode the status is set to 1 if readable conversion dat...

Page 50: ...rror status Sampling clock input status SCI D4 The status is set to 1 if a sampling clock is input after outputting sampling start command in clock mode The value is cleared after the status is read S...

Page 51: ...Sample software DI C Digital output function The digital output function provides active high 4 point TTL level digital signals Low is output upon turning on the power resetting the board or initializ...

Page 52: ...e is counted up when timer count up status is set The statuses are discussed in later sections Status Interrupt request signal is generated simultaneously when the status specified as interrupt source...

Page 53: ...timer period settings described in high level languages Microsoft C outp ADR 8 4 outp ADR 12 InterruptFactor0 outp ADR 13 InterruptFactor1 Microsoft QBASIC OUT ADR 4 OUT ADR 12 InterruptFactor0 OUT A...

Page 54: ...e Initial status of the external trigger gate is closed Open the external trigger gate when using an external trigger The following are the control ports for opening an external trigger gate The follo...

Page 55: ...ween the sampling cycles and setting data Timer period 250 Clock data 1 where timer period is in nanoseconds The following shows control ports for setting timer period 12 0ch 13 0dh 14 0eh 15 0fh Time...

Page 56: ...outp ADR 12 ClockData0 outp ADR 13 ClockData1 outp ADR 14 ClockData2 outp ADR 15 ClockData3 outp ADR 8 6 outp ADR 8 7 Microsoft QBASIC OUT ADR 8 5 Timer period settings OUT ADR 12 ClockData0 OUT ADR 1...

Page 57: ...rigger Over Run Status D3 1 is set upon input of an external trigger with Ex Trigger specified The status is cleared upon outputting 1 to D3 bit of 7 port Timer Status Timer Count up Status D4 1 is se...

Page 58: ...Functions and Operating Procedures AD12 64 PCI AD12 16 PCI 51 I O address map list Output ports Table 4 3 Output port list...

Page 59: ...Functions and Operating Procedures AD12 64 PCI AD12 16 PCI 52 Input ports Table 4 4 Input port list...

Page 60: ...I AD12 16 PCI Table 4 5 Command list No Hex Function 00 0 Initialization 01 1 Setup for sampling conditions 02 2 Setup for input range 03 3 Setup for internal sampling clock 04 4 Setup for interrupt s...

Page 61: ...Functions and Operating Procedures AD12 64 PCI AD12 16 PCI 54...

Page 62: ...nel mode AI3 C Analog input function sample program source file Clock single channel mode AI3 EXE Analog input function sample program Clock single channel mode AI4 C Analog input function sample prog...

Page 63: ...98 EXE Interrupt function sample program Interrupt source Data Read Enable TI98 C Interrupt function sample program source file Interrupt source Timer Status TII98 EXE Interrupt function sample progra...

Page 64: ...D is not 0 enter board ID decimal following B Use a reference voltage generator or a dry battery as a signal source to be connected Connect all analog input pins that are unconnected to a signal sourc...

Page 65: ...DO0 1 Interrupt function This section describes AII EXE TI EXE EXTI EXE AII98 EXE TI98 EXE and EXTI98 EXE The program generates an interrupt signal of a specified interrupt source counts the number of...

Page 66: ...ch pin to the analog ground Then follow the instructions from the calibration program to change the output voltage of the standard voltage generator and adjust the trimmer Format CAL B Board ID Option...

Page 67: ...Calibration Procedures AD12 64 PCI AD12 16 PCI 60...

Page 68: ...able in steps of 250nsec Status Count up count up overrun Timer output signal TTL level 250nesc low pulse low output current IOL 24mA External trigger input External trigger input signal Non insulated...

Page 69: ...sions Block Diagram 64 16 single end 32 8 differential Analog Inputs 4 Digital Input 4 Digital Output External Sampling Clock Input External Trigger Input Timer Output Sampling Busy Output PCI bus CN1...

Page 70: ...ternal Sampling Clock Operation Timing Diagram Table 7 2 Description for each portion Symbol Time nsec Falling setup time for external sampling clock siganl tSFS 100nsec Hold time for external samplin...

Page 71: ...System Reference AD12 64 PCI AD12 16 PCI 64...

Page 72: ...l mode 34 clock data 38 Clock mode 31 Command list 53 D differential input 27 Digital Input Output Signals 29 E External trigger 47 F Features 1 I Input ports 52 input range 36 interrupt sources 45 L...

Page 73: ...m 55 Sampling Clock 63 Sampling clock source 34 sampling conditions 34 Sampling mode 35 Setup 1 5 Single channel mode 31 single ended input 25 Software mode 31 Specifications 61 Support software 10 17...

Page 74: ...Index AD12 64 PCI AD12 16 PCI...

Page 75: ...A 46 068 LZJ3711 021011 991104...

Page 76: ...uro ku Seoul Korea Tel 82 2 2636 4277 8 Fax 82 2 2636 4279 E mail product conteck com CHINA INTERNATIONAL CONTEC TECHNOLOGY CO LTD B 8F Hua Tong Building No B19 Che Gong Zhuang West Road Hai Dian Dist...

Reviews: