Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu!greg From: greg@ccwf.cc.utexas.edu (Greg Harp) Newsgroups: comp.sys.amiga.programmer Subject: "Nicest" way to sample at a given speed? Message-ID: <44510@ut-emx.uucp> Date: 21 Feb 91 00:16:59 GMT Sender: news@ut-emx.uucp Reply-To: greg@ccwf.cc.utexas.edu (Greg Harp) Organization: The University of Texas at Austin Lines: 26 Originator: greg@sylvester.cc.utexas.edu What is the OS-nicest way to sample a pin on the joystick port at a given speed (such as 10kHz)? I need to record some binary data coming in and the speed at which I do it must be constant and fast. One way I thought of doing it was to use Paula in non-DMA mode (where she sends a level 4 interrupt for every word). I would then have an interrupt server set up at level 4 to sample the port and store the status of the input. Am I completely off track here? Is it possible to use the CIA timers at this high of a speed? I know switching between PAL and NTSC presents a timing problem here, but does the same problem exist in Paula? I've not done anything requiring such accurate timing at such a high speed before on an Amiga, so any help would be appreciated. Thanks! Greg -- Greg Harp |"How I wish, how I wish you were here. We're just two |lost souls swimming in a fishbowl, year after year, greg@ccwf.cc.utexas.edu|running over the same ground. What have we found? s609@cs.utexas.edu |The same old fears. Wish you were here." - Pink Floyd