Article View: alt.msdos.programmer
Article #784How to generate interrupts from lpt port?
From: 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
Technical Details
Message-ID:
<7471@stan.xx.swin.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!goanna!escargot!stan!aasShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!goanna!escargot!stan!aas From: aas@stan.xx.swin.oz.au (SERGEJEW A) Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer Subject: How to generate interrupts from lpt port? Message-ID: <7471@stan.xx.swin.oz.au> Date: 20 Nov 92 08:15:50 GMT Followup-To: alt.msdos.programmer Organization: Comp. Centre, Swinburne University of Tech., Melbourne, Australia Lines: 28