PIO-D48 Series Card
48-channel OPTO-22 Compatible DIO Board
User Manual/Ver. 3.4/Aug. 2015/PMH-006-34/Page: 40
6.3.4 Interrupt Polarity Register
(Read/Write): wBase+0x2A
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
0
0
INV3
INV2
INV1
INV0
This register provides a function to control invert or non-invert for the interrupt signal source. A
detailed application example is given below.
INV0=0
select the inverted signal from interrupt_channel_0
INV0=1
select the non-inverted signal from interrupt_channel_0
INV1= Control interrupt channel_1
INV2= Control interrupt channel_2
INV3= Control interrupt channel_3
For example:
/* select the non-inverted input from all 4 channel */
outportb(wBase+0x2a,0x0f);
/* select the inverted input from all 4 channel */
outportb(wBase+0x2a,0x00);
/* select the inverted input of INT_CHAN_0 */
/* select the non-inverted input from the others */
outportb(wBase+0x2a,0x0e);
/* select the inverted input of INT_CHAN_0& INT_CHAN_1 */
/* select the non-inverted input from the others */
outportb(wBase+0x2a,0x0c);
Refer to
Sec. 2.7
and DEMO5.C (DOS) for more information.