home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11637 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!uflorida!usf.edu!eggo!stelmack
  2. From: stelmack@eggo.tmc.edu (Gregory M. Stelmack)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Digitizing
  5. Message-ID: <1992Jul21.024310.7360@ariel.ec.usf.edu>
  6. Date: 21 Jul 92 02:43:10 GMT
  7. References: <1992Jul17.174123.3011@newshost.lanl.gov>
  8. Sender: news@ariel.ec.usf.edu (News Admin)
  9. Organization: University of South Florida, Department of Computer Science and Engineering
  10. Lines: 28
  11.  
  12. I am writing some code to do digitizing. As it should be processor
  13. independent, I was going to use the following approach:
  14.  
  15. Allocate a CIA timer
  16. Initialize it to countdown depending on my sampling frequency
  17. Install an interrupt handler to get the current value
  18. Signal the main task when done.
  19.  
  20. So, I started with the CIA timer example from the Devices manual.
  21. Unfortunately, the provided code did not compile with SAS/C 5.10b. It
  22. complained that it was looking for "CxBase", which was in the pragmas.
  23. I changed CxBase in the pragmas to be CIABase, and initialized CIABase
  24. depending on the timer I allocated as being the pointer returned from
  25. "OpenResource". Is that correct?
  26.  
  27. Now, however, with my own interrupt handler, the machine freezes up, and
  28. I have to do the 3 fingered salute three times before the machine reboots.
  29. Any ideas what might cause that? Is it something related to that example?
  30.  
  31. If anyone has code that allocates a CIA timer and installs an interrupt that
  32. works under SAS/C 5.10b they would be willing to share, I would be most
  33. appreciative.
  34.  
  35. --
  36. -- Greg Stelmack (stelmack@eggo.csee.usf.edu)
  37. -- FullTime Grad Student, PartTime Amiga Salesman, PartTime Amiga Developer
  38. -- Author of: Spades, Pro Port Analyzer Plus, more to come...
  39. -- DISCLAIMER: The opinions reflected here are mine and mine alone.
  40.