Thread View: alt.msdos.programmer
2 messages
2 total messages
Started by SERGEJEW A
Fri, 20 Nov 1992 08:15
How to generate interrupts from lpt port?
Author: SERGEJEW A
Date: Fri, 20 Nov 1992 08:15
Date: Fri, 20 Nov 1992 08:15
28 lines
1974 bytes
1974 bytes
I have a student who is trying to convert a psychophysiology program from polling to interrupt-driven and we've struck a conceptual hurdle with the input side of things. The idea is to have a couple of push buttons under the control of the subject be registered by the PC. Previously the buttons had been connected to a games port and the right port addresses polled to catch the button press. Moving to an interrupt-driven model, since we couldn't figure out how to generate an interupt from the games port, we thought we'd try instead the control lines of the centronics lpt port. The only problem is, although polling can catch lpt status changes, we can't figure out how to set an interrupt off this either. Can anyone tell us how to do this if it is possible at all? If not, does anyone have any bright ideas on how to generate an interupt on a button-press? Thanks in anticipation Alex. --- Dr Alex A Sergejew, Center for Applied Neurosciences, Swinburne _--_|\ University of Technology, PO Box 218, Hawthorn, Vic 3122, Australia. / \ Internet: aas@swin.oz.au \_.--.x/ Phone: (voice) +61-3-819 8891 (fax) +61-3-819 0856 v -- Dr Alex A Sergejew, Center for Applied Neurosciences, Swinburne _--_|\ University of Technology, PO Box 218, Hawthorn, Vic 3122, Australia. / \ Internet: aas@swin.oz.au \_.--.x/ Phone: (voice) +61-3-819 8891 (fax) +61-3-819 0856 v
Re: How to generate interrupts from lpt port?
Author: Juha Pehkonen
Date: Mon, 23 Nov 1992 13:39
Date: Mon, 23 Nov 1992 13:39
13 lines
840 bytes
840 bytes
aas@stan.xx.swin.oz.au (SERGEJEW A) writes: >lines of the centronics lpt port. The only problem is, although polling >can catch lpt status changes, we can't figure out how to set an interrupt >off this either. I won't be able to help you much yet, but I'll try to find out and send you more information later today. Meanwhile, I suppose you know which interrupt is used by Lpt port? Juha Pehkonen jpehko@cs.joensuu.fi University of Joensuu, Finland
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