Omega Engineering OMG-PCI-DIO48 manual Control Words

Page 22

Technical Description

Control Words

n = control word for port1 or 2

I/O Configuration

CWnD0

 

Port C1 lower nibble (bits 0-3)

 

1 = input

 

0 = output

 

1 on power up

 

CWnD1

 

Port B1

 

 

 

 

 

 

1 = input

 

0 = output

 

1 on power up

 

CWnD2

 

 

 

 

 

 

 

 

0 or 1 (no effect)

 

 

 

 

 

 

CWnD3

 

Port C1 upper nibble (bits 4-7)

 

1 = input

 

0 = output

 

1 on power up

 

CWnD4

 

Port A1

 

 

 

 

 

 

1 = input

 

0 = output

 

1 on power up

 

CWnD5

 

 

 

 

 

 

 

 

0 or 1 (no effect)

 

 

 

 

 

 

CWnD6

 

 

 

 

 

 

 

 

0 or 1 (no effect)

 

 

 

 

 

 

CWnD7

 

 

 

 

 

 

 

 

 

Always a 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Control Word (X = 0)

 

 

 

Hex Value

 

 

 

 

Port Setup

 

 

7

6

5

4

3

2

1

0

 

 

 

 

A

B

 

C Upper

C Lower

 

1

X

 

X

0

0

X

0

0

 

80

 

Out

Out

 

Out

Out

 

1

X

 

X

0

0

X

0

1

 

81

 

Out

Out

 

Out

In

 

1

X

 

X

0

0

X

1

0

 

82

 

Out

In

 

Out

Out

 

1

X

 

X

0

0

X

1

1

 

83

 

Out

In

 

Out

In

 

1

X

 

X

0

1

X

0

0

 

88

 

Out

Out

 

 

In

Out

 

1

X

 

X

0

1

X

0

1

 

89

 

Out

Out

 

 

In

In

 

1

X

 

X

0

1

X

1

0

 

 

8A

 

Out

In

 

 

In

Out

 

1

X

 

X

0

1

X

1

1

 

 

8B

 

Out

In

 

 

In

In

 

1

X

 

X

1

0

X

0

0

 

90

 

In

Out

 

Out

Out

 

1

X

 

X

1

0

X

0

1

 

91

 

In

Out

 

Out

In

 

1

X

 

X

1

0

X

1

0

 

92

 

In

In

 

Out

Out

 

1

X

 

X

1

0

X

1

1

 

93

 

In

In

 

Out

In

 

1

X

 

X

1

1

X

0

0

 

98

 

In

Out

 

 

In

Out

 

1

X

 

X

1

1

X

0

1

 

99

 

In

Out

 

 

In

In

 

1

X

 

X

1

1

X

1

0

 

 

9A

 

In

In

 

 

In

Out

 

1

X

 

X

1

1

X

1

1

 

 

9B

 

In

In

 

 

In

In

 

Figure 11-Control Words

OMG-PCI-DIO48

Page 18

Image 22
Contents User’sGuide Benelux CanadaMexico Czech RepublicContents Figures Installation IntroductionSystem Installation Technical Description Software3rd Party Software Support Electrical Characteristics Electrical CharacteristicsPull Ups Pull Up ResistorsPin Ribbon Pin Out 50 Pin Ribbon Cable Pin OutApplication Programmers Interface API Presetting an Output PortPort C absolute addressing when port C is split InterruptsPort Configuration Port C relative addressing when port C is splitRelative Addressing vs. Absolute Addressing OMG-PCI-DIO48 Port API Port # Absolute Address Function Absolute Address PortRelative Byte Address Reading the Inputs Bit Set/ResetDirect Hardware Control Reading the Outputs Interrupts can be set up as shown in the tables on the next Register Description for direct hardware control IRQST2 IRQST1OMG-PCI-DIO48 Control Words Bit Set or Reset Port C OMG-PCI-DIO48 Interrupt mode select table Power Consumption SpecificationsEnvironmental Specifications Physical DimensionsAppendix a Troubleshooting Appendix B How To Get Assistance Appendix C Silk-Screen Appendix D Compliance Notices WARRANTY/DISCLAIMER Temperature