[comp.sys.ibm.pc] I/O interrupt for voice card

syau@aludra.usc.edu (Shu-Jye Syau) (04/17/91)

Hi :
    I have asked a question about hardware interrupt to read in data from
predefined I/O port via 8259A interrupt controller .
    Now I have another problem . The situation is that I let voice input
to my own voice card , via hardware interrupt , CPU will read data from port
addrass 0x394 , and store these digital data into a file . Then after some
modifications , still using ADC interrupt (because DAC has no interrupt) , 
retrive data from file and send to port 0x395 .
    But I can't store the data into file , only can read in datas . I use 
MS.C 6.0 . I setvbuf(fp , ...., 4956) before fputc(fp ..) , and there are
datas in buffer , but not in files .
    Am I got problem in interrupt routine ? but it does read in data , and I
check hardware wires , it works fine .
    One more question , because I use interrupt to control read in data and
write out data , I have to put options in my interrupt routine , how should I
do ? my sampling rate is 8000 bps ( is that I have interrupt 1000 times/sec
to read in 8-bit data ? ) , or can I find any reference program ?


PLEASE return mail to my e-mail address . Thanks !

scott
syau@aludra.usc.edu