www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/09/05/17:50:19

Date: Wed, 6 Sep 1995 07:46:20 +1000
From: Brendan Simon <brendan AT rdt DOT monash DOT edu DOT au>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: interrupt crashes

I have written an interrupt routine which works out the frequency of the
input on one of the IRQ lines.  It regularly crashes after about 1min,
sometimes 10 minutes.  The speed is not a problem as this occurs at frequencies
as low as 200Hz.

At the end of my interrupt routine I issue 
	outportb(0x20, 0x20)	/* acknowledge interrupt */
	enable();

Does the wrapper routine do this for me ??  If so, then this code is redundant.
Could it cause a false acknowledgement ????.   ie is it the cause of my problem.

Any ideas.  btw, I am using pure C code in the interrupt routine (NO GAS).

Brendan
brendan AT rdt DOT monash DOT edu DOT au

- Raw text -


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