background image

 

 

C.10  C

LEAR INTERRUPT 

— BASE+44H ............................................................................. 44

 

C.11  D

IGITAL OUTPUT 

— BASE+48H................................................................................ 44

 

C.12  D

IGITAL INPUT 

— BASE+48H................................................................................... 44

 

C.13  B

OARD 

ID — BASE+4EH......................................................................................... 45

 

C.14  FOUT 0/1/2/3/4/5/6/7 

CONTROL 

— BASE + 50~5FH............................................... 46

 

APPENDIX D. WAVEFORM OF EACH MODE ................................................................. 49

 

D.1  M

ODE 

WAVEFORM

.................................................................................................... 51

 

D.2  M

ODE 

WAVEFORM

..................................................................................................... 52

 

D.3  M

ODE 

WAVEFORM

..................................................................................................... 53

 

D.4  M

ODE 

WAVEFORM

.................................................................................................... 54

 

D.5  M

ODE 

WAVEFORM

..................................................................................................... 55

 

D.6  M

ODE 

WAVEFORM

..................................................................................................... 56

 

D.7  M

ODE 

WAVEFORM

.................................................................................................... 57

 

D.8  M

ODE 

WAVEFORM

.................................................................................................... 58

 

D.9  M

ODE 

WAVEFORM

...................................................................................................... 59

 

D.10  M

ODE 

WAVEFORM

.................................................................................................... 60

 

D.11  M

ODE 

WAVEFORM

................................................................................................... 61

 

D.12  M

ODE 

WAVEFORM

................................................................................................... 62

 

D.13  M

ODE 

WAVEFORM

.................................................................................................. 63

 

D.14  M

ODE 

WAVEFORM

................................................................................................... 64

 

D.15  M

ODE 

WAVEFORM

.................................................................................................. 65

 

D.16

   

M

ODE 

WAVEFORM

................................................................................................... 66

 

 

 

 

 

 

 

 

 

 

 

 

 

 

iv 

Summary of Contents for PCI-1780

Page 1: ...ational Business Machines Corporation MS DOS Windows Microsoft Visual C and Visual BASIC are trademarks of Microsoft Corporation Intel and Pentium are trademarks of Intel Corporation Delphi and C Buil...

Page 2: ...ii...

Page 3: ...SETTINGS 19 3 3 SIGNAL CONNECTIONS 21 APPENDIX A SPECIFICATIONS 25 APPENDIX B BLOCK DIAGRAM 27 APPENDIX C REGISTER STRUCTURE AND FORMAT 29 C 1 OVERVIEW 29 C 2 I O PORT ADDRESS MAP 29 C 3 COUNTER 0 1...

Page 4: ...F EACH MODE 49 D 1 MODE A WAVEFORM 51 D 2 MODE B WAVEFORM 52 D 3 MODE C WAVEFORM 53 D 4 MODE D WAVEFORM 54 D 5 MODE E WAVEFORM 55 D 6 MODE F WAVEFORM 56 D 7 MODE G WAVEFORM 57 D 8 MODE H WAVEFORM 58 D...

Page 5: ...for installation together with some brief information on software and accessories for the PCI 1780 card 1 1 Features 8 independent 16 bit counters 8 programmable clock source 8 digital TTL outputs and...

Page 6: ...nd stop count on second TC Start count on active gate edge and stop count on inactive gate edge Reload counter from Load Register on TC Reload counter on each TC alternating reload source between Load...

Page 7: ...Wiring cable PCL 10168 option Wiring board ADAM 3968 option Computer Personal computer or workstation with a PCI bus slot running Windows 2000 95 98 NT ME XP Some other optional components are also av...

Page 8: ...pplication Read examples driver manual Use test utility to test hardware Use driver utility to configure hardware Install Hardware and power on PC Install Driver from CD ROM then power off PC Fig 1 1...

Page 9: ...no extra charge It also comes with all Advantech DA C cards Advantech s device drivers feature a complete I O function library to help boost your application performance The Advantech Device Drivers f...

Page 10: ...tions on how to begin programming works in each development tool Advantech offers a Tutorial Chapter in the Device Drivers Manual for your reference Please refer to the corresponding sections in this...

Page 11: ...al function groups Digital Input Output Function Group Counter Function Group Port Function Group direct I O Event Function Group For the usage and parameters of each function please refer to the Func...

Page 12: ...wires are twisted in such a way as to form a twisted pair cable reducing cross talk and noise from other signal sources Furthermore its analog and digital lines are separately sheathed and shielded t...

