Omega Engineering IOP-241 user manual Summary of Input/Output Options, External Interrupt Source

Page 30

(2)External Interrupt Source

(a)The following must be programmed:

(i)Interrupt source enabled via Interrupt Mode Control Register.

(ii)Mode selected via Interrupt Mode Control Register.

(b)Interrupt generated if ExtIntStat of Interrupt Mode Control Register is '1'.

(c)'1' in ExtIntStatus is reset to '0' if the following two requirements are satisfied:

(i)Interrupt acknowledged by writing ExtIntAck with '1'.

(ii)Condition which caused interrupt is no longer present.

5.9Summary of Input/Output Options

Each of the three ports (Port A, Port B, Port C) may be configured in one of three manners:

(1)PORT USED AS AN OUTPUT

(a)Write a '1' to the appropriate bits of the latch in order to turn 'off' the output module.

(b)Write a '0' to the appropriate bits of the latch in order to turn 'on' the output module.

(2)PORT USED AS AN INPUT

(a)Writing a '1' to all the bits of the latch will allow all the channels of the port to be read as inputs. (Writing a '0' to any bits of the latch will 'mask' those bits. Those bits will always be read as a '0').

(3)PORT USED AS INPUT AND OUTPUT

If a port is to be used so that some channels are inputs and some channels are outputs, it must be insured that the channels to be used as inputs are initialized as inputs. This is done by writing a '1' to the bits of the data port control register representing the I/O channels which are to be used as inputs anytime the port is written.

(a)The channels which are to be inputs should always be written with a '1' and never written with a '0'.

(b)The channels which are to be outputs should be written with the appropriate value ('0' or '1').

(c)The channels which are latched with a '0' will always be '0' when read (they are 'masked' from input).

IOP-241 Users Manual

30

Image 30
Contents 15,1*,1 WARRANTY/DISCLAIMER Application of Council Directive Manufacturers NameManufacturer’s Address 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 Connector Physical DimensionsPower Requirements Bus InterfaceVersion January 25