home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7606 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ukma!hsdndev!binoc.bih.harvard.edu!rind
  2. From: rind@binoc.bih.harvard.edu (David Rind)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: interrupts and neat things of these sorts
  5. Message-ID: <2309@hsdndev.UUCP>
  6. Date: 21 Dec 92 18:50:38 GMT
  7. References: <1992Dec17.225939.939453@sue.cc.uregina.ca> <u910826.724907973@bruny>
  8. Sender: usenet@hsdndev.UUCP
  9. Organization: Beth Israel Hospital, Harvard Medical School, Boston Mass., USA
  10. Lines: 24
  11.  
  12. In article <u910826.724907973@bruny> u910826@bruny.cc.utas.edu.au
  13.  (Louis        siuoL) writes:
  14. >beuker@hercules.cs.uregina.ca (Craig Beuker) writes:
  15. >>    (I want to implement an interrupt that will monitor the comm port for 
  16. >>    characters, if one is encountered, add it to w QUE(circular) for later
  17. >>    processing.)  Thanx for your help.
  18.  
  19. [Description of how to hook an interrupt deleted.]
  20.  
  21. This is not a simple problem.  The deleted posting describes how
  22. to hook an interrupt (in this case the specifc interrupt would depend
  23. on which com port is being used) but beyond that, it is necessary
  24. to enable interrupts on the PIC, and initialize the serial port
  25. line control registers.
  26.  
  27. There are numerous packages you can FTP that will show you how to
  28. do some of this.  For a code fragment example of setting up such
  29. an interrupt driven buffer, you can look in Timo Salmi's FAQUOTE
  30. file in the TSFAQ##.ZIP.   At least for version 30, there was
  31. an example under section 14.
  32.  
  33. -- 
  34. David Rind
  35. rind@binoc.bih.harvard.edu
  36.