Omega Engineering OMG-PCI-DIO48 manual Interrupt mode select table

Page 25

Technical Description

Interrupt control

When enabled interrupts are generated on A10 and A20 (Pin 47 on each 50 pin header), for this reason to use interrupts on a Port its A byte must be set as an input.

IRQENX

interrupt enable

 

 

1 = enabled

 

0 = disabled ( 0 on power up )

IRQCX0

 

 

 

Interrupt mode select see table

IRQCX1

 

 

 

Interrupt mode select see table

 

 

 

Figure 12-Interrupt Control

 

 

 

Interrupt mode select table

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IRQCX1

 

IRQCX0

INT Type

 

 

 

 

 

0

 

0

 

 

Low level

 

 

 

 

 

0

 

1

 

 

High level

 

 

 

 

 

1

 

0

 

 

Falling edge

 

 

 

 

 

1

 

1

 

 

Rising edge

 

 

 

 

 

Figure 13-Interrupt Mode

 

 

 

Interrupt Read

 

 

 

 

 

 

 

 

 

reading this port clears the interrupt

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IRQST1

 

(D0) Interrupt status

 

1 = interrupt pending, 0 = none

 

IRQST2

 

(D4) Interrupt status

 

1 = interrupt pending, 0 = none

 

Figure 14-Interrupt Read

OMG-PCI-DIO48

Page 21

Image 25
Contents User’sGuide Mexico CanadaBenelux Czech RepublicContents Figures Introduction InstallationSystem Installation Software Technical Description3rd Party Software Support Electrical Characteristics Electrical CharacteristicsPull Up Resistors Pull Ups50 Pin Ribbon Cable Pin Out Pin Ribbon Pin OutPort C absolute addressing when port C is split Presetting an Output PortApplication Programmers Interface API InterruptsPort Configuration Port C relative addressing when port C is splitRelative Addressing vs. Absolute Addressing OMG-PCI-DIO48 Port API Port # Absolute Address Function Port Absolute AddressRelative Byte Address Direct Hardware Control Bit Set/ResetReading the Inputs Reading the OutputsInterrupts can be set up as shown in the tables on the next IRQST2 IRQST1 Register Description for direct hardware controlOMG-PCI-DIO48 Control Words Bit Set or Reset Port C OMG-PCI-DIO48 Interrupt mode select table Environmental Specifications SpecificationsPower Consumption Physical DimensionsAppendix a Troubleshooting Appendix B How To Get Assistance Appendix C Silk-Screen Appendix D Compliance Notices WARRANTY/DISCLAIMER Temperature