PCI-7200 / cPCI-720012MB/S High SpeedDigital Input/ Output Card
Introduction •• 11IntroductionThe PCI-7200/cPCI-7200 is PCI/CompactPCI form factor high speeddigital I/O card, it consists of 32 digital input channel
2 •• IntroductionSoftware Supporting: There are several software options help you getyour applications running quickly and easily.1. Linking with data
Introduction •• 3• 4 auxiliary digital input and output channels (cPCI-7200 only)• Diode terminators for 32 input channels and control signals(cPCI-72
4 •• Introduction• Storage Temperature: -20° C ~ 80° C• Humidity: 5 ~ 95%, non-condensing• Connector:PCI-7200: one 37-pin D-type and one 40-pin ribbon
Installation •• 52InstallationThis chapter describes how to install the PCI-7200. At first, the content ofthe package and the unpacking information th
6 •• Installation2.2 UnpackingYour PCI-7200 card contains sensitive electronic components thatcan be easily damaged by static electricity.The card sho
Installation •• 7Choose the default option “Driver from disk provided by hardwaremanufacturer” and then a dialog box is shown to prompt you givethe pa
8 •• Installation2.4 PCI-7200’s LayoutCN1PCI-7200 Rev A1CN2ALTERAPCI -BusController. .. .. .. .. .. .. .. .. .. .. .. .. ..
Installation •• 9Figure 2.1a PCI-7200 Layout Diagram
10 •• Installation2.5 PCI-7200 Installation Outline2.5.1 Hardware configurationBecause PCI-7200 is a plug and play device, the interrupt numberand I/O
Installation •• 112.5.4 Running the 7200UTIL.EXEThe IRQ number and I/O port address can be configured by thesystem. By using the 7200UTIL.EXE, you can
12 •• Installation13579111921232527291315173133353724681012141618222426282032343630DI 17DI 18DI 19DI 20DI 28DI 29DI 30DI 31+5VO_ACKO_REQDO16DI 1639384
Installation •• 132.6.2 cPCI-7200 Pin Assignment(1)(2)(3)(52)(53)(51)(48)(49)(50)(98)(99)(100)2.7 8254 for Timer Pacer GenerationTimer 0Timer 1Timer 2
14 •• InstallationThe internal timer/counter 8254 on the PCI-7200 is configured asabove diagram (figure 2.4). User can use it to generate the timerpac
Register Structure & Format •• 153Register Structure & Format3.1 I/O Registers FormatThe PCI-7200 occupies 8 consecutive 32-bit I/O addresses
16 •• Register Structure & Format3.2 Digital Input Register (BASE + 10)32 digital input channels can be read from this registerAddress: BASE + 10A
Register Structure & Format •• 173.4 DIO Status & Control Register (BASE + 18)The data transfer mode of digital input is controlled and status
18 •• Register Structure & Format1: I_TRG is Rising Edge Active0: I_TRG is Falling Edge ActiveI_TRG: External Trigger Enable1: Wait until I_TRG si
Register Structure & Format •• 19 O_TRG: Digital Output Trigger Signal This bit is used to control the O_TRG output of PCI-7200,
@Copyright 1999 ADLink Technology Inc.All Rights Reserved.Manual Rev. 2.10: September 16, 1999The information in this document is subject to change wi
20 •• Register Structure & Format♦♦ Interrupt Control:In PCI-7200, the interrupt can be triggered by many signalsources such as O_ACK, I_REQ, tim
Register Structure & Format •• 21SI_T0: Status of timer 0 interrupt1: OUT0 (output of timer 0) Interrupt occurred0: No timer 0 InterruptSI_T1: Sta
22 •• Register Structure & Format♦♦ I_REQ Polarity Selection:When the input sampling is controlled by the I_REQ signalonly, the I_REQ can be prog
Operation Theorem •• 234Operation TheoremIn PCI-7200, there are four data transfer modes can be used for digitalI/O access and control, these modes ar
24 •• Operation TheoremThe digital OUT operation is:outport (BASE+14, 0xAAAAAAAA ) // (A : 0 ~ F)The digital IN operation is:value = inport (BASE+10
Operation Theorem •• 25The operation sequences are:1. Define the frequency (timer pacer rate)2. The digital input data are saved in FIFO after a timer
26 •• Operation Theorem4.3 External Clock ModeThe digital input is clocked by external strobe, which is from the Pin19 (I_REQ) of CN2 (PCI-7200) or Pi
Operation Theorem •• 274.4 HandshakingIn PCI-7200, it also supports a handshaking digital I/O transfermode. That is, after input data is ready, an I_R
28 •• Operation TheoremO_REQ & O_ACK for Digital Output1. Digital Output Data is moved from PC memory to FIFO of PCI-7200 by using DMA data master
Operation Theorem •• 294.5 Timing Characteristic1. I_REQ as input data strobe (Rising Edge Active)IN_REQthtltcycvalid datavalid datatstnDI0~DI31th 60
Getting service from ADLink Technology. Inc.Customer satisfaction is always the most important thing forADLink Tech. You can get more information and
30 •• Operation Theorem3. I_REQ & I_ACK HandshakingIN_REQt1t2t3valid datavalid datat5t4DI0~DI31t1 0nst5 60nst2 0nst4t32 PCI CLK Cycle IN_ACK1 PCI
Operation Theorem •• 315. O_REQ & O_ACK HandshakingOUT_REQt1t3valid dataDO0~Do31t1 19nst3t21 PCI CLK Cycle OUT_ACK5 PCI CLK Cycle valid datat2Not
C/C++ & DLL Libraries •• 335C/C++ & DLL LibrariesIn this chapter, the PCI-7200's software drivers: C/C++ language libraryfor DOS and DLL
34 •• C/C++ & DLL Libraries♦♦ Windows 95/98 Installation:1. Put the ADLink’s “All-in-one” CD into the appropriate CD drive.2. If autorun setup
C/C++ & DLL Libraries •• 355.2 Running Testing Utility (7200UTIL.EXE)After finishing the installation of PCI-7200 DOS software, you canexecute the
36 •• C/C++ & DLL Libraries5.3 Software Driver Naming ConventionThe functions of PCI-7200's software drivers are using full-names torepresent
C/C++ & DLL Libraries •• 37@ SyntaxVisual C++ (Windows 95/98)int W_7200_Initial (U8 card_number, U16 *base_addresss, U8*irq_no)Visual Basic (Windo
38 •• C/C++ & DLL Libraries5.5 _7200_Switch_Card_No@ DescriptionAfter initialized more than one PCI-7200 cards, this function is usedto select whi
C/C++ & DLL Libraries •• 395.6 _7200_AUX_DI@ DescriptionRead data from auxiliary digital input port of cPCI-7200 card. Youcan get all 4 bits input
Contents •• iCONTENTSCONTENTS ...iHow to Use This Guide... vC
40 •• C/C++ & DLL Libraries5.7 _7200_AUX_DI_Channel@ DescriptionRead data from auxiliary digital input channel of cPCI-7200 card.There are 4 digit
C/C++ & DLL Libraries •• 415.8 _7200_AUX_DO@ DescriptionWrite data to auxiliary digital output port. There are 4 auxiliary digitaloutputs on the c
42 •• C/C++ & DLL Libraries5.9 _7200_AUX_DO_Channel@ DescriptionWrite data to auxiliary digital output channel (bit). There are 4auxiliary digital
C/C++ & DLL Libraries •• 435.10 _7200_DI@ DescriptionThis function is used to read data from digital input port. There are32-bit digital inputs on
44 •• C/C++ & DLL Libraries5.11 _7200_DI_Channel@ DescriptionThis function is used to read data from digital input channels (bit).There are 32 dig
C/C++ & DLL Libraries •• 455.12 _7200_DO@ DescriptionThis function is used to write data to digital output port. There are 32digital outputs on th
46 •• C/C++ & DLL Libraries5.13 _7200_DO_Channel@ DescriptionThis function is used to write data to digital output channels (bit).There are 32 dig
C/C++ & DLL Libraries •• 475.14 _7200_Alloc_DMA_Mem@ DescriptionContact Windows 95/98 system to allocate a block of contiguousmemory for single-bu
48 •• C/C++ & DLL Librariesactual_size: The actual size system allocate for DMA memory.The unit is BYTE. If system is not able to get a blockof co
C/C++ & DLL Libraries •• 495.15 _7200_Free_DMA_Mem@ DescriptionDeallocate a system DMA memory under Windows 95/98environment. This function is onl
ii •• ContentsCHAPTER 4 Operation Theorem ... 234.1 Direct Program Control ...234
50 •• C/C++ & DLL Libraries5.16 _7200_Alloc_DBDMA_Mem@ DescriptionContact Windows 95/98 system to allocate a block of contiguousmemory as circular
C/C++ & DLL Libraries •• 515.17 _7200_Free_DBDMA_Mem@ DescriptionDeallocate a system circular buffer DMA memory under Windows95/98 environment. Th
52 •• C/C++ & DLL Libraries5.18 _7200_DI_DMA_Start@ DescriptionThe function will perform digital input N times with DMA data transferby using one
C/C++ & DLL Libraries •• 532. Load the PCI controller with the count and 32-bit physicaladdress of the start of previously allocated destinationme
54 •• C/C++ & DLL Libraries@ SyntaxVisual C++ (Windows 95/98)int W_7200_DI_DMA_Start (U8 mode, U32 count, U32 handle,Boolean wait_trg, U8 trg_pol,
C/C++ & DLL Libraries •• 55di_buffer (DOS): If double buffer mode is disabled, this is the startaddress of the memory buffer to store the DI data.
56 •• C/C++ & DLL Libraries5.19 _7200_DI_DMA_Status@ DescriptionSince the _7200_DI_DMA_Start function is executed inbackground, you can issue this
C/C++ & DLL Libraries •• 575.20 _7200_DI_DMA_Stop@ DescriptionThis function is used to stop the DMA data transferring. Afterexecuting this functi
58 •• C/C++ & DLL Libraries5.21 _7200_DblBufferMode@ DescriptionThis function is used to enable or disable double buffer mode forDMA DI operation.
C/C++ & DLL Libraries •• 595.22 _7200_CheckHalfReady@ DescriptionWhen you use _7200_DI_DMA_Start to sample digital input data anddouble buffer mod
Contents •• iii5.26 _7200_DO_DMA_Status...645.27 _7200_DO_DMA_Stop...
60 •• C/C++ & DLL Libraries5.23 _7200_DblBufferTransfer@ DescriptionUsing this function to copy the input data in the circular buffer to thetransf
C/C++ & DLL Libraries •• 615.24 _7200_GetOverrunStatus@ DescriptionWhen you use _7200_DI_DMA_Start to convert Digital I/O data withdouble buffer m
62 •• C/C++ & DLL Libraries5.25 _7200_DO_DMA_Start@ DescriptionThe function will perform digital output N times with DMA datatransfer by using the
C/C++ & DLL Libraries •• 63handle (Win 95/98): the handle of system DMA memory. InWindows 95 environment, before callingW_7200_DO_DMA_Start,W_7200
64 •• C/C++ & DLL Libraries5.26 _7200_DO_DMA_Status@ DescriptionSince the _7200_DO_DMA_Start function is executed inbackground, you can issue the
C/C++ & DLL Libraries •• 655.27 _7200_DO_DMA_Stop@ DescriptionThis function is used to stop the DMA DO operation. After executingthis function, th
66 •• C/C++ & DLL Libraries5.28 _7200_DI_Timer@ DescriptionThis function is used to set the internal timer pacer for digital input.There are two c
C/C++ & DLL Libraries •• 67C/C++ (DOS)int _7200_DI_Timer (U16 c0, U16 c2, Boolean mode)@ Argumentc0 : frequency divider of Counter #0. Valid valu
68 •• C/C++ & DLL Libraries5.29 _7200_DO_Timer@ DescriptionThis function is used to set the internal timer pacer for digital output.There are two
C/C++ & DLL Libraries •• 69C/C++ (DOS)int _7200_DO_Timer (U16 c1, U16 c2, Boolean mode)@ Argumentc1 : frequency divider of Counter #1c2 : freque
Double Buffer Mode Principle •• 716Double Buffer Mode PrincipleThe data buffer for double-buffered DMA DI operation is acircular buffer logically. It
72 •• Double Buffer Mode PrincipleIncoming DMAinput dataCircular BufferTransfer Bufferabcd> > >> > >> >Empty Buf
Limitation •• 737Limitation1. The 12 MB/sec data transfer rate can only be possiblyachieved in a system in which the PCI-7200 card is the onlydevice u
8254 Programmable Interval Time •• 75Appendix A. 8254Programmable Interval TimerNote : The material of this section is adopted from“Intel Microprocess
76 •• 8254 Programmable Interval TimeA.2 The Control ByteThe 8254 occupies 8 I/O address locations in the PCI-7200 I/Omap. As shown below.Base + 0 LSB
8254 Programmable Interval Time •• 77• M2, M1 & M0 - Select Operating Mode (Bit 3, Bit 2, & Bit 1)M2 M1 M0 MODE0 0 0 00 0 1 1x 1 0 2x 1 1 31
78 •• 8254 Programmable Interval TimeRewriting a counter register during counting results in thefollowing:(1) Write 1st byte stops the current countin
8254 Programmable Interval Time •• 79• Mode 3 : Square Wave Rate Generator.Similar to MODE 2 except that the output will remain high untilone half th
How to Use This Manual •• vHow to Use This GuideThis manual is designed to help you use the PCI-7200 and cPCI-7200.The functionality of PCI-7200 and c
80 •• 8254 Programmable Interval Time• Mode 5 : Hardware Triggered Strobe.The counter will start counting after the rising edge of thetrigger input a
Product Warranty/Service •• 81Product Warranty/ServiceSeller warrants that equipment furnished will be free form defectsin material and workmanship fo
Commentaires sur ces manuels