🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10740

Which timers are free?

#10740
From: John Lee
Date: Fri, 23 Dec 1988 18:56
32 lines
1922 bytes
I have an application that must send a pulse to mouse port 2 and must be
synched to the VBLANK interrupt, but must occur a fixed time after the
interrupt.  I have several options, including using the copper to actually do
the output via the user copper list, but I wonder what would happen if the
screen is dragged down or subtended (put behind other screens.)  This code
must be multitasking/OS/Intuition/Workbench friendly.

The idea I have would be to:
	1) Establish a VBLANK interrupt handler.  This would start the timer
		on each VBLANK.
	2) Establish a timer interrupt handler.  This would send the pulse
		to mouse port 2.

Creating and establishing the two handlers are easy.  So, what's my problem?
I need to know which timer is free to allocate for my use and if there is a
better way to go about it.  I just read the article by Robert "Kodiak" Burns
in reply to a different question which said that the two timers in CIAB are
free, but I wish to confirm this (I also seem to recall that that only one
timer generates a hardware interrupt.)

I'd appreciate any help, questions, critiques, and donations.  Thank you!

					John Lee

-------------------------------------------------------------------------------
Raining CATS and DOGS?  Join the RATS: Remote Amiga Teleconferencing System
	+--------+			John Lee
	| HUGHES |
	+--------+			ARPAnet: jhlee@hac2arpa.hac.com	
	Hughes Aircraft Company
The above opinions are those of the user and not of those of this machine.
Technical Details
Message-ID: <272@sed170.HAC.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!elroy!hacgate!tcville!sed170!lee

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!elroy!hacgate!tcville!sed170!lee
From: lee@sed170.HAC.COM (John Lee )
Newsgroups: comp.sys.amiga.tech
Subject: Which timers are free?
Keywords: timers
Message-ID: <272@sed170.HAC.COM>
Date: 23 Dec 88 18:56:40 GMT
Reply-To: lee@sed170.UUCP (John Lee (ird))
Organization: Hughes Aircraft Co., El Segundo, CA
Lines: 32