Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ukma!nrl-cmf!cmcl2!yale!spolsky-joel From: spolsky-joel@CS.Yale.EDU (Joel Spolsky) Newsgroups: comp.sys.ibm.pc Subject: buffered serial input Message-ID: <41341@yale-celray.yale.UUCP> Date: 26 Oct 88 01:35:30 GMT Sender: root@yale.UUCP Reply-To: spolsky-joel@CS.Yale.EDU (Joel Spolsky) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 24 Hi folks! Can anybody show me how to implement an interrupt-driven input buffer for the COM ports (preferably, in Turbo-C? I am losing too much data using polled input :-(. Let's say I've defined a function void interrupt interrupthandler() { ..... } which adds data to the buffer. How do I install the function as an interrupt? How do I tell the UART to generate the interrupts? If anybody has code to do this I would be really happy. +----------------+---------------------------------------------------+ | Joel Spolsky | bitnet: spolsky@yalecs uucp: ...!yale!spolsky | | | arpa: spolsky@yale.edu voicenet: 203-436-1483 | +----------------+---------------------------------------------------+ #include