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