Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!caen!news.cs.indiana.edu!bronze!copper!nengle From: nengle@copper.ucs.indiana.edu (nathan engle) Newsgroups: comp.os.msdos.programmer Subject: Re: I/O and Intel 8259A Message-ID: <1991Apr8.132906.8392@bronze.ucs.indiana.edu> Date: 8 Apr 91 13:29:06 GMT References: <16410@chaph.usc.edu> Sender: news@bronze.ucs.indiana.edu (USENET News System) Organization: Indiana University, Bloomington Lines: 40 In article <16410@chaph.usc.edu> syau@aludra.usc.edu (Shu-Jye Syau) writes: >Hi : > I install a voice card in PC , when voice input , the ADC will interrupt >8259A , and execute a interrupt handler to read in digital data from ADC . >(hardware interrupt). > > My problem is how can I get the interrupt number ? > I use TC 2.0 , setvect(intno,int_vect) . > You need to do a little reading and research. Somewhere in your manual (or maybe even silkscreened on the voice card itself) there should be a jumper block or setup option that says what IRQ level the voice card generates for its ADC End-of-Conversion interrupt. My guess is that the board defaults to either IRQ2 (for XTs), IRQ5 (for ATs), or IRQ3 (which would work in either but would conflict with COM2 if it's installed. As hardware IRQ's come in through the 8259, it has been set up (and this is standard for all IBM compatibles) so that the actual interrupt generated is equal to the IRQ level + 8. Therefore IRQ2 comes in on interrupt vector 0x0A (8 + 2), IRQ3 comes in as 0x0B, etc. So you need to find out what interrupt the voice card is using in order to find out which interrupt vector to use. > The data inport address is 0x0394 . > Please help !!!!! The I/O address of a card like this almost never tells you which interrupt it'll use. Standard cards like disk controllers and serial ports have standard assignments that can clue you in on what IRQ they should use, but voice cards just aren't common enough for this sort of identification method. >scott >USC >syau@aludra.usc.edu Nathan Engle Software Evangelist Indiana University Dept of Psychology nengle@copper.ucs.indiana.edu