HP 9112 manual Digital I/O register, 26 ∙ Registers Format

Page 34

3.7Digital I/O register

There are 16 digital input channels and 16 digital output channels provided by the PCI-9112. The address Base + 1C is used to access digital inputs and control digital outputs.

Address

 

: BASE + 1C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Attribute

 

: read only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data Format:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

7

 

 

 

5

 

4

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bas

D

 

 

 

D

 

D

 

 

 

D

 

 

 

 

 

 

e

+

I

 

I

 

I

 

I

 

I

 

I

 

 

 

 

 

 

1C

 

7

 

 

 

5

4

 

 

 

2

 

 

 

 

 

 

Bas

D

 

 

 

D

 

D

 

 

 

D

 

 

 

 

 

 

e

+

I

 

I

 

I

 

I

 

I

 

I

 

 

 

 

 

 

1D

 

1

 

 

 

1

1

 

 

 

1

 

 

 

 

 

 

 

 

5

 

 

 

3

2

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bas

-

 

-

 

-

-

 

-

 

-

 

 

 

 

 

 

e

+

-

 

-

 

-

-

 

-

 

-

 

 

 

 

 

 

1E

 

-

 

-

 

-

-

 

-

 

-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bas

-

 

-

 

-

-

 

-

 

-

 

 

 

 

 

 

e

+

-

 

-

 

-

-

 

-

 

-

 

 

 

 

 

 

1F

 

-

 

-

 

-

-

 

-

 

-

 

 

 

 

 

Address

 

: BASE + 1C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Attribute

 

: write only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data Format:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

7

 

6

 

5

 

4

 

3

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bas

D

 

 

D

 

D

 

D

 

D

 

D

 

 

 

 

 

e

+

O

 

 

O

 

O

 

O

 

O

 

O

 

 

 

 

 

1C

 

7

 

6

 

5

 

4

3

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bas

D

 

 

D

 

D

 

D

 

D

 

D

 

 

 

 

 

e

+

O

 

 

O

 

O

 

O

 

O

 

O

 

 

 

 

 

1D

 

1

 

1

 

1

 

1

1

1

 

 

 

 

 

 

 

5

 

4

 

3

 

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bas

-

 

-

 

-

 

-

-

-

 

 

 

 

 

e

+

-

 

-

 

-

 

-

-

-

 

 

 

 

 

1E

 

-

 

-

 

-

 

-

-

-

 

 

 

 

 

Bas

-

 

-

 

-

 

-

-

-

 

 

 

 

 

e

+

-

 

-

 

-

 

-

-

-

 

 

 

 

 

1F

 

-

 

-

 

-

 

-

-

-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

26 Registers Format

Image 34
Contents Page ALL Rights Reserved TrademarksDetailed Company Information Adlink Technology IncQuestions Page Contents 9112DO 9112DA 9112ADSetChannel 9112ADSetRange ConversionConversion Digital Input and Output 9112DblBufferTransfer 9112GetOverrunStatusSoftware Utilities Appendix A. Demo. Programs Product Warranty/ServiceWhat do you need VR Assignment Adjustment PCI Scan UtilityHow to Use This Guide T r o d u c t i o n FeaturesIntroduction ∙ Analog Input A/D SpecificationsApplications Analog Output D/ADigital I/O DIO General SpecificationsProgrammable Counter Programming Library Software SupportingPCIS-LVIEW LabVIEW Driver DASYLabTM PRO PCIS-VEE HP-VEE DriverDAQBenchTM ActiveX Controls PCIS-DDE DDE Server and InTouchTM∙ Installation InstallationWhat You Have Installation ∙ Device Installation for Windows SystemsUnpacking Converter PCB LayoutPCI-9112 Layout PCI -Bus ControllerCPCI-9112 Layout PCB Layout of the PCI-9112Analog Input Channel Configuration Jumper Settings10 ∙ Installation Clock Source Setting D/A Reference Voltage SettingInternal Reference Voltage Setting 12 ∙ InstallationCN 3 Analog Input / Output & Counter/Timer Connectors Pin AssignmentsPin Assignments of PCI-9112 CN 2 Digital Signal Output do 0 CN 1 Digital Signal Input DI 014 ∙ Installation Pin Assignments of cPCI-9112 Hardware Installation Outline 16 ∙ InstallationConnect with ACLD-9137 Daughter Board ConnectionConnect with ACLD-8125 Connect with ACLD-9182Connect with ACLD-9185 18 ∙ InstallationConnect with ACLD-9138 and ACLD-9188 I/O Registers Map G i s t e r s F o r m a tRegisters Format ∙ A/D Data Registers 20 ∙ Registers FormatD/A Output Register Mode A/D control Register22 ∙ Registers Format Auto-Scan Bit MUX Register Bit8 ~ Bit524 ∙ Registers Format A/D Status Register Software Trigger RegisterDigital I/O register 26 ∙ Registers FormatHigh Level Programming Internal Timer/Counter RegisterLow Level Programming A/D Conversion Analog Input Signal ConnectionE r a t i o n T h e o r e m 28 ∙ Operation TheoremDifferential input mode Single-ended ModeOperation Theorem ∙ 4 Floating source and differential input 30 ∙ Operation Theorem2 A/D Trigger Modes 1 A/D Conversion ProcedureTimer Pacer Trigger Software triggerSoftware Data Transfer Drdy 3 A/D Data Transfer ModesExternal Trigger Interrupt Transfer IntxD/A Conversion DMA Transfer DmaxDigital Input and Output 34 ∙ Operation TheoremTimer/Counter Operation CounterAddress General Purpose Timer/ CounterPacer Trigger Source 36 ∙ Operation TheoremControl Byte Mode Definitions 38 ∙ Operation Theorem+ + L i b r a r y Libraries Installation++ Library ∙ Data Types Programming GuideNaming Convention 40 ∙ C/C++ LibraryArgument 9112InitialSyntax Return CodeDescription 9112DI9112DI Channel 42 ∙ C/C++ Library9112DO 9112DA 44 ∙ C/C++ Library9112ADSetChannel 9112ADSetRange 46 ∙ C/C++ Library10 9112ADSetMode Cardnumber the card number of PCI-911211 9112ADSetAutoscan 48 ∙ C/C++ Library12 9112ADSoftTrig 13 9112ADAquire 50 ∙ C/C++ Library14 9112ADDMAStart 52 ∙ C/C++ Library 15 9112ADDMAStatus 16 9112ADDMAStop 54 ∙ C/C++ Library17 9112ContDmaStart 18 9112CheckHalfReady 56 ∙ C/C++ Library19 9112DblBufferTransfer 20 9112GetOverrunStatus21 9112ContDmaStop 58 ∙ C/C++ Library22 9112ADINTStart 23 9112ADINTStatus 60 ∙ C/C++ Library25 9112ADTimer 24 9112ADINTStop2MHz / c1 * c2 62 ∙ C/C++ Library26 9112TIMERStart 27 9112TIMERReadArgument cardnumber countervalue 28 9112TIMERStop29 9112AllocDMAMem 64 ∙ C/C++ Library30 9112FreeDMAMem 32 9112GetSample66 ∙ C/C++ Library What do you need CalibrationCalibration ∙ Bipolar Calibration A/D AdjustmentVR Assignment Unipolar CalibrationReference Voltage Calibration D/A Adjustment2 D/A Channel Calibration Software Utility Software Utilities70 ∙ Software Utility Calibration System ConfigurationRunning the Utility Software Utility ∙PCI Scan Utility Functional Testing72 ∙ Software Utility Windows 95 DLL P e n d i x a . D e m o O g r a m sDOS Software Appendix a Demo Programs ∙74 ∙ Appendix a Demo Programs Product Warranty/Service Product Warranty/Service ∙