Omega Engineering OMG-PCI-DIO48 Direct Hardware Control, Reading the Inputs, Reading the Outputs

Page 18

Technical Description

C1-6

C1-7

C2-6

C2-7

Figure 9-(Print and fill in for your configuration)

Direct Hardware Control

In systems where the users program has direct access to the hardware (DOS) the tables below gives the mapping and functions that the 8005 provide. The address of each eight-bit port is calculated as shown in the table on the following page, the cards base address plus an offset.

Reading the Inputs:

The inputs are active high. If an input is driven high (2V to 5.25 V) it will read as a logical one (1), if driven low (0V to 0.8V) it will read as a logical zero (0). If an input is not driven it will read as a one due to the 10K ohm pull up resistors on each port.

Reading the Outputs:

The value that is currently being used to drive the outputs will be returned.

Presetting an Output Port:

Each port has an output register associated with it. This register may be written and retains its value whether the port is configured as an input or an output. To preset the value of an output port the program should write to the port when it is configured as an input then configure it as an output.

Writing the Outputs:

The outputs are active high. Writing a one (1) corresponds to 5V while writing a zero (0) corresponds to 0V, at the output.

Bit Set/Reset

Port C supports bit set/reset as shown in the tables below.

Port Configuration:

Each port can be configured as an input or an output by writing to its direction control bit, refer to the tables below.

OMG-PCI-DIO48

Page 14

Image 18
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 C relative addressing when port C is split Port ConfigurationRelative 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 OutputsInterrupts 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