home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8642 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.2 KB

  1. Xref: sparky comp.os.msdos.programmer:8642 comp.sys.ibm.pc.programmer:344
  2. Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.programmer
  3. Path: sparky!uunet!walter!att!att!cbnewsi!cbnewsh!cbnewse!cafe
  4. From: cafe@cbnewse.cb.att.com (richard.dib)
  5. Subject: Programming the 8253 timer
  6. Organization: AT&T
  7. Date: Tue, 18 Aug 1992 15:06:56 GMT
  8. Message-ID: <1992Aug18.150656.904@cbnewse.cb.att.com>
  9. Followup-To: poster
  10. Keywords: 8253 timer interrupts
  11. Lines: 21
  12.  
  13. Hi There:
  14.  
  15. How can I program the 8253 timer so that it generates an interrupt every
  16. 1/2 second, and then execute a particular function?  I am using C language.
  17.  
  18. Why I want to do this?  I have an interactive type of program already written. 
  19. There is something I want the program to do every 1/2 a second at the same time
  20. the program is doing something else.  That is why I would like to set a timer
  21. to interrupt the program every 1/2 sec and then execute a particular function.
  22.  
  23. With something like this, minimal modifications will have to be done to the 
  24. original program (25,000 lines) and that is what I am looking for.
  25.  
  26. Please let me know if you know how to do this using C (Borland C), or if you 
  27. have some book references that I can use. 
  28.  
  29. Thanks in advance!
  30.  
  31. Richard Dib
  32. AT&T Bell Laboratories
  33.  
  34.