[comp.os.msdos.programmer] Need help... 8259 interrupts

randys@cpqhou.uucp (Randy Spurlock) (01/16/91)

in article <1991Jan15.210250.2703@waikato.ac.nz>, butting@waikato.ac.nz says:
> 
> ***** Problem description deleted *****

	By the way, the 8259 is the interrupt controller chip and the
	8250 is the serial communications chip.

> 
> 	init port			bioscom(0, initval, 0);
> 	vector the COM1 interrupt	setvect(0xc, handler);
> 		to the handler		  
> 	wake up the 8259's 'int on	outportb(0x3f9, 1)
> 		data ready'		  /* or even ',0x1f' to be sure ;) */
> 	enable the 8259 ints		outportb(0x21, inportb(0x21) | 0x08);

	This last statement *Disables* the IRQ 3 interrupt, backwards from
	what I think you want, I think the statement should read:

		outportb(0x21, inportb(0x21) & 0xEF);

	This statement will enable IRQ 4, the default interrupt for COM1.

> 	***** Reset of problem description deleted *****
> 
> Thanks in advance... butting

	One big huge disclaimer.....I am NOT a C programmer so there may
	be other problems with the code, oh heck even the statement I give
	you could be incorrect...hope this helps though!

> --
> B.S. Utting, ()Z
> butting@waikato.ac.nz   ObMS-DOS hack: building awk functions out of EDLIN and
> University of Waikato,  pipes :)
> Hamilton, New Zealand


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
          - Randy Spurlock -	      |      Compaq Computer Corporation    
---------------------------------------------------------------------------
These opinions are mine...all mine... | He fired his hyper-jets and...  
just ask anyone who's heard them!     | blasted into the 5th dimension!
--------------------------------------| 
UUCP: ...!uunet!cpqhou!randys         |                     Space Man Spiff
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=