free hit counter

ICP DAS USA PCI-1002H User Manual

Hide thumbs Also See for PCI-1002H:

Advertisement

Quick Links

Warranty
All products manufactured by ICP DAS are warranted against defective
materials for a period of one year from the date of delivery to the original
purchaser.
Warning
ICP DAS assumes no liability for damages consequent to the use of this
product. ICP DAS reserves the right to change this manual at any time without
notice. The information furnished by ICP DAS is believed to be accurate and
reliable. However, no responsibility is assumed by ICP DAS for its use, nor for
any infringements of patents or other rights of third parties resulting from its use.
Copyright
Copyright ©1998~1999 by ICP DAS. All rights are reserved.
Trademark
The names used for identification only may be registered trademarks of their
respective companies.
PCI-1002 User's Manual (Ver. 2.4, Mar./2004, PPH-015-24) ---- 1
PCI-1002
User's Manual

Advertisement

Table of Contents
loading

Summary of Contents for ICP DAS USA PCI-1002H

  • Page 1 PCI-1002 User’s Manual Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser. Warning ICP DAS assumes no liability for damages consequent to the use of this product.
  • Page 2: Table Of Contents

    Table of Contents INTRODUCTION ..........................4 ....................4 ENERAL ESCRIPTION ...................... 5 LOCK IAGRAMS ......................... 6 EATURES ........................ 7 PECIFICATIONS 1.4.1 Power Consumption: ......................7 1.4.2 Analog Inputs......................... 7 1.4.3 D/I and D/O ..........................8 1.4.4 A/D Trigger Methods......................8 1.4.5 Interrupt Channel ........................
  • Page 3 FUNCTION OPERATIONS......................33 I/O ........................33 IGITAL 8254 T ......................34 IMER ......................34 TRIGGER A/D C ......................36 ONVERSION 4.4.1 A/D Conversion Trigger Modes..................38 4.4.2 A/D Transfer Modes......................38 4.4.3 Software triggers and Polling techniques ................ 39 SOFTWARE AND DEMO PROGRAM ..................42 DIAGNOSTIC PROGRAM.......................
  • Page 4: Introduction

    1. Introduction The PCI-1002H/L card provides 12-bit ADC and two 16-bit digital I/O ports. 1.1 General Description The PCI-1002L and PCI-1002H are high performance multifunction cards, with both A/D and digital I/Os in a 5V PCI slot. This family features one 12-bit 125K A/D converter, 16-channel D/I, 16-channel D/O, a programmable interrupt source and support truly “Plug and Play”.
  • Page 5: The Block Diagrams

    1.2 The Block Diagrams Here’s the block diagram of PCI-1002: X86 System EPROM PCI Interface System Status Local System Controller Control Interrupt Digital Inputs 16 bits DI 16 bits DO Digital Outputs Pacer 4MHz Generator A/D control logic 12-bit A/D Gain Analog Inputs Data...
  • Page 6: Features

    1.3 Features The following is a list of general features for the PCI-1002 series. Check section 1.4 for more details. • Bus: 5V PCI (Peripherals Component Interface) bus. 1. A/D: • One A/D converter with maximum 110Ksamples/second. • 32 single-ended / 16 differential programmable inputs for PCI-1002L/H. •...
  • Page 7: Specifications

    • Input signal ranges: PCI-1002L: Bipolar, with range of ±10V, ±5V, ±2.5V, ±1.25V PCI-1002H: Bipolar, with range of ±10V, ±1V, ±0.1V, ±0.01V • Input current: 250 nA max (125 nA typical) at 25 °C. • Maximum voltage: continuous single channel to 70Vp-p •...
  • Page 8: D/I And D/O

    1.4.3 D/I and D/O • Channels: 16-channel DI, 16-channel DO. • DO: Digital output port • Output level: TTL compatible • Output current: I oh = 0.5mA,I ol = 8mA • DI: Digital input port • Input level: TTL compatible •...
  • Page 9: Interrupt Channel

    1.4.5 Interrupt Channel • Interrupt: INTA (Automatically assigned by PCI-initiator). • Enable/Disable: Via PCI control register and add-on control register. • Interrupt source: (Selected by on-board control register) 1. A/D conversion interrupt. 2. Pacer 0 interrupt (Timer 0). 3. Pacer 1 interrupt (Timer 1). 4.
  • Page 10: Applications

    1.5 Applications Signal analysis. FFT & frequency analysis. Transient analysis. Speech analysis. Temperature monitor. Vibration analysis. Energy management. Other industrial and laboratory measurement and control. Process Control Signal Analysis Multi-I/O signals Transition Temperature PCI-1002 series Speech Analysis Frequency Vibration Other Laboratory PCI interface Process Monitor Single-task or multitask...
  • Page 11: Product Checklist

    1.6 Product Checklist In addition to this manual, the package includes the following items: • One PCI-1002 card • One ICP-DAS floppy diskette or CD-ROM • One release note It is recommended to read the release note first. The following important information will be given in the release note: 1.
  • Page 12: Hardware Configuration

    2. Hardware Configuration 2.1 Board Layout CON3 CON1 CON2 Figure 2-1. PCI-1002 board layout. PCI-1002 User’s Manual (Ver. 2.4, Mar./2004, PPH-015-24) ---- 12...
  • Page 13: Jumper Settings

    2.2 Jumper Settings The PCI-1002 has only one jumper. JP1 is used to select the analog input type. For single-ended inputs, users should connected Pins 1&3 and Pins 2&4. For differential inputs, Pins 3&5 and Pins 4&6 should be connected. Differential Single-ended Inputs...
  • Page 14: System Block

    2.4 System Block 8254 Tim A/D Buffer Data Interrupt Trigger Converter controller Logic Interface Controller Dispatch Multiplexers, controller Gain Amp. NVRA Scale Adj. External Trigger PCI BUS Figure 2-2. PCI-1002 System Function Block. PCI-1002 User’s Manual (Ver. 2.4, Mar./2004, PPH-015-24) ---- 14...
  • Page 15: Daughter Boards

    2.5 Daughter Boards 2.5.1 DB-1825 The DB-1825 is a daughter board designed for 32-channel AD cards such as ISO-AD32 and PCI-1002. Refer to “DB-1825 User Manual ". 37pin cable 2.5.2 DB-8225 The DB-8225 provides an on-board CJC(Cold Junction Compensation) circuit for thermocouple measurement and a terminal block for easy signal connection and measurement.
  • Page 16: Db-16P Isolated Input Board

    2.5.5 DB-16P Isolated Input Board The DB-16P is a 16-channel isolated digital input daughter board. The optically isolated input of the DB-16P consists of a bi-directional optocoupler with a resistor for current sensing. You can use the DB-16P to sense DC signal from TTL levels up to 24V, or use the DB-16P to sense a wide range of AC signals.
  • Page 17: Db-16R Relay Board

    2.5.6 DB-16R Relay Board The DB-16R, a 16-channel relay output board, consists of 16 from C relays for efficient load switching via programmable controls. It is connected and functionally compatible with 785 series board but feature an industrial-type terminal block. Relays are energized by applying 5-volt signal to the appropriate relay channel on the 20-pin flat connector.
  • Page 18: Analog Input Signal Connections

    2.6 Analog Input Signal Connections The PCI-1002 can measure single-ended or differential-type analog inputs signal. Some analog signals can be measured in both modes. However, some analog signals only can be measured in one or the other. The user must decide which mode is suitable for measurement.
  • Page 19 Figure 2-3. Connecting to grounding source input (Right way) A/D CH0 HI Es 1 A/D CH 0 LO A.GND 1 A/D CH n HI Es n A/D CHn LO A.GND n Figure 2-3. Wrong way A/D CH0HI A/D CH0LO GND1 AGND A/D CHnHI A/D CHnLO...
  • Page 20 Figure 2-4. Connecting to single-ended input configuration PCI-1002 A/D CH0 A/D CH1 A/D CH n AGND Figure 2-5. connecting to thermocouple configuration PCI-1002 A/D CH 0 HI A/D CH 0 LO A/D CH n HI A/D CH n LO A. GND Do not join LO to A.GND at the computer Note: If the input signal is not thermocouple, the user should use an oscilloscope to measure common mode voltage of Vin before connecting to PCI-1002.
  • Page 21 Figure 2-6. Connecting to floating source configuration PCI-1002 A/D CH 0 HI Es 1 A/D CH 0 LO A.GND A/D CH n HI Es n A/D CH n LO A.GND Signal Shielding Signal shielding connections in Figure 2-3 to Figure 2-6 are all the same Use a single-point connection to frame ground (not A.GND or D.GND) PCI-1002 A.GND...
  • Page 22: The Connectors

    2.7 The Connectors CON1: Digital output connector pin assignments. Name Name Digital output 0 Digital output 1 Digital output 2 Digital output 3 Digital output 4 Digital output 5 Digital output 6 Digital output 7 Digital output 8 Digital output 9 11 12 Digital output 10 Digital output 11...
  • Page 23 CON3: Analog input/output connector pin assignment. (For PCI-1002H/L) Name Name Analog input 0/0+ Analog input 16/0- Analog input 1/1+ Analog input 17/1- Analog input 2/2+ Analog input 18/2- Analog input 3/3+ Analog input 19/3- Analog input 4/4+ Analog input 20/4-...
  • Page 24: I/O Register Address

    3. I/O Register Address 3.1 How to Find the I/O Address The Plug&Play BIOS will assign a proper I/O address to every PCI-1002 card in the power-on stage. The IDs of PCI-1002 are as follows: • Vendor ID = 1234 •...
  • Page 25 Here’s the sample program source code: /* Step1: Detect all PCI-1002 cards first */ wRetVal=P1002_DriverInit(&wBoards); printf("Threr are %d PCI-1002 Cards in this PC\n",wBoards); /* Step2: Save resources of all PCI-1002 cards installed in this PC */ for (i=0; i<wBoards; i++) P1002_GetConfigAddressSpace(i,&wBase,&wIrq,&wPLX);...
  • Page 26: The I/O Address Map

    3.2 The I/O Address Map The list of PCI-1002 registers is given below. The address of each register is found by simply adding the offset to the base address of the corresponding section. More detailed descriptions of each register will be shown in the following text and the software manual.
  • Page 27 3.2.1 Section 1 Although there are 128 I/O ports used by the on-board PCI interface controller, only one register is used in real applications!! Users should keep the other registers from being modified! The PCI interrupt control register (4Ch) controls the interrupt sent to your system.
  • Page 28: Section 2

    3.2.2 Section 2 This section is used by the add-on control logic. 64 bytes of I/O locations are used. Detailed descriptions are shown below. 3.2.2.1 The 8254 registers The 8254, programmable timer/counter is used to generate periodic A/D trigger signals, periodic interrupt signals and the machine- independent timer for PCI-1002.
  • Page 29: The Status Register

    3.2.2.4 The status register Address 10h is used by the status register. Reading from this address will get the data from the status register. The format of status register is: Bit7-6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Gain 8245 8245 8245 Analog A/D Busy...
  • Page 30 3.2.2.6 Clear interrupt Reading from 1Ch will clear the add-on interrupt. 3.2.2.7 The analog input selection register Address 10h is used by the analog input channel selection register and address 14h is used by the analog gain control selection register. Write 0-31 to port 10h to select the channel number (for differential input, write 0-15).
  • Page 31 For PCI-1002H: [Bit1, Bit 0] [0 0] [0 1] [1 0] [1 1] Gain 1000 3. These registers are set to 0 after powered-on or hardware reset signals. 3.2.2.8 The general control register A general control register (18h) is used to control the add-on interrupt signal source and the A/D trigger method.
  • Page 32 3.2.2.8.2 Trigger method selection Here’s a list of our trigger options (see section 1.4.5): [Bit1,Bit0 ] Descriptions [ 0, 0 ] General trigger mode. 8254 timer 0 trigger (internal pacer trigger ) or software trigger. [ 0, 1 ] External clock trigger mode. [ 1, 0 ] Pre-trigger mode.
  • Page 33: Function Operations

    4. Function Operations 4.1 Digital I/O The PCI-1002 series provide 16 digital input channels and 16 digital output channels. All levels are TTL compatible. The connection diagram and block diagram are given below: BaseAddr+20h read signal. DI port Local Data Bus D0 ...
  • Page 34: The 8254 Timer

    4.2 The 8254 Timer The PCI-1002 series provide 3 independent,16-bit timer/counters. Each timer has different functions. Timer 0 is uses Pacer 0. Timer 1 is uses Pacer 1. Timer 2 is uses a machine independent timer. The block diagram is given as follows: 4 M Hz Timer1 Pacer 0...
  • Page 35 A/D trigger logic receives the external trigger and then performs the correct A/D trigger function. In order to be recognized by the A/D trigger controller, the external trigger signal must be a TTL compatible signal, with the minimum duration of pulse width to avoid noise.
  • Page 36: A/D Conversion

    3 Trigger logic: Software, Pacer, or External trigger. 2 Transfer logic: Polling, or Interrupt. Here’s the block diagram: 16/8 to 1 Gain 12 bits Multi- Control Buffer Memory plexer BASE+30h BASE+10h BASE+14h Trigger Logic BASE+1Ch Software Trigger PCI-1002H/L PCI-1002 User’s Manual (Ver. 2.4, Mar./2004, PPH-015-24) ---- 36...
  • Page 37 A/D conversion flow Before using the A/D converter, please select either single-ended or differential input (JP1). The software driver supports two different modes: polling and interrupt. The user can control the A/D conversion by polling mode very easy. Using the software driver is recommended if using interrupt.
  • Page 38: A/D Conversion Trigger Modes

    4.4.1 A/D Conversion Trigger Modes A-826PG supports three trigger modes. 1 : Software Trigger : Write any value to the A/D software trigger control register, BASE+1Ch, and it will initiate a A/D conversion cycle. This mode is very simple but controlling the sampling rate very difficult.
  • Page 39: Software Triggers And Polling Techniques

    4.4.3 Software triggers and Polling techniques The easiest way to control is by following these steps: 1. Send 00h to A/D mode control register (software trigger + polling transfer) 2. Send channel number to multiplexer control register. 3. Send the gain control code value to gain control register. 4.
  • Page 40 outp(wBaseAddr+3*4,0x80); /* latch counter_2 */ l=inp(wBaseAddr+2*4); /* delay starting two clks */ h=inp(wBaseAddr+2*4); for (count=32767;count>0;count--){ outp(wBaseAddr+12,0x80); /* latch counter_2 */ l=inp(wBaseAddr+8); h=inp(wBaseAddr+8); if (h>=0x80) return NoError; return TimeOut; //-------------------------------------------------------- void AdPolling(UCHAR channel, UCHAR gain, WORD delay) outp(wBaseAddr+0x18,0); // Select Mode 0 outp(wBaseAddr+0x10,channel);...
  • Page 41 WORD Drdy,wAdData=0; char c; clrscr(); P1002_DriverInit(&wBoards); printf("\n(1) Threr are %d PCI-1002 Cards in this PC",wBoards); if ( wBoards==0 ) putch(0x07); putch(0x07); putch(0x07); printf("(1) There are no PCI-1002 card in this PC !!!\n"); exit(0); printf("\n(2) Show the Configuration Space of all PCI-1002:"); for(i=0;...
  • Page 42: Software And Demo Program

    5. Software and Demo Program 1. Demo program for DOS • …\1002\BC\LARGE\DEMO> ← demo program • …\1002\BC\LARGE\LIB> ←library and driver • DEMO1: Digital output. • DEMO2: Digital output and Digital input test by itself. • DEMO3: ADC Polling for channel 0. •...
  • Page 43: Diagnostic Program

    6. Diagnostic Program 6.1 Power-ON Plug & Play Test The operation steps for a power-on Plug & Play test are as follows: Step 1: Power-off PC Step 2: Install PCI-1002 without any extra external connector Step 3: Power-on PC and check the PC screen very carefully Step 4: The PC will perform a self-test first Step 5: Detect the non-PCI physical devices installed in the system Step 6: Show the information of these device in screen...
  • Page 44: D I/O Test

    6.3 D I/O Test Step 1: Power-off PC. Step 2: Install one PCI-1002 card with a 20-pin flat cable between CON1&CON2. Step 3: Power-on PC, Then run DEMO2.EXE. Step 4: The DO and DI will show either TEST OK or TEST ERROR. 6.4 A/D Test •...

This manual is also suitable for:

Pci-1002l

Table of Contents