Page 13: ...fully paid attention to Before removing the card from the antistatic plastic bag you should take following precautions to ward off possible ESD damage z Touch the metal part of your computer chassis w...

Page 14: ...city such as plastic vinyl and Styrofoam a Whenever you handle the card grasp it only by its edges DO NOT TOUCH the exposed metal pins of the connector or the electronic components Note Keep the anti...

Page 15: ...lease follow the steps below to install the driver software Step 1 Insert the companion CD ROM into your CD ROM drive Step 2 The Setup program will be launched automatically if you have the autoplay f...

Page 16: ...following path Start Programs Advantech Device Drivers V2 0a Device Driver Manual 2 3 Hardware Installation Note Make sure you have installed the driver first before you install the card please refer...

Page 17: ...Connect appropriate accessories 37 pin cable wiring terminals etc if necessary to the PCI card Step 8 Replace the cover of your computer chassis Re connect the cables you removed in step 2 Step 9 Plu...

Page 18: ...selecting its device name and press the Remove button Then go through the driver installation process again After your card is properly installed on your system you can now configure your device usin...

Page 19: ...ch Device Drivers Setting Up the Device Step 1 To install the I O device for your card you must first run the Device Manager program by accessing Start Programs Advantech Device Drivers V2 0 Step 2 Yo...

Page 20: ...button to evoke the Existing unconfigured PCI 1780 dialog box such as one shown in Fig 2 5 The Existing unconfigured PCI 1780 dialog box lists all the installed devices on your system Select the devi...

Page 21: ...gins with a device number 000 which is specifically assigned to each card The device number is passed to the driver to specify which device you wish to control After your card is properly installed an...

Page 22: ...18...

Page 23: ...y 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 P...

Page 24: ...g SW1 ID3 ID2 ID1 ID0 Board ID 1 1 1 1 0 1 1 1 0 1 1 1 0 1 2 1 1 0 0 3 1 0 1 1 4 1 0 1 0 5 1 0 0 1 6 1 0 0 0 7 0 1 1 1 8 0 1 1 0 9 0 1 0 1 10 0 1 0 0 11 0 0 1 1 12 0 0 1 0 13 0 0 0 1 14 0 0 0 0 15 Not...

Page 25: ...GND 60 26 OUT3 GND 59 25 OUT2 GND 58 24 OUT1 GND 57 23 OUT0 DO7 56 22 DO6 DO5 55 21 DO4 DO3 54 20 DO2 DO1 53 19 DO0 5V 52 18 5V DI7 51 17 DI6 DI5 50 16 DI4 DI3 49 15 DI2 DI1 48 14 DI0 GND 47 13 EXT_C...

Page 26: ...ground 5V GND Output 5 VDC source FOUT 0 3 GND Output Frequency output channels OUT 0 7 GND Output Counter output channels DO 0 7 GND Output Digital output channels EXT_CLK GND Input External clock i...

Page 27: ...divided by the total period Connect the unknown signal to each counter s Gate Apply a standard clock pulse to each counter Counter 0 counts the up cycle Counter 1 counts the down cycle In PCI 1780 wi...

Page 28: ...calculated by dividing the up period by the total period Connect the unknown signal to each counter s Gate Apply a standard clock to each counter Counter 0 counts the up cycle Counter 1 counts the dow...

Page 29: ...V max Input Voltage High 2 4 V min Interrupt source Channel 0 Output Channels 8 Low 0 5 V max 24 mA sink Output Voltage High 2 4 V min 15 mA source General I O Connector Type 68 pin SCSI II female Dim...

Page 30: ...26...

Page 31: ...PCI BUS Address Decoder Output Buffer Input Buffer DI 0 7 DO 0 7 Interrupt Control Logic 16 bit Counter 0 7 Gate Control Logic Clock Source Select Logic 4 bit Fout 0 7 10 MHz OSC Data Bus D0 D15 Gate...

Page 32: ...28...

Page 33: ...CI 1780 at register level is to understand the function of the card s registers The information in the following sections is provided only for users who would like to do their own low level programmin...

Page 34: ...3 CL2 CL1 CL0 N A 02H R Counter 0 Hold W CH15 CH14 CH13 CH12 CH11 CH10 CH9 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 N A 04H R Counter 0 Command W C2 C1 C0 N A 06H R Counter 1 Mode W CM15 CM14 CM13 CM12 CM1...

Page 35: ...3 CL2 CL1 CL0 N A 12H R Counter 2 Hold W CH15 CH14 CH13 CH12 CH11 CH10 CH9 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 N A 14H R Counter 2 Command W C2 C1 C0 N A 16H R Counter 3 Mode W CM15 CM14 CM13 CM12 CM1...

Page 36: ...4 CL3 CL2 CL1 CL0 N A R Counter 4 Hold W 24H CH15 CH14 CH13 CH12 CH11 CH10 CH9 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 N A R Counter 4 Command W 26H C2 C1 C0 N A W CM15 CM14 CM12 CM11 CM10 CM9 CM8 CM6 CM5...

Page 37: ...3 CL2 CL1 CL0 N A 32H R Counter 6 Hold W CH15 CH14 CH13 CH12 CH11 CH10 CH9 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 N A 34H R Counter 6 Command W C2 C1 C0 N A 36H R Counter 7 Mode W CM15 CM14 CM13 CM12 CM1...

Page 38: ...mmand Enable W CE7 CE6 CE5 CE4 CE3 CE2 CE1 CE0 N A 40H R Interrupt Control W DIO C7 C6 C5 C4 C3 C2 C1 C0 Interrupt Status 42H R Clear Interrupt W DI0 C7 C6 C5 C4 C3 C2 C1 C0 N A 44H R Digital Output W...

Page 39: ...FOE FS2 FS1 FS0 DV3 DV2 DV1 DV0 N A 52H R FOUT 2 Control W FOE FS2 FS1 FS0 DV3 DV2 DV1 DV0 N A 54H R FOUT 3 Control W FOE FS2 FS1 FS0 DV3 DV2 DV1 DV0 N A 56H R FOUT 4 Control W FOE FS2 FS1 FS0 DV3 DV2...

Page 40: ...CM5 CM4 CM3 CM2 CM1 CM0 Counter 4 Mode 20H W CM15 CM14 CM13 CM12 CM11 CM10 CM9 CM8 CM7 CM6 CM5 CM4 CM3 CM2 CM1 CM0 Counter 5 Mode 28H W CM15 CM14 CM13 CM12 CM11 CM10 CM9 CM8 CM7 CM6 CM5 CM4 CM3 CM2 CM...

Page 41: ...control special gate 0 Count on rising edge 1 Count on falling edge CM11 CM8 Count source selection 0000 Internal clock 0001 OUT N 1 0010 CLK N 0011 CLK N 1 0100 FOUT 0 0101 FOUT 1 0110 FOUT 2 0111 FO...

Page 42: ...Gating polarity selection 0 High level for level active rising edge for edge active 1 Low level for level active falling edge for edge active CM15 Gate active edge or level 0 Level active 1 Edge activ...

Page 43: ...oad 12H W CL15 CL14 CL13 CL12 CL11 CL10 CL9 CL8 CL7 CL6 CL5 CL4 CL3 CL2 CL1 CL0 Counter 3 Load 1AH W CL15 CL14 CL13 CL12 CL11 CL10 CL9 CL8 CL7 CL6 CL5 CL4 CL3 CL2 CL1 CL0 Counter 4 Load 22H W CL15 CL1...

Page 44: ...old 14H W CH15 CH14 CH13 CH12 CH11 CH10 CH9 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 Counter 3 Hold 1CH W CH15 CH14 CH13 CH12 CH11 CH10 CH9 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 Counter 4 Hold 24H W CH15 CH1...

Page 45: ...Command 0EH W C2 C1 C0 Counter 2 Command 16H W C2 C1 C0 Counter 3 Command 1EH W C2 C1 C0 Counter 4 Command 26H W C2 C1 C0 Counter 5 Command 2EH W C2 C1 C0 Counter 6 Command 36H W C2 C1 C0 Counter 7 Co...

Page 46: ...e C 6 PCI 1780 Register for command enable Base Addr 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Command enable 40H W CE7 CE6 CE5 CE4 CE3 CE2 CE1 CE0 CEn Counter command enable bit n 0 7 0 Don t select this...

Page 47: ...le interrupt for this counter DI0 Interrupt enable bit 0 Disable interrupt for DI0 1 Enable interrupt for DI0 C 9 Interrupt status BASE 42H Table C 8 PCI 1780 Register for interrupt status Base Addr 1...

Page 48: ...0 Clear interrupt 44H W C 11 Digital output BASE 48H Table C 10 PCI 1780 Register for digital output Base Addr 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Digital output 48H W DO7 DO6 DO5 DO4 DO3 DO2 DO1 D...

