Home

PCI-800 Series Manual

image

Contents

1. PCI 800 Series PCI PnP Digital I O Boards User s Manual for PCI836A C PCI848A C PCI896A C PCI8192A C Eagle Technology Cape Town South Africa Copyright 2001 www eagle co za PCI 800 Series User Manual Eagle Technology Data Acquisition Digital UO and Counter Boards Data Acquisition and Process Control Eagle Technology 31 35 Hout Street e Cape Town e South Africa Phone 27 21 423 4943 e Fax 27 21 424 4637 Email eagle eagle co za Eagle Technology Copyright 2001 www eagle co za i PCI 800 Series User Manual Eagle Technology Data Acquisition Copyright All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or any means electronic mechanical by photographing recording or otherwise without prior written permission Copyright Eagle Technology South Africa January 2002 Revision 1 3 Information furnished in this manual is believed to be accurate and reliable however no responsibility is assumed for its use or any infringements of patents or other rights of third parties which may result from its use Trademarks and Logos in this manual are the property of their respective owners Product Warranty Eagle Technology South Africa warrants its products from defect in material and workmanship from confirmed date of purchase for a period of one year if the conditions listed below are met The product warranty will cal
2. Eagle Technology Copyright 2001 www eagle co za 25 PCI 800 Series User Manual Eagle Technology Data Acquisition Error Codes EDRE_OK EDRE_FAIL EDRE_BAD_FN EDRE_BAD_SN EDRE_BAD_DEVICE EDRE_BAD_OS EDRE_EVENT_FAILED EDRE EVENT TIMEOUT EDRE INT SET EDRE DA BAD RANGE EDRE AD BAD CHANLIST EDRE BAD FREQUECY EDRE BAD BUFFER SIZE EDRE BAD PORT EDRE BAD PARAMETER EDRE BUSY EDRE IO FAIL EDRE BAD ADGAIN EDRE BAD QUERY EDRE BAD CHAN EDRE BAD VALUE EDRE BAD CT EDRE BAD CHANLIST EDRE BAD CONFIG EDRE BAD MODE EDRE HW ERROR EDRE HW BUSY EDRE BAD BUFFER EDRE REG ERROR EDRE OUT RES EDRE_IO_ PENDING 30 i Description i Function successfully Function call failed Invalid function call Invalid serial number Invalid device Function not supported by operating system Wait on event failed Event timed out Interrupt in use DAC value out of range Channel list size out of range Frequency out of range Data passed by buffer incorrectly sized Port value out of range Invalid parameter value specified i System busy i IO call failed i ADC gain out of range Query value not supported i Channel number out of range Configuration value specified out of range Counter timer channel out of range Channel list invalid Configuration invalid Mode not valid Hardware error occurred Hardware busy Buffer invalid Registry error occurred i Out of resources i Wai
3. Eagle Technology Copyright 2001 www eagle co za 27 PCI 800 Series User Manual Eagle Technology Data Acquisition Mode 1 Digital one shot Output operation The output is high after configuration The output is low until the counter becomes 0 The count value is loaded after a gate trigger Once it is high it stays high until one clock pulse after a gate trigger Gate function A positive edge reloads the counter The gate does no effect the output Count value load timing After the configuration and count value is written the output will go low on a negative clock pulse succeeding a gate trigger This will last for N clocks Count value writing during counting This does not affect the output until a gate pulse triggers it Mode 1 CLK PANA Gy ae ee a g WR n 4 L__ i A e TE ar A ee L OUT l 4 l ove d 4 a o gt Foe RE ER DUT n 4 A Figure C 2 Counter Timer Mode 1 Mode 2 Rate Generator and Real Time Clock Output operation The output is high after configuration The output is high until the counter becomes 1 The output goes low for one clock and then high again The count value is reloaded again Gate function High enables counting low disables counting If the gate is set low when the output is low the output is set high immediately At the following edge succeeding a high gate pulse the count value is reloaded again This can be used for synchronization Count val
4. 3 Counter 3 does not have a gate For counters 0 2 the gate and clock source are selected via jumpers on the PCI800 board if supported API CALL Long EDRE CTSoftGate ulng Sn ulng Ct ulng Gate The serial number counter number and gate are needed to control a counter s gate A return code will indicate if any errors occurred ACTIVEX CALL Long EDRECTX SoftGate ulng Ct ulng Gate The counter number and mode is needed to control a counter s gate A return code will indicate if any errors occurred These values are acceptable as a gate source i Description Gate disabled i Gate enabled Table 4 6 Gate Configuration Eagle Technology Copyright 2001 www eagle co za 18 PCI 800 Series User Manual Eagle Technology Data Acquisition Programming Interrupts The PCI800 can generate interrupts from different sources which include digital inputs and counters The interrupt sub system is totally programmable and includes functions to configure enable and disable interrupts WARNING Be careful when programming the interrupt sub system because it is easy to generate interrupts that is faster than what Windows can service Don t try and generate interrupt faster than 10KHz This will not work Remember this is 10KHZ in total and not per source The PCI800 interrupt service routine will stop servicing interrupts if at any stage it is still busy with a previous interrupt and the next one is generated Configuring the
5. 41 PA3 42 DGND 43 PA2 44 DGND 45 DA 46 DGND 47 PAO 48 DGND 49 5V_FUSED 50 DGND Table 3 5 PCI848 896 8192 IDC50 M Connector PCI848 896 8192 C Version DB25 M External The table below shows the pin assignments for the DB25 M connector found on the PCI848C PCI896C and PCI192C This is also compatible with the PC14B counter timer connector 12V_FUSED 12V_FUSED 0O0YNDIUDSWN o 5V_FUSED NC EXT_TRIG_RET EXT_TRIG FREQ_IN FREQ_OUT Table 3 6 PCI848 896 8192C External Connector DB25 M Signal Definitions This sections deal with all the signals abbreviations Description PAO 7 8255 PPI Port A PBO 7 i 8255 PPI Port B PBO 7 8255 PPI Port C EXT_TRIG External Trigger to Opto Isolator EXT_TRIG_RET External Trigger Return from Opto Isolator Can be i jumpered to digital ground DGND Digital ground 5V_FUSED i Fused 5V power supply line PCI848C PCI896C PCI8192C MAX 200mA PCI836 MAX 1 5A 12V_FUSED i Fused 12V power supply line MAX 200mA 12V_FUSED i Fused 12V power supply line MAX 200mA CLKO 2 External clock input Eagle Technology Copyright 2001 www eagle co za 11 PCI 800 Series User Manual Eagle Technology Data Acquisition GATE0 2 External gates OUTO 2 i Counter outputs FREQ_OUT Frequency output from frequency scaler FREQ_IN External frequency input NC Not Connected Table 3 7 Signal definitions Pin Descriptions Digital Inputs Outpu
6. Interrupt sub system A single call is necessary to configure the interrupt sub system ACTIVEX CALL Long EDREIntX IntConfigure long Source long Mode long Type Parameter i Type Description Source long i Source PCI836C PCI848C PCI896C PCI8192C 0 Port C Line 0 PPI 0 Port A Line 0 1 Port C Line 4 PPI O Port A Line 1 2 Opto Isolator PPI 0 Port A Line 2 3 NONE PPI 0 Port A Line 3 4 NONE PPI O Port A Line 4 5 NONE PPI 0 Port A Line 5 6 NONE PPI 0 Port A Line 6 7 NONE PPI 0 Port A Line 7 8 NONE Counter 0 Output 9 NONE Counter 1 Output Mode i long Disable or Enable a source i 0 Disable i i 1 Enable Type long Set the type of trigger for the interrupt No Description 0 Rising Edge NN Falling Edge RETURN i Long This parameter contains the error code return If 0 then no i error occurred Table 4 7 EDREIntX Configure Parameters Enabling Interrupts A single call is necessary to enable the interrupt sub system This will also enable the global interrupt on the PCI800 and connect it to the PCI Bus ACTIVEX CALL Long EDREIntX Enable A returned error code will contain the status of the call Disabling Interrupts A single call is necessary to disable the interrupt sub system ACTIVEX CALL Long EDREIntX Disable A returned error code will contain the status of the call Interrupt Event If interrupts are enabled an event will occ
7. is necessary to configure a port status Code 407 The query parameter is a 16 bits value It consists of the port in the upper 8 bits and port status in the lower 8 bits API CALL Long EDRE_Query ulng Sn ulng Code ulng Param The serial number Query code and Parameter are needed to configure port A return code will indicate if any errors occurred ACTIVEX CALL Long EDRECTX Query ulng Code ulng Param The Query code and Parameter is needed to configure port A return code will indicate if any errors occurred Upper 8 bits Lower 8 bits Port number OUT IN INANDOUT Only port C AUTO Table 4 9 Parameter Setup Eagle Technology Copyright 2001 www eagle co za 21 PCI 800 Series User Manual Eagle Technology Data Acquisition A Specifications Digital Input Output Characteristics Number of Digital Channels Device i i Opto High Channels Channels Current i i i Channels PCI 836A PCI 836C PCI 848A PCI 848C PCI 896A PCI 896C PCI 8192A PCI 8192C SOO gode Number of Grouped Channels Device i i Opto High i Channels Current i i Ports PCI 836A PCI 836C PCI 848A PCI 848C PCI 896A PCI 896C PCI 8192A PCI 8192C DOSSO OO A OH OO OOOOOOA OH Compatibility TTL D C Characteristics PPI 8255 Compatible Ports Input Low Voltage 0 5V Input High Voltage i 2 0V Output High Voltage i 2 4V Output Low Voltage Output Current D C Characteristi
8. 19 i 8 bits i PortB 20 i 8 bits i PortC 21 i 8 bits Port A 22 8 bits PortB 23 8 bits PortC ONE 24 i 1 bit i Opto isolated external trigger i line OX NDODABAWN O A Ww ZINNNDIDGDIIUISDLSIAIGWWNNN DD N wo Table 4 1 Port Assignments Eagle Technology Copyright 2001 www eagle co za 15 PCI 800 Series User Manual Eagle Technology Data Acquisition Counters The counter sub system is supported by functions to Write Read Configure and controlling the gate There are 3 counters and 1 frequency generator Counter timers are only supported by the PCI848C PCI896C and PCI192C The table below shows the relation of the counters and their software assigned numbers The figure below shows the architecture of the counter timer subsystem Counter Assigned Number Description i i Counter 0 i Counter 1 i Counter 2 Frequency Scaler Table 4 2 Counter Assignment PCI848 PC1896 PC18192 Counter Timer Architecture Frequency Generator 8 MHz Oscillator External Clock External Clock Pin O External Clock Pin 4 External Clock Pin 2 Counter 0 Software Gate O Software Gate 1 Software Gate 2 Counter 1 D E n n E e 3 m pe 3 o m D o pog Jadwnp anog pola Counter 2 External Gate Pin 0 External Gate Pin 1 External Gate Pin2 Figure 4 2 Counter Timer Architecture Writing the initial counter value A single call is n
9. 28 Mode 2 Rate Generator and Real Time Clock 28 Gate function 28 Count value load timing 28 Count value writing during counting 28 Eagle Technology Copyright 2001 www eagle co za iv PCI 800 Series User Manual Eagle Technology Data Acquisition Mode 3 Square Wave Generator Gate function Count value load timing Count value writing during counting Even number counting Odd number counting Mode 4 Software Trigger Strobe Gate function Count value load timing Count value writing during counting Mode 5 Hardware Trigger Strobe Gate function Count value load timing Count value writing during counting D LAYOUT DIAGRAM E ORDERING INFORMATION Eagle Technology Copyright 2001 www eagle co za PCI 800 Series User Manual Eagle Technology Data Acquisition Table of Figures Figure 4 1 EDR Enhanced Desi9N zeegt ADAN ENEE ENEE EEN dE cians 13 Figure 4 2 Counter Timer Architecture cccceeeseeeceeeeeneeeeeenneeeeeecaeeeeeeeaeeeeesnaeeeeesaeeeseeiaeeeentnaeeeeenaes 16 Figure C 1 Counter Timer Mode 0 27 Figure C 2 Counter Timer Moda aaa ANA NA NANANA NG maan 28 Figure C 3 Counter Timer Mode 2 ua AA ANABU Naman 29 Figure G 4 Counter Timer M0 003 anan NAA GANGBANG aan 30 Figure C 5 Counter Timer Mode 4 ci 30 Figure C 6 Counter Timer Modo Sorraia An ia NAL AA BA 31 Eagle Technology Copyright 2001 www eagle co za vi PCI 800 Series User Manual Eagle Technology Data Acquisition Ta
10. CI896A C PCI8192A C 350 mA 400 mA 450 mA 500 mA 1 5A Fused None None None 200 mA None None None None 200 mA 200 mA 200 mA None 200 mA 200 mA 200 mA 200 mA 200 mA 200 mA 200 mA 200 mA 200 mA 200 mA 200 mA 122 mm x 82 mm 161 mm x 105 mm Eagle Technology Copyright 2001 www eagle co za 23 PCI 800 Series User Manual PCI896A C PCI8192A C Connectors PCI836A PCI836C PCI848A PCI848C PCI896A PCI896C PCI8192A PCI8192C Eagle Technology Data Acquisition 208 mm x 105 mm 302 mm 105 mm DB37 M External DB37 M External amp IDC20 M Internal 2 x IDC50 M Internal Internal Internal amp DB25 M External Internal amp DB25 M External Eagle Technology Copyright 2001 www eagle co za 24 PCI 800 Series User Manual Eagle Technology Data Acquisition B Configuration Constants Query Codes APIMAJOR APIMINOR APIBUILD APIOS APINUMDEV BRDTYPE BRDREV BRDYEAR BRDMONTH BRDDAY BRDSERIALNO DRVMAJOR DRVMINOR DRVBUILD ADNUMCHAN ADNUMSH ADMAXFREQ ADBUSY ADFIFOSIZE ADFIFOOVER ADBUFFSIZE ADBUFFOVER ADBUFFALLOC ADUNREAD ADEXTCLK ADEXTTRIG ADBURST ADRANGE DANUMCHAN DAMAXFREQ DABUSY DAFIFOSZ CTNUM CTBUSY DIONUMPORT DIOQRYPORT DIOPORTWIDTH DIOCFG INTNUMSRC INTSTATUS INTBUSCONNECT INTISAVAILABLE INTNUMTRIG Description Query EDRE API major version number Query EDRE API minor version number Query EDRE API build version number i Quer
11. ET PB4 12V_FUSED PBS NC PB6 DGND PB7 Table 3 2 PCI836A C External Connector DB37 M Pi 1 2 3 4 5 6 7 8 9 PCI836C IDC20 M Internal The table below shows the pin assignments for the IDC20 M connector found on the PCI836C This is also compatible with the PCI36C DOO DO DO2 DO3 DO4 DOS DO6 DO7 DO8 DO9 DO10 DO11 DO12 DO13 DO14 DO15 DGND DGND 5V_FUSED 5V_FUSED Table 3 3 PCI836A C Internal Connector IDC20 M PC1836C DB25 M External via Cable The table below shows the pin assignments for the DB25 M connector found on the PCI836C internal ribbon cable DOO DO1 DO2 DO3 DO4 DO5 DO6 DO7 DO8 DO9 DO10 DO11 DO12 DO13 DO14 DO15 DGND DGND 5V_FUSED 5V_FUSED NC NC NC NC NC BEER ENEE o Table 3 4 PCI836A C External Connector via Internal Cable DB25 M Eagle Technology Copyright 2001 www eagle co za 10 PCI 800 Series User Manual Eagle Technology Data Acquisition PC1848 896 192 IDC50 M Internal The table below shows the pin assignments for the IDC M connector found on the PCI848 896 9192A and C This is also compatible with the ISA PC192A P 1 PC7 2 DGND 3 PC6 4 DGND 5 PCS 6 DGND 7 PC4 8 DGND 9 DCH 10 DGND 11 PC2 12 DGND 13 PC1 14 DGND 15 PCO 16 DGND 17 PB7 18 DGND 19 PB6 20 DGND 21 PBS 22 DGND 23 PB4 24 DGND 25 PB3 26 DGND 27 PB2 28 DGND 29 PB1 30 DGND 31 PBO 32 DGND 33 PAT 34 DGND 35 PAG 36 DGND 37 PAS 38 DGND 39 PA4 40 DGND
12. Eagle Technology Data Acquisition 8 bits i Port A 8 bits i Port B i 8 bits i Port C 8 bits PortA 8 bits Port B 8 bits PortC aa OON OD sao Fa i 2 2C 2 3 3 3 8 bits i Port A 8 bits PortB 8 bits Port C 8 bits Port A 8 bits i Port B 8 bits i Port C 8 bits i Port A 8 bits i PortB 8 bits PortC 8 bits Port A 8 bits PortB 8 bits PortC i 1 bit i Opto isolated external trigger i i line OO JO Om P Go A O dai N so ONE N D ZWWWNNN ki 4 4000 8 bits Port A 8 bits i PortB 8 bits i Port C 8 bits PortA 8 bits i Port B 8 bits Port C 8 bits Port A 8 bits PortB 8 bits Port C i i 8 bits i Port A i 10 8 bits i Port B 8 bits PortC 8 bits Port A 13 8 bits PortB 14 8 bits Port C 15 8 bits Port A 16 8 bits PortB i 17 8 bits i PortC 8 bits Port A 19 8 bits PortB 20 8 bits Port C 21 8 bits PortA 22 8 bits PortB 23 8 bits Port C OO JO Om P Go HAO A gt NNNa 22 TAOAUBABABAYDWWNNN AAA 000 CO N 8 bits Port A 8 bits PortB 8 bits Port C 8 bits PortA i 8 bits PortB 8 bits Port C i 8 bits i Port A i 8 bits i PortB 8 bits PortC i 8 bits i Port A i 10 i 8 bits i PortB 11 8 bits PortC i 12 8 bits i PortA 8 bits Port B 14 8 bits Port C 15 8 bits i Port A i 16 i 8 bits i PortB 8 bits Port C 18 i 8 bits i Port A i
13. External Signal Definitions Pin Descriptions Digital Inputs Outputs PA0 7 PB0 7 PC0 7 External Trigger System EXT TRIG EXT TRIG RET FREQ IN and FREQ OUT CLK0 2 GATE0 2 OUTO 2 5V Power Pin 5V 12V Power Pin 12V 12V Power Pin 12V Digital Ground DGND 4 PROGRAMMING GUIDE EDR Enhanced API Eagle Technology Data Acquisition La GO E _RA Eagle Technology Copyright 2001 www eagle co za PCI 800 Series User Manual Eagle Technology Data Acquisition Digital Inputs Outputs 14 Reading the Digital Inputs 14 Writing to the Digital Outputs 14 Counters 16 Writing the initial counter value 16 Reading the counter value 17 Configuring a counter 17 Controlling the counter gate 18 Programming Interrupts 19 Configuring the Interrupt sub system 19 Enabling Interrupts 19 Disabling Interrupts 19 Interrupt Event 19 A SPECIFICATIONS 22 Digital Input Output Characteristics 22 Opto Isolator C Versions 23 Counter Timer Characteristics C Versions 23 Bus Interface 23 Power Requirements 23 Dimensions 23 Connectors 24 B CONFIGURATION CONSTANTS 25 Query Codes 25 Error Codes 26 Digital UO Codes 26 C COUNTER MODES 27 Mode 0 Event counter 27 Gate function 27 Count value load timing 27 Count value writing during counting 27 Count value writing when the gate signal is low 27 Mode 1 Digital one shot 28 Gate function 28 Count value load timing 28 Count value writing during counting
14. L between the control application and the hardware The EDRE API makes it possible to write an application that can be used on all hardware with common sub systems The PCI800 series can also be programmed at register level but it is not recommended A detailed knowledge of the PCI800 series is needed and some knowledge about programming Plug and Play PCI devices We recommend that you only make use of the software provided by Eagle Technology EDR Enhanced API The EDR Enhanced SDK comes with both ActiveX controls and a Windows DLL API Examples are provided in many different languages and serve as tutorials EDRE is also supplied with a software manual and user s guide The EDRE API hides the complexity of the hardware and makes it really easy to program the PCI800 board It has got functions for each basic sub system and is real easy to learn Figure 4 1 EDR Enhanced Design Eagle Technology Copyright 2001 www eagle co za 13 PCI 800 Series User Manual Eagle Technology Data Acquisition Digital Inputs Outputs Depending on the version that you have the PCI800 device can have up to 192 digital lines Please refer to your particular version for specific details Reading the Digital Inputs A single call is necessary to read a digital I O port API CALL Long EDRE DioRead ulng Sn ulng Port ulng Value The serial number port and a pointer to variable to hold the result must be passed by the calling function A re
15. ble of Tables Table 1 1 PCI8Q0 VersiOns a naasa GA An Mad e 1 Table 2 1 Operating System Support 2 Table 3 1 PCI800 Connectors Laan aa AG AN ANNA AARAL 9 Table 3 2 PCI836A C External Connector DB37 MI 10 Table 3 3 PCI836A C Internal Connector IDC20 MI 10 Table 3 4 PCI836A C External Connector via Internal Cable DB25 IM 10 Table 3 5 PCI848 896 8192 IDC50 M Connector i 11 Table 3 6 PCI848 896 8192C External Connector DB25 M 11 Table or Sianal TeMi serii maaga Na hahahaa Gana cola ali liano 12 Table 4 lPort eelere een Ei ana a kana ga ea NGALAN ANG 15 Ile e lU 16 T ble de Counter Resolution te aa a Setzen ARN NAG Diane 16 Table 4 4 Counter Resolution zeen a BN tated ached evade NAGHANDA AIN AG AA ANG 17 Table 4 5 Counter Configuration 15 iraniana iaia ail ca 18 Table 4 6 Gate Configurationi i s ira AN am bA an 18 Table 4 EDREIntX Configure Parameters a AN ANAN GA iaia ati 19 Table 4 8 Event SOURCE nana lees Un kakanan dhan ka ege gege Mpeuaeduees 20 Table 4 9 Parameter Setup apakan tege baa Na AN kaan aha AG a edel 21 Table E 1 Qrdering Inrormato Nan a a a Ahh aa alla 33 Eagle Technology Copyright 2001 www eagle co za vii PCI 800 Series User Manual Eagle Technology Data Acquisition 1 Introduction The PCI800 series are 32 bit PCI bus architecture digital input output and counter timer data acquisition boards They support 36 to 192 digital input out
16. cs High Current Ports PCI 836C Output High Voltage Output Low Voltage Output Current Eagle Technology Copyright 2001 www eagle co za 22 PCI 800 Series User Manual Eagle Technology Data Acquisition Opto Isolator C Versions Input Characteristics Characteristic Description Number of lines 1 Compatibility TTL ANALOG Input High Voltage LOGIC 1 3 1V to 28V Input Low Voltage LOGICO OV to 3V On Current i 10 mA l Max forward current i 50 mA Counter Timer Characteristics C Versions Number of Channels Resolution Compatibility Clock Source Gate Source Interrupt Source VO Characteristics Bus Interface Bus Type Controller Voltage Power Requirements Specification 5V Internal Typical 5V External DB37 5V Internal IDC20 HC PORT 5V External IDC50 5V External DB25 12V External DB25 amp DB37 12V External DB25 amp DB37 Dimensions PC1836A C PC1848A C 3 independent counters 16 bits 82C54 TTL Jumper selectable 1 Scaled internal up to 4 MHz 2 External Jumper selectable 1 Software Controlled 2 External Counter 0 1 on Terminal Count TC Input Low Voltage Input High Voltage Low Level Input Current High Level Input Current Output High Voltage Output Low Voltage Low Level Output Current High Level Output Current IBM PCI Compatible Revision 2 2 Compliant Slave 3 3V or 5V PCI836A C PCI848A C P
17. device Eagle Technology Copyright 2001 www eagle co za 8 PCI 800 Series User Manual Eagle Technology Data Acquisition 3 Interconnections The PCI800 series has connectors for digital UO and counter timers The PCI800 range of boards are compatible with older board like the PC 1 36C and PC192A The PCI800 boards make use of DB37 IDC20 IDC50 and DB25 connectors The PCI836 is compatible with the older PC36B C and PCI36C The PCI848 PC896 and PC8192 are compatible with digital I O connectors of the PC192A and the counter timer connector on the PC14B External Connector and Accessories Depending on the version of PCI800 board different connectors are fitted of which some are the same Use the table below as reference for each type of board Board Type DB37 M IDC20 IDC50 DB25 M External Internal Internal External PCI836A PCI836C PCI848A PCI848C PCI896A PCI896C PCI8192A PCI8192C Table 3 1 PCI800 Connectors Eagle Technology Copyright 2001 www eagle co za 9 PCI 800 Series User Manual Eagle Technology Data Acquisition Pin Assignments PCI836A C DB37 M External The table below shows the pin assignments for the DB37 M connector found on the PCI836A and C This is also compatible with the ISA PC36C and PCI36C 12V_FUSED DCH 5V_FUSED PC2 DGND PC1 PAO PCO DA PC4 PA2 PCS PA3 PC6 PA4 PC7 PAS DGND PA6 DGND PA7 DGND PBO DGND PB1 DGND PB2 EXT_TRIG PB3 EXT_TRIG_R
18. e Mode 5 DE a i KEE CA ee ee 4 3 2 1 0 OUT n 4 Re CAE eee A ee eg es O 133 14 3 7 1 OUT ng Figure C 6 Counter Timer Mode 5 Eagle Technology Copyright 2001 www eagle co za 31 PCI 800 Series User Manual Eagle Technology Data Acquisition D Layout Diagram Eagle Technology Copyright 2001 www eagle co za 32 PCI 800 Series User Manual Eagle Technology Data Acquisition E Ordering Information For ordering information please contact Eagle Technology directly or visit our website www eagledag com They can also be emailed at eagle eagle co za Description PCI 836A i 24 channel digital UO card PCI 836C 40 channel digital UO card PCI 848A 48 channel digital I O card PCI 848C 48 channel digital I O card and 3 counters PCI 896A i 96 channel digital I O card PCI 896C i 96 channel digital I O card and 3 counters PCI 8192A i 192 channel digital I O card PCI 8192C 192 channel digital I O card and 3 counters Table E 1 Ordering Information Eagle Technology Copyright 2001 www eagle co za 33
19. ecessary to write a counter s initial load value API CALL Long EDRE CTWrite ulng Sn ulng Ct ulng Value The serial number counter number and a value must be passed by the calling function A return code will indicate if any errors occurred ACTIVEX CALL Long EDRECTX Write long Port ulng Value The counter number and a value must be passed by the calling function A return code will indicate if any errors occurred Counter Assigned Number i Resolution 0 Table 4 3 Counter Resolution Eagle Technology Copyright 2001 www eagle co za 16 PCI 800 Series User Manual Eagle Technology Data Acquisition Reading the counter value A single call is necessary to read a counter API CALL Long EDRE CTRead ulng Sn ulng Ct pulng Value The serial number counter number and a reference parameter must be passed by the calling function A return code will indicate if any errors occurred ACTIVEX CALL Long EDRECTX Read long Port The counter number must be passed by the calling function If the return code is negative it means an error occurred otherwise it will be the value read from the counter Counter i Assigned Number Resolution 16 bits 16 bits 16 bits i Not supported Table 4 4 Counter Resolution Configuring a counter A single call is necessary to configure a counter API CALL Long EDRE_CTConfig ulng Sn ulng Ct ulng Mode ulng Type ulng CIkSrc ulng GateSrc The serial number count
20. er number mode type clock source and gate source is needed to specify a counter s configuration A return code will indicate if any errors occurred ACTIVEX CALL Long EDRECTX Configure long ct long mode long type ulng source ulng gate The counter number mode type clock source and gate source is needed to specify a counter s configuration A return code will indicate if any errors occurred Only the counter mode clock source and type parameters are used by the PCI800 The table below shows the options for each parameter Parameter Description Serial Number i Counter Number i 0 Counter 1 i 1 Counter 2 i 2 Counter 3 i 3 Frequency Scaler Counter Mode 0 82c54 Mode See 82c54 datasheet 1 82c54 Mode 2 82c54 Mode 3 0 Pulse Mode Pulse on each terminal count 1 Toggle Mode Change state on each terminal count Counter Type 0 2 0 Binary Counting 16 bits 1 Binary Coded Decimal BCD 4 decades 3 Not supported Source i O Internal BMHz 1 External External connector Eagle Technology Copyright 2001 www eagle co za 17 PCI 800 Series User Manual Eagle Technology Data Acquisition i Only supported by the frequency scaler Gate i not used Table 4 5 Counter Configuration Controlling the counter gate A single call is necessary to control a counter s gate This function call is invalid for the frequency generator counter
21. g Systems i Driver Type PCI836A C Revision 1 Windows NT 2000 98 ME NT Sys WDM PnP PCI848A C i Revision 1 i Windows NT 2000 98 ME i NT Sys WDM PnP PCI896A C i Revision 1 Windows NT 2000 98 ME i NT Sys WDM PnP PCI8192A C Revision 1 Windows NT 2000 98 ME NT Sys WDM PnP Table 2 1 Operating System Support Eagle Technology Copyright 2001 www eagle co za 2 PCI 800 Series User Manual Eagle Technology Data Acquisition Hardware Installation This section will describe how to install your PCI board into your computer e Switch off the computer and disconnect from power socket Failure to disconnect all power cables can result in hazardous conditions as there may be dangerous voltage levels present in externally connected cables Remove the cover of the PC Choose any open PCI slot and insert PCI board Insert bracket screw and ensure that the board sits firmly in the PCI socket Replace the cover of the PC Reconnect all power cables and switch the power on The hardware installation is now completed Eagle Technology Copyright 2001 www eagle co za PCI 800 Series User Manual Eagle Technology Data Acquisition Software Installation Windows 98 2000 ME Installing the Windows 98 2000 device driver is a very straightforward task Because it is plug and play Windows will auto detect the PCI board as soon as it is installed No setup is necessary You simply have to supply Windows with a device d
22. if no new value is written Otherwise the new value will be used on the next trigger or cycle Even number counting Output is initially high The count value is loaded and is decremented by 2 by consecutive clock pulses When the counter reaches 2 the output is set to low The count value is then reloaded and decremented by 2 per clock When it reaches 2 the count value is reloaded and the output set to high again The process then repeats Odd number counting The output is initially high The initial value minus 1 is loaded The value is then decremented by 2 consecutive clock pulses When the counter becomes 0 the output goes low The initial value minus 1 is then loaded again The value is then decremented by 2 by consecutive clock pulses When the counter is 2 the output goes high again The initial value minus 1 is loaded again The operation repeats itself again Eagle Technology Copyright 2001 www eagle co za 29 PCI 800 Series User Manual Eagle Technology Data Acquisition WR a Rg Rabe el me ge eM me WR n 4 n 3 K GT Ges RI N RIS E E E GE ES OUT GATE H a a EE a GATE ORs met ae D WK ee We ee Oe eur ES ST T ease Ee Figure C 4 Counter Timer Mode 3 Mode 4 Software Trigger Strobe Output operation The output is high after configuration When the counter becomes 0 the output goes low for 1 clock period and then high again The count sequence starts after the count value is written Gate f
23. l the Eagle Technology Data Acquisition Device short as ETDAQD e The warranty does not apply to an ETDAQD that has been previously repaired altered extended by any other company or individual outside the premises of Eagle Technology e That a qualified person configure and install the ETDAQD and damages caused to a device during installation shall make the warranty void and null e The warranty will not apply to conditions where the ETDAQD has been operated in a manner exceeding its specifications Eagle Technology South Africa does not take responsibility or liability of consequential damages project delays damaging of equipment or capital loss as a result of its products Eagle Technology South Africa holds the option and final decision to repair or replace any ETDAQD Proof of purchase must be supplied when requesting a repair Eagle Technology Copyright 2001 www eagle co za ii PCI 800 Series User Manual TABLE OF CONTENTS 1 INTRODUCTION Features Applications Key Specifications Software Support Contact Details 2 INSTALLATION Package Operating System Support Hardware Installation Software Installation Windows 98 2000 ME Post installation Windows NT 3 INTERCONNECTIONS External Connector and Accessories Pin Assignments PCI836A C DB37 M External PCI836C IDC20 M Internal PCI836C DB25 M External via Cable PCI848 896 192 IDC50 M Internal PCI848 896 8192 C Version DB25 M
24. list all installed hardware Verify your board s properties on this dialog See picture below EDR Enhanced Software Development Kit Eagle Technology Copyright c 1994 2000 Cape Town South Africa http www eagle co za email eagle eagle co za MEDRE API Information EDRE API Version bi A4 Opering System Windows 2000 WDM Installed Boards r Board Information PCI703 16Ch A D 2Ch D A 100000001 Board Type 81 Driver Version fi RIESI Manufactured On 5 6 2001 Revision fi Now the first part of your installation has been completed and ready to install the EDR Enhanced Software Development Kit e Run edreapi exe found on the Eagle CD Rom and follow the on screen instructions Eagle Technology Copyright 2001 www eagle co za 7 PCI 800 Series User Manual Eagle Technology Data Acquisition Windows NT The Windows NT driver supports both Windows NT4 0 and Windows 2000 It does not require any special setup To install the Windows NT drivers simply run edrewinnt exe on the Eagle CD Rom This will automatically install the device drivers Restart your computer when done Open the EagleDAQ folder in the control panel to check if your installation was successful If you are running on Windows 2000 and it detects a new device simply install a default driver or so called placeholder This will disable the device in the plug and play manager The NT driver will take control of the
25. lly programmable interrupt support Software Support The PCI800 series is supported by EDR Enhanced and comes with an extensive range of examples The software will help you to get your hardware going very quickly It also makes it easy to develop complicated control applications All operating system drivers utility and test software are supplied on the EDR Enhanced CD Rom The latest drivers can also be downloaded from the Eagle Technology website For further support information see the Contact Details section Contact Details Below are the contact details of Eagle Technology Eagle Technology PO Box 4376 Cape Town 8000 South Africa Telephone 27 021 423 4943 Fax 27 021 424 4637 E Mail eagle eagle co za Website http www eagle co za Eagle Technology Copyright 2001 www eagle co za 1 PCI 800 Series User Manual Eagle Technology Data Acquisition 2 Installation This chapter describes how to install and configure the PCI800 for the first time Minimal configuration is necessary almost all settings are done through software The PCI BIOS or operating system will take care of all resource assignments Package PCI800 package will contain the following e PCI800 PCI board e Eagle Technology Software CD Rom Operating System Support The PCI800 series support the Windows NT and Windows Driver Models WDM driver types The operating systems are listed in the table below Board Type Revision Operatin
26. nd New Hardware Wizard Completing the Found New Hardware Wizard Q Pci703 A D Board Windows has finished installing the software for this device To close this wizard click Finish lt Back Cancel When done you might have to restart your computer Post installation When done with the driver installation the device manager can be open to make sure the installation was a success e First make sure that the driver is working properly by opening the Device Manager e Check under the Eagle Data Acquisition list if your board is listed and working properly See picture below Eagle Technology Copyright 2001 www eagle co za 6 PCI 800 Series User Manual Eagle Technology Data Acquisition BER Action View le gt gi a SL Computer amp Disk drives Display adapters 23 DYD CD ROM drives Eagle Data Acquisition XQ Pci703 A D Board 3 Floppy disk controllers D Floppy disk drives 3 IDE ATAJATAPI controllers 3 Keyboards TA Mice and other pointing devices 3 Monitors 89 Network adapters d Ports COM amp LPT g Sound video and game controllers m System devices FA Universal Serial Bus controllers ie Pk Kg ng pg A A a e Clearly you can see that the PCI device is listed and working properly e Further open the control panel and then the EagleDAQ folder This dialog should
27. ocations that you specify To start the search click Next If you are searching on a floppy disk or CD ROM drive insert the floppy disk or CD before clicking Next Optional search locations TT Floppy disk drives TT CD ROM drives IV Specify a location TT Microsoft Windows Update Make sure only Specify a location is selected and select next Look in Gi inf e ec 5 Pci703 inf History a Desktop My Documents uga My Computer My Network P File name Pci703 int e Files of type Setup Information inf z Cancel Select the browse button and search for the PC1800 inf file on the Eagle CD Rom Found New Hardware wizard IT NRE Insert the manufacturer s installation disk into the drive EJ selected and then click OK x Copy manufacturer s files from The driver is normally located in the lt CDROM gt EDRE DRIVERS WDM PCI800 directory Eagle Technology Copyright 2001 www eagle co za 5 PCI 800 Series User Manual Eagle Technology Data Acquisition Select next when found Found New Hardware Wizard Driver Files Search Results The wizard has finished searching for driver files for your hardware device Gj The wizard found a driver for the following device gt PCI Device Windows found a driver for this device To install the driver Windows found click Next d infpei 03 mt lt Back Cancel Select next again Fou
28. put lines and 3 counters They come in 4 basic models PCI836 PCI848 PCI896 and PC18192 Features The PCI800 series has some very unique features and are listed below 32 bit PCI bus Revision 2 2 compliant at 33MHz PCI Bus 3 3V compatible Intel 8255 compatible digital I O ports Intel 8254 compatible counter timer Opto isolated input Programmable interrupts Feature i PCI 836 PCI 848 PCI 896 Number of digital channels A Version Number of digital channels C Version Number of counters A Version Number of counters C Version Number of 8255 compatible ports 8 bit Number of high current ports 16 bit C Version Number of opto isolated inputs A Version Number of opto isolated inputs C Version Number of interrupt sources A Version Number of interrupt sources C Version Table 1 1 PC1800 Versions PCI 8192 Eagle Technology Copyright 2001 www eagle co za PCI 800 Series User Manual Eagle Technology Data Acquisition Applications The PCI800 series can be used in the following applications Automation test equipment TTL compatible status monitoring Plant Factory process control Pulse counting Frequency measurement Frequency generation Controlling and monitoring of any TTL compatible equipment Key Specifications 3 6 12 or 24 x 8 bit ports 3 x 16 bit counters Fully programmable digital input output system Fully programmable counter timer system Fu
29. river Wait until Windows detects the new hardware Found New Hardware Wizard Welcome to the Found New RS Hardware Wizard SI This wizard helps you install a device driver for a hardware device To continue click Next lt Back Cancel Select Next Found New Hardware Wizard Install Hardware Device Drivers st 4 device driver is a software program that enables a hardware device to work with Sy an operating system This wizard will complete the installation for this device ay PCI Device A device driver is a software program that makes a hardware device work Windows needs driver files for your new device To locate driver files and complete the installation click Next What do you want the wizard to do Search for a suitable driver for my device recommended Display a list of the known drivers for this device so that can choose a specific driver lt Back Cancel Eagle Technology Copyright 2001 www eagle co za 4 PCI 800 Series User Manual Eagle Technology Data Acquisition Select Search for a suitable driver for my device and select next Found New Hardware Wizard a Locate Driver Files st Where do you want Windows to search for driver files SY Search for driver files for the following hardware device o PCI Device The wizard searches for suitable drivers in its driver database on your computer and in any of the following optional search l
30. ting on I O completion Digital I O Codes DIOOUT DIOIN DIOINOROUT DIOINANDOUT Description i Portis an output i Portis an input Port can be configured as in or out i Port is an input and an output Eagle Technology Copyright 2001 www eagle co za 26 PCI 800 Series User Manual Eagle Technology Data Acquisition C Counter Modes Mode 0 Event counter Output operation The output is low after configuration The count value is loaded on the first clock pulse The output is low until the counter becomes 0 Gate function High enables counting low disables counting The gate does no effect the output Count value load timing The count value is only loaded on the first falling edge of the clock pulse The first clock pulse does not decrement the count value Thus the output will be high after N 1 Count value writing during counting The count value write is a 2 byte process The counting stops after the first byte is written The output will go low after this After the next byte is written the count value will be loaded again and the output will go high after N 1 clocks Count value writing when the gate signal is low The count value is only written the first clock after the gate goes high again Mode 0 CLK ROR pA Li Bag ga dE OW L n 4 f ee Ee 4 om GATE H a PSI poem Wr n 4 L__4 een aan GATE SCE OUT Figure C 1 Counter Timer Mode 0
31. ts PA0 7 PB0 7 PC0 7 These lines are connected to the 3 ports of the 8255 PPI Each port can be configured as either an input or an output External Trigger System EXT TRIG EXT TRIG RET The external trigger is an optically isolated digital line that can be read from software and trigger an interrupt This is only available on the C models FREQ IN and FREQ OUT These pins relate to the frequency scaler The output comes directly from the scaler The input can be used to drive the frequency scaler from a source other than the onboard crystal This is software selectable CLKO 2 These are the external clock inputs The clock source is jumper selectable GATE0 2 These are the external gate inputs The gate source is jumper selectable OUT0 2 These are the outputs of each counter timer 5V Power Pin 45V This is a 5 volt fused power pin 112V Power Pin 412V This is a 12 volt fused power pin 12V Power Pin 12V This is a 12 volt fused power pin Digital Ground DGND All digital ground signals should be connected to this pin Eagle Technology Copyright 2001 www eagle co za 12 PCI 800 Series User Manual Eagle Technology Data Acquisition 4 Programming Guide The PCI800 series is supplied with a complete software development kit EDR Enhanced EDRE SDK comes with drivers for many operating systems and a common application program interface API The API also serves as a hardware abstraction layer HA
32. turn code will indicate if any errors occurred ACTIVEX CALL Long EDREDioX Read long Port Only the port number needs to be passed and the returned value will either hold an error or the value read If the value is negative an error did occur Writing to the Digital Outputs A single call is necessary to write to a digital I O port API CALL Long EDRE_DioWrite uIng Sn ulng Port ulng Value The serial number port and a value must be passed by the calling function A return code will indicate if any errors occurred ACTIVEX CALL Long EDREDioX Write long Port ulng Value The port number and value to be written needs to be passed and the returned value holds an error or the value read If the value is negative an error did occur Assigned l Description umber i i PCI836A A 0 Port A B PortB _ i Port C C PCI836C i Port A i PortB PortC i i High current output port Opto i Opto isolated external trigger line PCI848A 0A PortA 0B Port B oc PortC 1A Port A 1B Port B 1C PortC PCI848C 0A Port A 0B Port B DC PortC 1A PortA 1B i Port B 1C PortC Opto Opto isolated external trigger line PCI896A 0A PortA 0B Port B oc i PortC 1A Port A 1B PortB 1C i i Port C Eagle Technology Copyright 2001 www eagle co za 14 PCI 800 Series User Manual
33. ue load timing After the configuration and count value is written the output will go high on a negative clock pulse This will last for N clocks and clock and then go low Count value writing during counting The count value does not affect the current operation The old value will be loaded if no new value is written Otherwise the new value will be used on the next trigger or cycle Eagle Technology Copyright 2001 www eagle co za 28 PCI 800 Series User Manual Eagle Technology Data Acquisition Mode 2 Ak KKK elek SE EE NG I SPG DUT GATE H ZS mp EEN a GATE f f OUT n 4 L CA NI sl NI rm Figure C 3 Counter Timer Mode 2 Mode 3 Square Wave Generator Output operation The output is high after configuration The output is high until the counter reaches half of its count value The output goes low for the remainder of the count value The process repeats its self again Gate function High enables counting low disables counting If the gate is set low when the output is low the output is set high immediately At the following edge succeeding a high gate pulse the count value is reloaded again This can be used for synchronization Count value load timing After the configuration and count value is written the output will go high on a negative clock pulse Count value writing during counting The count value does not affect the current operation The old value will be loaded
34. unction High enables counting low disables counting The gate signal does not affect the output Count value load timing After configuration and the initial count value is written the output is high for N count clocks The initial count value does not get decremented Count value writing during counting On the next clock pulse the new count value will be loaded and therefore start a new operation This means that the operation is retriggered by software Mode 4 AK Ae PAA AN EP E E E eee a oe es ee OUT GATE H GATE e 4 AA GE NG OUT Sa Figure C 5 Counter Timer Mode 4 Eagle Technology Copyright 2001 www eagle co za 30 PCI 800 Series User Manual Eagle Technology Data Acquisition Mode 5 Hardware Trigger Strobe Output operation The output is high after configuration When the counter becomes 0 the output goes low for 1 clock period and then high again The count sequence is triggered by rising edge on the gate pulse Gate function The count value is loaded on a negative clock pulse succeeding a gate trigger The gate pulse does not affect the output Count value load timing After the configuration and count value is written the output will go high on a negative clock pulse succeeding a trigger This will last for N clocks and then go low for 1 clock pulse Count value writing during counting A new count value does not affect the current operation Only a trigger can load new valu
35. ur on each interrupt The interrupt control s interrupt event will be triggered The source of the interrupt will also be passed to the event handler Eagle Technology Copyright 2001 www eagle co za 19 PCI 800 Series User Manual Eagle Technology Data Acquisition ACTIVEX CALL Interrupt long Source The source is the value read from the interrupt status register of the PCI800 device The sources are binary weighted See table below Source Value Actual source 128 256 512 OO JO om P Gah AO Table 4 8 Event Source Eagle Technology Copyright 2001 www eagle co za 20 PCI 800 Series User Manual Eagle Technology Data Acquisition Configure Ports Port configuration on the PCI800 series boards is done automatically when the read or write function is called Port configuration can be done manually as well The EDRE_Query function can be used to configure a port Manual configuration will cause the port to be set to a fixed state either input or output Automatic port configuration will be disabled for the ports that have been manually configured to prevent any accidental reconfiguration of the ports Port status can be set back to auto configuration by using the EDRE Query function call again Only port C see Table 4 1 can be configured as INANDOUT port If port is configured as INANDOUT the upper 8 bits of port C is configured as INPUT and lower 8 bits as OUTPUT Configuring a Port A single query call
36. y EDRE API OS type Query number of devices installed Query a board s type Query a board s revision Query a board s manufactured year i Query a board s manufactured month i Query a board s manufactured day Query a board s serial number i Query a driver s major version number Query a driver s minor version number Query a driver s build version number Query number of ADC channel i Query number of samples and hold channels i Query maximum sampling frequency i Check if ADC system is busy Get ADC hardware FIFO size Check for FIFO overrun condition i Check software buffer size i Check for circular buffer overrun i Check if software buffer is allocated i Get number of samples available Get status of external clock line PCI30FG Get status of external trigger line PCIJOFG Check if burst mode is enabled Get ADC range i Query number of DAC channels i Query maximum DAC output frequency Check if DAC system is busy Get DAC FIFO size i Query number of counter timer channels i Check if counter timer system is busy i Query number of digital I O ports i Query a specific port for capabilities Get a specific port s width Configure port as IN OUT or INANDOUT port Query number of interrupts sources i Queries interrupt system s status i Connect interrupt system to bus i Check if an interrupt is available Check number times interrupted

Download Pdf Manuals

image

Related Search

Related Contents

PRÉFACE  Operation and Safety Instructions  Product Brochure  EW-F3000V - Support  SBC8153 Family User`s Manual  DP-1510P/1810P/2010E Manual de instrucciones  Tecumseh AKA4482YXA Performance Data Sheet  Efficienza Energetica - Studio ENEA  Jumbo Benutzerhandbuch  BASE MAGNETIQUE  

Copyright © All rights reserved.
Failed to retrieve file