cleeland@rex.cs.tulane.edu (Chris Cleeland) (08/10/89)
Can anyone help me try to figure out how to get a PC (PS/2, if that matters) to generate interrupts when a character is received at the serial port? Also, once the interrupt occurs, what vector does it jump through? I *think* I know how to get it to generate the interrupt -- what I don't understand is how to tell it where to okgo once an interrupt is generated. I'm using Microsoft C 5.1, and sample code in that dialect of the language would help tremendously. I also have access to Turbo C (don't know the version), so sample code could work for that also. References to books would also help, unless they are to books on assembler -- I'm not familiar with 80xxx family assembly language, so I would have to go through a complete learning curve just to understand what you had referred me to. Basically, I'll take any help I can get. My object is to write a rudimentary serial communications library in C which closely mimics the behavior of C's standard stream i/o functions. Any pointers? Finally, I have a very difficult time keeping up with this newsgroup as I don't get a chance to log in daily. So, could replies please be sent via e-mail? I promise/swear/sign-in-blood that I will summarize to the net if response is high enough. Thank you for your time (and knowledge) -- Thanks Chris Cleeland, Tulane University ADDRESS: cleeland@rex.tulane.cs.edu Disclaimer: "I'm a student -- I can't afford to buy one!"
davidsen@sungod.crd.ge.com (ody) (08/11/89)
I haven't done this since the XT was new stuff, but I believe that there are three things to be done, enable the interrupt in the USART, enable the interrupt controller mask (8259) and enable the serial interrupts on the motherboard. It's all in the tech ref manual (hint). bill davidsen (davidsen@crdos1.crd.GE.COM) {uunet | philabs}!crdgw1!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me