HP NuDAQ I-9111DG/HR manual 4 A/D Data Transfer Modes, External Trigger EITS=1, TPST=don‘t care

Page 36

refer to section 4.6 for timer/counter operation. This mode is ideal for high speed A/D conversion. It can be combined with the FIFO half full interrupt or EOC interrupt to transfer data. It is also possible to use software FIFO polling to transfer data. The A/D trigger, A/D data transfer and Interrupt can be set independently, most of the complex applications can thus be covered.

It's recommend to use this mode if your applications need a fixed and precise A/D sampling rate.

External Trigger (EITS=1, TPST=don‘t care)

Through the pin-16 of CN3 (ExtTrig), the A/D conversion also can be triggered by an external signal. The A/D conversion starts as ExtTrig changes from high to low. The conversion rate of this mode is more flexible than the previous two modes, because the users can handle the external signal by the outside device. The external trigger can be also combined with the FIFO half interrupt, EOC interrupt or program FIFO polling to transfer data.

4.1.4A/D Data Transfer Modes

The A/D data are buffered in the FIFO memory. The FIFO size on PCI-9111 is 1024 (1K) words. If the sampling rate is 100 KHz, the FIFO can buffer 10.24 ms analog signal. After the FIFO is full, the lasting coming data will be lost. The software must read out the FIFO data before it becomes full.

The data must be transferred to host memory after the date is ready and before the FIFO is full. On the PCI-9111, many data transfer modes can be used. The different transfer modes are specified as follows:

Software Data Polling

The software data polling is the easiest way to transfer A/D data. This mode can be used with software A/D trigger mode. After the A/D conversion is triggered by software, the software should poll the FF_EF bit of the A/D status register until it becomes low level.

If the FIFO is empty before the A/D start, the FF_EF bit will be low. After the A/D is completed, the A/D data is written to FIFO mmediately, therefore the FF_EF becomes high. You can consider the FF_EF bit as converted data ready status. That is, FF_EF is high means the data is ready. Note that, while A/D is converted, the ADBUSY bit is low. After A/D conversion, the ADBUSY become high to indicate not busy. Please do NOT use this bit to poll the AD data.

26 Operation Theorem

Image 36
Contents NuDAQ Trademarks Getting service from Adlink QuestionsPage Features Applications Specifications Software Supporting B l e o f C o n t e n t sPCI PnP Registers Address Map Libraries Installation Programming Guide Hardware Interrupt Clear RegisterConversion Interrupt ControlTable of Contents ∙ What do you need VR Assignment Adjustment 9111utilHow to Use This Guide Page Features IntroductionSpecifications ApplicationsUnipolar 0~10V Bipolar -10V~+10V Software Supporting Programming LibraryPCIS-LVIEW LabVIEW Driver PCIS-VEE HP-VEE DriverDAQBenchTM ActiveX Controls DASYLabTM PROPCIS-ICL InControlTM Driver PCIS-OPC OPC ServerInstallation ∙ Software Installation GuideWhat You Have UnpackingPCI-9111s Layout PCB Layout of the PCI-9111Hardware Installation Outline Jumper DescriptionsDevice Installation for Windows Systems Connectors Pin Assignment∙ CN 1 Digital Signal Input DI 0 ~ ∙ CN 2 Digital Signal Output do 0 ~ ∙ CN 3 Analog Input/Output, Extended I/O, Trigger SignalsDaughter Board Connection Connect with ACLD-8125Connect with ACLD-9137 Connect with ACLD-9182Registers Format PCI PnP RegistersI/O Address Map A/D Data RegistersAddress Write Read I/O AddressA/D Channel Control Register Address Base + 0h Attribute read only Data FormatBit Address Base + 6h Attribute write only Data Format BitA/D Input Signal Range Control Register A/D Channel Read Back RegisterAddress Base + 6h Attribute read only Data Format Bit Address Base + 8h Attribute write only Data Format BitA/D Trigger Mode Control Register A/D Range and Status Read back RegisterAddress Base + 8h Attribute read only Data Format Bit Address Base + 0Ah Attribute write only Data Format BitMode Description Address Base + 0Eh Attribute write only Data Format BitAddress Base + 0Ch Attribute write only Data Format Bit 12 A/D Mode & Interrupt Control Read Back Register Hardware Interrupt Clear RegisterAddress Base + 48h Attribute write only Data Format Bit Address Base + 0Ah Attribute read only Data Format BitAddress Base + 4h Attribute write only Data Format Bit Address Base + 4h Attribute read only Data Format BitAddress Base + 2h Attribute read only Data Format 15 D/A Output Register Address Base + 2h Attribute write only Data Format BitAddress Base + 40h ~ Base + 46h Operation Theorem A/D Conversion1 A/D Conversion Procedure 2 A/D Signal Source ControlAnalog Input Signal Connection Signal Range 3 A/D Trigger Source Control4 A/D Data Transfer Modes External Trigger EITS=1, TPST=don‘t careFifo Half-Full Polling Pre-Trigger Control EOC Interrupt TransferTime 6 A/D Data Format FFFIRQ Level Setting Interrupt Control System ArchitectureDual Interrupt System Interrupt Source Control Extended Digital I/O PortD/A Conversion 44mV 88mVTimer/Counter Operation Introduction Digital Input and OutputPacer Trigger Source Pre-Trigger Counter4 I/O Address Libraries Installation ++ LibraryProgramming Guide Naming Convention Data Types9111Initial 9111DO++ DOS ++ Windows9111DOChannel 9111DI9111DIChannel 9111EDI9111EDO 10 9111EDOReadBack11 9111SetEDOFunction 12 9111DA 13 9111ADReadData14 9111ADReadDataRepeat 15 9111ADSetChannel16 9111ADGetChannel 17 9111ADSetRange Input Range Gain Gain Code18 9111ADGetRange 19 9111ADGetStatus20 9111ADSetMode 21 9111ADGetMode 22 9111INTSetReg24 9111ResetFIFO 23 9111INTGetReg25 9111ADSoftTrigger 26 9111Set825428 9111ADTimer 27 9111Get825429 9111CounterStart 30 9111CounterRead31 9111CounterStop 32 9111INTSourceControl 33 9111CLRIRQ 34 9111GetIRQChannel35 9111GetIRQStatus 36 9111ADFFHFPolling37 9111ADAquire 38 9111ADHRAquire39 9111ADINTStart 40 9111ADFFHFINTStart ++ Library ∙61 41 9111ADINTStatus 42 9111ADFFHFINTStatus43 9111ADFFHFINTRestart 44 9111ADINTStop Calibration What do you needA/D Adjustment VR AssignmentFunctions of VRs D/A Adjustment Unipolar Analog Output Bipolar Analog OutputSoftware Utility 9111utilRunning 9111util.exe System Configuration Calibration Functional Testing Function Testing Menu WindowIeeprom Product Warranty/Service