home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / hardware / 22571 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!cs.utexas.edu!torn!news.ccs.queensu.ca!qucdn!leek
  2. Organization: Queen's University at Kingston
  3. Date: Thu, 7 Jan 1993 14:09:17 EST
  4. From: <LEEK@QUCDN.QueensU.CA>
  5. Message-ID: <93007.140917LEEK@QUCDN.QueensU.CA>
  6. Newsgroups: comp.sys.amiga.hardware
  7. Subject: Re: 2.0 UNIT_MICROHZ timer (questions...)
  8. References: <93003.144651LEEK@QUCDN.QueensU.CA>
  9.  <1993Jan5.110742.11479@rhrk.uni-kl.de> <93005.144922LEEK@QUCDN.QueensU.CA>
  10. Lines: 35
  11.  
  12. I got the problem solved.  I called  Delay() instead of my own
  13. MicroDelay(Sec,Micro).  Under 2.1, the OS came back in < 30uS later as the
  14. first parameter = 0.  Thanks for all that emailed me or posted.  The following
  15. is a list of the actual timing I measured.  My routine was based on the RKM
  16. timer.device example that appeared on Fish disks.
  17.  
  18. Delay (mS)           Measured Delay (mS)
  19. ----------           -------------------
  20.   10                         11.0
  21.   20                         21.0
  22.   40                         41.0
  23.   80                         81.7
  24.  100                        101.0
  25.  
  26. Note:
  27.  
  28. Delay         : value passed to UNIT_MICROHZ timer.device
  29. Measured Delay: Actual ellapse time from setting a bit in the parallel port,
  30.                 to making a request for the time delay and coming back from
  31.                 the IO operation to resetting a bit in the parallel port.
  32.  
  33.                 Measurement done with task priority set to 25 on a 18.3MHz
  34.                 68020 A1000 (NTSC, Eclock =716Khz), OS 2.1 with light load.
  35.                 ROM is in 16-bit and running at 7Mhz bus speed.
  36.                 Routine coded in Aztec 3.6a C code with modified RKM example.
  37.                 Timing done on a Philips Logic Analyzer.
  38.  
  39. As you can see on my setup, the system timer device is pretty good.  The system
  40. overhead is about 1 to 2 millisecond (include task switches, OS overhead, and
  41. actual IO port overhead in C).
  42.  
  43. Thanks again guys/gals !!
  44.  
  45. K. C. Lee
  46. Elec. Eng. Grad. Student
  47.