Omega Engineering IOP-241 user manual Port C Interrupt Description, External Interrupt Description

Page 24

4.2Port C Interrupt Description

The eight Port C I/O channels (DATA23 - DATA16) may also be configured as interrupt sources. If any of these eight I/O channels are used to generate an interrupt, the I/O channel must be configured for input by latching the appropriate bit in the Data Port C Control Register to '1'. The interrupt must also be enabled by setting the appropriate bit in the Port C Interrupt Enable Register. Eight interrupt sources (INT7 - INT0) may be enabled in this manner; each of these interrupt sources corresponds to an I/O channel in Port C.

The mode of the port C interrupt sources may be configured in one of four possible manners: level sensitive active low interrupt, level sensitive active high interrupt, high-to-low transition edge sensitive interrupt and low-to-high transition edge sensitive interrupt. The lower nibble (4 bits) and upper nibble (4 bits) of the Port C interrupt sources may be configured separately. This will allow INT7 - INT4 to be configured for a different mode than INT3 - INT0. These modes are configured by writing the Interrupt Mode Control Register.

Whenever an interrupt is generated due to a Port C interrupt source, the corresponding bit of the Interrupt Status Register is set to reflect the cause of the interrupt. This provides a mechanism for determining the source of a detected interrupt. The Interrupt Status Register will be continually updated as additional interrupt generating conditions appear.

Writing a '1' to the appropriate bit of the Interrupt Acknowledge Register is the method by which interrupts should be acknowledged. After a write to the Interrupt Acknowledge Register, another interrupt will be generated if the Interrupt Status Register does not contain a value of 00h. Any bit in the Interrupt Status Register which has a value of '1' can be reset to a value of '0' if the following two conditions are met: first the corresponding bit in the Interrupt Acknowledge Register must be written with a '1' and second, the interrupt generating condition must no longer exist. For level sensitive interrupts, an interrupt will be immediately generated after the write of the Interrupt Acknowledge Register if the interrupt generating condition (active level on Port C interrupt source) remains.

4.3External Interrupt Description

In addition to the eight Port C interrupt sources, an additional external interrupt source is provided in the IOP-241. This external interrupt source is accessed through Pin 29 of the external connector. The external interrupt source permits the IOP-241 to be operated with 24-bit input/output and one separate interrupt source.

The Interrupt Mode Control Register provides a means of enabling/disabling this external interrupt, setting the external interrupt mode, reading the status of the external interrupt and acknowledging the external interrupt. The functionality of this external interrupt source is identical to that described for the Port C interrupt sources in the previous section.

IOP-241 Users Manual

24

Image 24
Contents 15,1*,1 WARRANTY/DISCLAIMER Manufacturers Name Manufacturer’s AddressApplication of Council Directive Standards to which Conformity is DeclaredServicing North America For immediate technical or application assistanceServicing Europe Page Table of Contents Page List of Figures and Tables IOP-241 Features System ConfigurationClient Driver recommended Enabler IOP-241 Client Driver for DOSClient Driver Installation Command Line Options Device = C\IOP241CL.SYSPage Common Problems IOP-241 Enabler for DOS Enabler Installation DEVICE=C\IOP241EN.EXE Common Problems After Completing Configuration Installing the IOP-241 Under Windows 95/98 Resource Settings in Windows 95/98Changing Resource Settings with Device Manager After Completing Configuration I/O Port Description Port C Interrupt Description External Interrupt DescriptionData Port a Control Register Base + Offset Read/Write RegisterData Port B Control Register Base + Data Port C Control Register Base +Port C Interrupt Enable Register Base + Bit Name DescriptionInterrupt Mode Control Register Base + Interrupt Status Register Read Only Base +Interrupt Acknowledge Register Write Only Base + Summary of Interrupt Source OptionsPort C Interrupt Sources Summary of Input/Output Options External Interrupt SourceProgramming Example External Connections Optional Accessories CP-1037 Cable AssemblyUIO-37 Screw Terminal Block Physical Dimensions Power RequirementsConnector Bus InterfaceVersion January 25