Omega Engineering IOP-241 user manual Interrupt Mode Control Register Base +

Page 28

5.5Interrupt Mode Control Register (Base + 6)

The mode of both the external interrupt and the Port C interrupts may be controlled with the Interrupt Mode Control Register. The upper nibble (4 bits) and lower nibble (4 bits) of the Port C interrupts may be configured separately. The external interrupt may also be enabled by writing this register. The status of the external interrupt may be read in this register and the external interrupt may also be acknowledged by writing the appropriate bit in the Interrupt Mode Control Register.

 

Bit

Name

 

Description

 

 

 

 

 

 

 

 

 

 

7

ExtIntStat(Read)

ExtIntStat: to read status of external interrupt

 

 

 

ExtIntAck(Write)

ExtIntAck: write acknowledges external interrupt

 

 

 

 

 

 

 

6

ExtraIntEn

1 = external interrupt is enabled

 

 

 

 

0 = external interrupt is disabled

 

 

 

 

 

 

 

5:4

ExtIntControl

These two bits control the mode of the external

 

 

 

 

interrupt:

 

 

 

 

00

= Level Sensitive Active Low Interrupt

 

 

 

 

01

= Level Sensitive Active High Interrupt

 

 

 

 

10

= High-to-low Transition Edge Sensitive Interrupt

 

 

 

 

11

= Low-to-high Transition Edge Sensitive Interrupt

 

 

 

 

 

 

 

3:2

UpperIntCntrl

These two bits control the mode of the Upper Nibble of

 

 

 

 

Port C (INT7, INT6, INT5, INT4):

 

 

 

 

00

= Level Sensitive Active Low Interrupt

 

 

 

 

01

= Level Sensitive Active High Interrupt

 

 

 

 

10

= High-to-low Transition Edge Sensitive Interrupt

 

 

 

 

11

= Low-to-high Transition Edge Sensitive Interrupt

 

 

 

 

 

 

 

1:0

LowerIntCntrl

These two bits control the mode of the Lower Nibble of

 

 

 

 

Port C(INT3, INT2, INT1, INT0):

 

 

 

 

00

= Level Sensitive Active Low Interrupt

 

 

 

 

01

= Level Sensitive Active High Interrupt

 

 

 

 

10

= High-to-low Transition Edge Sensitive Interrupt

 

 

 

 

11

= Low-to-high Transition Edge Sensitive Interrupt

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 5-6. Interrupt Mode Control Register

5.6Interrupt Status Register (Read Only) (Base + 7)

On a read, this register provides the interrupt status for the Port C interrupts. This provides a mechanism for determining the sources of any pending interrupts. A '1' signals that an interrupt generating condition has occurred on the appropriate channel. Interrupts will continue to occur until this register has a value of 00h and no interrupt generating conditions remain. This register must be 'reset' by acknowledging interrupts via writing the Interrupt Acknowledge Register.

 

Bit

Name

Description

 

 

 

 

 

 

 

 

 

7:0

ChanCIntStatus

The Status of INT7 - INT0 is read

 

 

 

 

(Bit 7 = INT7, Bit 6 = INT6, etc...)

 

 

 

 

 

 

 

 

 

 

 

Table 5-7. Interrupt Status Register (Read Only)

IOP-241 Users Manual

28

Image 28
Contents 15,1*,1 WARRANTY/DISCLAIMER Manufacturers Name Manufacturer’s AddressApplication of Council Directive Standards to which Conformity is DeclaredFor immediate technical or application assistance Servicing North AmericaServicing 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 +Summary of Interrupt Source Options Interrupt Acknowledge Register Write Only Base +Port 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