🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.ibm.pc.programmer
1 messages
1 total messages Started by Shu-Jye Syau Wed, 17 Apr 1991 08:19
I/O interrupt for voice card
#1169
Author: Shu-Jye Syau
Date: Wed, 17 Apr 1991 08:19
23 lines
1652 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads