background image

 

   outp(wB3*4,0x80);       /* latch counter_2 */ 

  l=inp(wB2*4);               /* delay starting two clks */ 

  h=inp(wB2*4); 

 

  for (count=32767;count>0;count--){ 

 

  outp(wB12,0x80); 

 /* latch counter_2 */ 

 

  l=inp(wB8); 

 

  h=inp(wB8); 

 

  if (h>=0x80) return NoError; 

  } 

  return TimeOut; 

 

//-------------------------------------------------------- 

void AdPolling(UCHAR channel, UCHAR gain, WORD delay) 

     { 

      outp(wB0x18,0);       // Select Mode 0 

      outp(wB0x10,channel); 

      outp(wB0x14,gain); 

      P1002_Delay(delay); 

      outp(wB0x1c,01);       // A/D software tirgger 

     } 

 

void SetupTimer(WORD wChannel, WORD wCoef) 

   WORD   cmd; 

   wChannel=wChannel&0x03; 

   cmd=0x34+(wChannel<<6); 

   outpw(wB3*4, cmd); 

   outp(wBwChannel*4, (UCHAR)(wCoef&0xff)); 

   outp(wBwChannel*4, (UCHAR)(wCoef>>8)); 

 

//========================================================= 

void main() 

 { 

 int  i,j; 

 WORD wBoards,wRetVal,wPLX; 

PCI-1002 User’s Manual (Ver. 2.4, Mar./2004, PPH-015-24)  ----  40

 

Содержание PCI-1002H

Страница 1: ...o 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 inf...

Страница 2: ...CKLIST 11 2 HARDWARE CONFIGURATION 12 2 1 BOARD LAYOUT 12 2 2 JUMPER SETTINGS 13 2 3 AD CALIBRATION 13 2 4 SYSTEM BLOCK 14 2 5 DAUGHTER BOARDS 15 2 5 1 DB 1825 15 2 5 2 DB 8225 15 2 5 3 DB 37 15 2 5 4...

Страница 3: ...1 A D Conversion Trigger Modes 38 4 4 2 A D Transfer Modes 38 4 4 3 Software triggers and Polling techniques 39 5 SOFTWARE AND DEMO PROGRAM 42 6 DIAGNOSTIC PROGRAM 43 6 1 POWER ON PLUG PLAY TEST 43 6...

Страница 4: ...of TTL compatible digital output ports and 16 channel of TTL compatible digital input ports This series provides three programmable trigger methods software trigger pacer trigger and external trigger...

Страница 5: ...ROM Local System Controller Status Control 16 bits DI 16 bits DO Pacer Generator A D Data Buffer Analog Inputs Digital Outputs Digital Inputs A D control logic 12 bit A D Converter Mux Gain 4MHz Inter...

Страница 6: ...r PCI 1002L H Provides three different A D trigger methods Provides three different external trigger methods Programmable gain control programmable offset control 2 DIO 16 digital inputs and 16 digita...

Страница 7: ...1002L 1 2 4 8 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 co...

Страница 8: ...ods Software trigger Pacer trigger 16 bit programmable timer counter External trigger Pre trigger Post trigger external Pacer trigger External trigger t Start End Post trigger mode CHn External trigge...

Страница 9: ...nterrupt Figure 1 3 Programmable interrupt source A D busy IRQ End of Conversion 1 Pacer 0 IRQ Falling edge of Pacer 0 2 Pacer 1 IRQ Falling edge of Pacer 1 3 External Trigger IRQ Falling edge of Exte...

Страница 10: ...z Other industrial and laboratory measurement and control Figure 1 4 PCI 1002 series multifunction cards PCI 1002 series Signal Analysis Temperature Speech Analysis Transition Frequency Vibration Pro...

Страница 11: ...mportant information will be given in the release note 1 Where you can find the software driver utility 2 How to install software utility 3 Location of the diagnostic program 4 FAQ Attention If any of...

Страница 12: ...2 Hardware Configuration 2 1 Board Layout JP1 VR1 VR2 VR3 CON3 CON1 CON2 PCI 1002L REV B Figure 2 1 PCI 1002 board layout PCI 1002 User s Manual Ver 2 4 Mar 2004 PPH 015 24 12...

Страница 13: ...ault JP1 2 3 AD Calibration 2 6 1 5 Differential Inputs 1 5 6 2 AD Calibration for PCI 1002 card Step 5 Adjust VR1 until channel 0 fff or ffe Step 6 Adjust VR2 until channel 1 800 or 801 Step 7 Adjust...

Страница 14: ...ger Logic PCI Interface Controller Dispatch controller NVRA Multiplexers Gain Amp Scale Adj A D Converter External Trigger Interrupt controller Data Adr PCI BUS Figure 2 2 PCI 1002 System Function Blo...

Страница 15: ...nal connection and measurement The CJC is connected to A D channel_0 The PCI 1002 can connect CON3 directly to DB 8225 through a 37 pin D sub connector Refer to DB 8225 User Manual for details 2 5 3 D...

Страница 16: ...e 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 You can use this board to isolate the computer from large common mode voltage ground loo...

Страница 17: ...ng 5 volt signal to the appropriate relay channel on the 20 pin flat connector There are 16 enunciator LEDs for each relay light when their associated relay is activated To avoid overloading your PC s...

Страница 18: ...nals Note In Figure 2 5 the maximum common mode voltage between the analog input source and the AGND is 70Vp p so the user must take care that the input signal is under this specification first If the...

Страница 19: ...ource input Right way A D CH0 HI A D CH n HI A D CHn LO A GND n A D CH 0 LO A GND 1 Es 1 Es n Figure 2 3 Wrong way A D CH0HI AGND A D CH0LO Es1 A D CHnHI A D CHnLO Esn AGND GND1 GNDn PCI 1002 User s M...

Страница 20: ...t use a voltage meter or multimeter CAUTION In Figure 2 5 the maximum common mode voltage between the analog input source and the AGND is 70Vp p Make sure that the input signal is under specification...

Страница 21: ...H n HI A GND A D CH n LO A GND Es 1 Es n Signal Shielding z Signal shielding connections in Figure 2 3 to Figure 2 6 are all the same z Use a single point connection to frame ground not A GND or D GND...

Страница 22: ...igital output 15 17 PCB ground 18 PCB ground 19 PCB 5V 20 PCB 12V 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 CON2 Digital input connector pin assignments Pin Name Pin Name 1 Digital input 0 2...

Страница 23: ...24 8 10 Analog input 9 9 29 Analog input 25 9 11 Analog input 10 10 30 Analog input 26 10 12 Analog input 11 11 31 Analog input 27 11 13 Analog input 12 12 32 Analog input 28 12 14 Analog input 13 13...

Страница 24: ...ll find all PCI TMC12 cards installed in this system save all their resources in the library wBoard 1 only one PCI 1002 in this PC system wBoard 2 there are two PCI 1002 in this PC system 2 P1002_GetC...

Страница 25: ...urce of this card wConfigSpace i 2 wPLX save all resource of this card Step3 Control the PCI 1002 directly wBase wConfigSpace 0 0 get base address the card_0 outpw wBase 0x20 wDoValue control the D O...

Страница 26: ...00h 8254 timer1 R W 8 16 32 bits 04h 8254 timer2 R W 8 16 32 bits 08h 8254 timer3 R W 8 16 32 bits 0Ch 8254 control register W 8 16 32 bits 10h Analog input channel control register W 8 16 32 bits 10h...

Страница 27: ...Bit5 Bit3 Bit2 Bit1 Bit0 Not used Interrupt Enable Not used Interrupt Flag Interrupt Select Bit 6 Write a 1 to enable the PCI interrupt and a 0 to disable PCI interrupt Bit2 This bit is readable but c...

Страница 28: ...more details about the programming information please refer to Intel s Microsystem Components Handbook 3 2 2 2 The DI DO register Address 20h is used for DI DO ports Writing to this port will write da...

Страница 29: ...input type 1 indicated that analog input type is single ended and 0 indicated analog input is differential Bit 0 The A D busy signal 0 indicates busy A D is under conversion 1 indicates not busy A D...

Страница 30: ...nputs Channel select Analog Mux Select Gain control ADC AMP Note 1 For single ended inputs channels 0 31 are available For differential inputs channels 0 15 are available Input numbers which are more...

Страница 31: ...trigger method selection register 3 2 2 8 1 Interrupt source selection There are four interrupts selectable for PCI 1002 see section 1 4 4 Bit4 Bit3 Bit2 Descriptions 0 0 0 No interrupt source disabl...

Страница 32: ...ed for pre trigger method The mode is incorporated with the 8254 timer 1 First setup 8254 timer 1 properly Then set the trigger mode to pre trigger Once pre trigger mode has been activated the 8254 ti...

Страница 33: ...16 digital output channels All levels are TTL compatible The connection diagram and block diagram are given below CN2 BaseAddr 20h write signal BaseAddr 20h read signal DI port DO port CN1 Local Data...

Страница 34: ...3 The A D trigger The A D trigger is controlled by on board A D trigger controller The function diagram of A D trigger is shown below Timer1 Timer2 Timer3 Local Data Bus D0 D7 EN EN EN User CLK CLK C...

Страница 35: ...specifications External trigger tdu tre Symbol Name Minimum Maximum Tdu Duration time 40ns Tre Recover time 100ns Note The PCI 1002 is designed only as a time sensitive trigger trigger depends only o...

Страница 36: ...his checklist z A D data register BASE 30h store the A D conversion data z A D data conversion ready register BASE 10hH Check A D conversion ready z A D gain control register BASE 14h Select gain z A...

Страница 37: ...el The gain control module also needs settling time if gain control code changed Again because the software doesn t control settling time please delay enough settling time if the gain control code is...

Страница 38: ...r signal is applied a A D conversion will be performed The external trigger source comes from Pin 17 of CON3 4 4 2 A D Transfer Modes PCI 1002 supports two transfer modes 1 Polling transfer This mode...

Страница 39: ...ata until READY 0 6 Read the 12 bit A D data 7 Convert this 12 bit binary data to the floating point value For example DEMO 3 AdPolling Compiler Borland C 3 1 Mode Large Output Code HEX code include P...

Страница 40: ...nel UCHAR gain WORD delay outp wBaseAddr 0x18 0 Select Mode 0 outp wBaseAddr 0x10 channel outp wBaseAddr 0x14 gain P1002_Delay delay outp wBaseAddr 0x1c 01 A D software tirgger void SetupTimer WORD wC...

Страница 41: ...n Card_ d wBaseAddr x wIrq x wPLX x i wBaseAddr wIrq wPLX P1002_GetConfigAddressSpace 0 wBaseAddr wIrq wPLX select card_0 printf n 3 Card_0 wBaseAddr x n wBaseAddr SetupTimer 0 1 AdPolling have to di...

Страница 42: ...O2 Digital output and Digital input test by itself DEMO3 ADC Polling for channel 0 DEMO4 ADC Polling for channel 0 1 2 3 using different gains 1 2 4 or 8 DEMO5 ADC Pacer trigger DEMO6 AD Calibration D...

Страница 43: ...PCI 1002 card during the power on time the software driver of DOS and Windows 95 NT 2000 XP will function well later If the Plug Play ROM BIOS can t find the PCI 1002 all software drivers will not fu...

Страница 44: ...T ERROR 6 4 A D Test A D Test for PCI 1002 card Step 1 Power off PC Step 2 Install one PCI 1002 card Step 3 Power on PC run DEMO6 EXE Step 4 Apply 10V to channel 0 Step 5 Apply 0V to channel 1 Step 6...

Отзывы: