delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/15/19:44:18

From: "Martin Peach" <martin AT loplop DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: hardware ints
Date: Sun, 15 Aug 1999 19:06:53 -0400
Organization: Communications Accessibles Montreal, Quebec Canada
Lines: 15
Message-ID: <7p7h6g$o5i@tandem.CAM.ORG>
NNTP-Posting-Host: dialup-322.hip.cam.org
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am trying to catch received characters from the UART at COM2 using IRQ3. I
think I have installed my (protected mode) handler the right way using the
go32 dpmi functions as described in the faq, but my handler is never called,
nor does the thing crash. I can see that I am getting overrun errors from
the received characters and I am able to receive them OK by polling.
Although I enabled the receive character interrupt in the IER register of
the UART and set the PIC interrupt mask, I am not sure if the UART is
generating interrupts to the 8259 PIC. Is there a way to check for this? Is
it OK to use a protected mode handler for the COM ports? Is something else
getting to my interrupts before I get there? Do I need to intitalize
something else to enable interrupts?
Too many questions for one day...
Martin


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019