PIO-D64/PIO-
D64U User’s Manual ( Ver.1.
6, Mar. 2015, PMH-007-16 ) ----- 33
3.3.5 Aux Status Register
(Read/Write): wBase+7
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Aux7
Aux6
Aux5
Aux4
Aux3
Aux2
Aux1
Aux0
Note. Refer to Sec. 3.1 for more information about wBase.
Aux0=INT_CHAN_0, Aux1=INT_CHAN_1, Aux2=INT_CHAN_2,
Aux3=INT_CHAN_3, Aux7~4=Aux-ID. The Aux 0~3 are used as interrupt sources.
The interrupt service routine has to read this register for interrupt source
identification. Refer to Sec. 2.7 for more information.
3.3.6 Interrupt Polarity Control 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
0
INV2
INV1
INV0
Note. Refer to Sec. 3.1 for more information about wBase.
INV0/1/2=0
select the invert signal from INT_CHAN_0/1/2
INV0/1/2=1
select the non-invert signal from INT_CHAN_0/1/2
outportb(wBase+0x2a,0); /* select the invert input from all 3 channels */
outportb(wBase+0x2a,0x0f);
/* select the non-invert input from all 3 channels */
outportb(wBase+0x2a,0x0e); /* select the inverted input of INT_CHAN_0 */
/* select the non-inverted input from the others */
outportb(wBase+0x2a,0x0c);
/* select the inverted input of INT_CHAN_0 & */
/* INT_CHAN_1 */
/* select the non-inverted input from the others */
Refer to DEMO6.C of DOS for more information.
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru