Omega Vehicle Security OME-PIO-D56 User Manual

Page 51

Advertising
background image

OME-PIO-D56/OME-PIO-D24 User Manual (Ver.2.1, Oct/2003)

---- 49

else /* now PC1 is change to low */

{

CNT_L2++;

}

invert=invert^2; /* to generate a high pulse */

}

if ((int_c&0x4)!=0) /* INT_CHAN_2 is active */

{

if ((new_int_state&0x4)!=0)/* now PC2 is change to high */

{

CNT_H3++;

}

else /* now PC2 is change to low */

{

CNT_L3++;

}

invert=invert^4; /* to generate a high pulse */

}

if ((int_c&0x8)!=0) /* INT_CHAN_3 is active */

{

if ((new_int_state&0x8)!=0)/* now PC3 is change to high */

{

CNT_H4++;

}

else /* now PC3 is change to low */

{

CNT_L4++;

}

invert=invert^8; /* to generate a high pulse */

}

now_int_state=new_int_state;

outportb(wBase+0x2a,invert);

if (wIrq>=8) outportb(A2_8259,0x20);

outportb(A1_8259,0x20);

}

Advertising