Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!chaph.usc.edu!aludra.usc.edu!syau From: syau@aludra.usc.edu (Shu-Jye Syau) Newsgroups: comp.sys.ibm.pc.programmer Subject: I/O interrupt for voice card Message-ID: <16648@chaph.usc.edu> Date: 17 Apr 91 08:19:46 GMT Sender: news@chaph.usc.edu Distribution: usa Organization: University of Southern California, Los Angeles, CA Lines: 23 Nntp-Posting-Host: aludra.usc.edu Originator: syau@aludra.usc.edu 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