Advantech PCI-1718 Series Carbon Monoxide Alarm User Manual


 
PCI-1718 Series User Manual 48
while(iflag==0) {;}
/***** FIFO HALF Interrupt and Get Data *****/
for(k=0;k<512;k++)
{
iflag=0;
ad_lb=inportb(base_addr+0x17);
ad_hb=inportb(base_addr+0x18);
/***** Save to Memory *****/
Add your code here
/**************************/
i++;
}
/*******************************************/
}
}
void interrupt isr(void)
{
disable();
iflag = 1;
/***** Add your code here *****/
outportb(base_addr+0x14,0); // Clear FIFO Interrupt
/******************************/
outportb(0x20,0x20);
outportb(0xA0,0x20);
enable();
}