home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / ada / 3901 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!jmacleod
  3. From: jmacleod@fox.nstn.ns.ca (James Mac Leod)
  4. Subject: Ada interrupts
  5. Message-ID: <jmacleod.59@fox.nstn.ns.ca>
  6. Keywords: interrupt serial port
  7. Sender: usenet@nstn.ns.ca (NNTP Entity)
  8. Organization: Micronav International
  9. Date: Wed, 6 Jan 1993 18:39:18 GMT
  10. Lines: 22
  11.  
  12. I am looking for information on how to write interrupts in 
  13. Meridian Ada 4.1.4 for serial communications on a 286 PC.  I am familiar 
  14. with the 8250 UART chip in the 286 and how to initialize it (i.e. the baud 
  15. rate, parity, etc).  The problem is how the Ada tasks work.  I have tried 
  16. using entry clauses to both interrupt C and B  but neither appear to work.  
  17. I have also tried saving the DOS interrupt vector using DOS function call 
  18. 250C and restoring using 350C.  Are these functions only for interrupt C?  
  19. If so what are the function calls for interrupt B?  A similar program 
  20. written in Alsys Ada works on an XT which uses interrupt C.  The 286 has a 
  21. different serial port address so maybe it should use interrupt B.  The port 
  22. is at address 2F8H.  Any body give me a hand?  It would be greatly 
  23. appreciated.
  24.  
  25. Jamie
  26.  
  27. My EMAIL address is: jmacleod@fox.nstn.ns.ca
  28.         
  29. Micronav International Inc
  30. P.O.Box 1523 / 104 Marine Drive
  31. Sydport Industrial Park,
  32. Sydney, N.S. Canada B1P 6R7
  33. Tel: 902-564-8833      Fax: 902-564-8764
  34.