Page 49: ...programming Table C 12 PCI 1780 Register for board ID Base Addr 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Board ID 4EH R BD3 BD2 BD1 BD0 BD3 DB0 Board ID BD0 LSB of the Board ID BD3 MSB of the Board ID BD...

Page 50: ...S2 FS1 FS0 DV3 DV2 DV1 DV0 FOUT 4 Control 58H W FOE FS2 FS1 FS0 DV3 DV2 DV1 DV0 FOUT 5 Control 5AH W FOE FS2 FS1 FS0 DV3 DV2 DV1 DV0 FOUT 6 Control 5CH W FOE FS2 FS1 FS0 DV3 DV2 DV1 DV0 FOUT 7 Control...

Page 51: ...FS2 FS0 FOUT source 000 External clock 001 CLK N 010 FOUT N 1 011 10 MHz clock 100 1 MHz clock 101 100 KHz clock 110 10 KHz clock 111 1 KHz clock FOE FOUT output enable 0 Disable 1 Enable 47...

Page 52: ...48...

Page 53: ...own with the WR pulse entering the required ARM command for modes which count repetitively CM4 1 the ARM command is omitted Both a TC output waveform and a TC Toggled output waveform are shown for eac...

Page 54: ...art count on active gate edge and stop count on next TC Start count on active gate edge and stop count on second TC Start count on active gate edge and stop count on inactive gate edge Reload counter...

Page 55: ...for countering source edges when it is issued and ARM command On each TC the counter will reload from the Load register and automatically disarm itself inhibiting further counting Counting will resume...

Page 56: ...count all source edges that occur while the Gate is active and disregard those edges which occur while the Gate is inactive This permits the Gate to turn the count process on and off On each TC the c...

Page 57: ...ge and will continue counting until TC At TC the counter will reload from the Load register and automatically disarm itself Counting will then remain inhibited until a new ARM command and a new Gate e...

Page 58: ...ed the counter will count to TC repetitively On each TC the counter will reload itself from the Load register hence the Load register value determines the time between TCs A square wave rate generator...

Page 59: ...edges that occur while the Gate input is active This feature allows the counting process to be enabled and disabled under hardware control A square wave rate generator may be obtained by specifying th...

Page 60: ...enable counting When the counter reaches TC it will reload itself from the Load register The counter will then stop counting awaiting a new Gate edge Note that unlike Mode C a new ARM command is not...

Page 61: ...Hold register Counting will proceed until the second TC when the counter will reload itself from the Load register and automatically disarm itself inhibiting further counting Counting can be resumed...

Page 62: ...ges that occur while the Gate is inactive This permits the Gate to turn the count process on and off As with Mode G the counter will be reloaded from the Hold register on the first TC and reloaded fro...

Page 63: ...after the triggering Gate edge Countering will then proceed in the same manner as in Mode G After the second TC the counter will disarm itself An ARM command and Gate edge must be issued in this order...

Page 64: ...r will be reloaded from the Load register Counting will continue with the reload source alternating on each TC until a DISARM command is issued to the counter The third TC reloads form the Hold regist...

Page 65: ...occur while the Gate is inactive This permits the Gate to turn the count process on and off As with Mode J the reload source used will alternate on each TC starting with the Hold register on the first...

Page 66: ...e edge the Gate input will be disregarded for the remainder of the count cycle This differs from Mode K where the gate can be modulated throughout the count cycle to stop and start the counter On the...

Page 67: ...ed while an inactive going Gate edge is applied to the counter And the counter will hold the count value until it is issued a LOAD command or REST command SOURCE WR ARM COMMAND COUNT VALUE TC OUTPUT T...

Page 68: ...disarmed while an inactive going Gate edge is applied to the counter And the counter will hold the count value until it is issued a LOAD command or REST command SOURCE COUNT VALUE TC OUTPUT TC TOGGLED...

Page 69: ...nter And the counter will hold the count value until it is issued a LOAD command or REST command SOURCE COUNT VALUE TC OUTPUT TC TOGGLED OUTPUT GATE L 1 L 2 2 0 Mode U Waveforms X L 1 H WR ARM COMMAND...

Page 70: ...is applied to the counter And the counter will hold the count value until it is issued a LOAD command or REST command Mode X Waveforms SOURCE COUNT VALUE TC OUTPUT TC TOGGLED OUTPUT GATE L 1 L 2 2 0...

Reviews: