Article View: rec.games.programmer
Article #502Re: Vertical Retrace interrupt?
From: Tomi H Engdahl
Date: Fri, 07 Aug 1992 19:23
Date: Fri, 07 Aug 1992 19:23
27 lines
1764 bytes
1764 bytes
In article <4284@news.duke.edu> kds@phy.duke.edu (Stokes Kevin) writes: > I think the original posting was about the user of the VGA Card's hardware >interrupt, not the timer chip. The timer chip wouldn't stay in phase with the >video retrace, and therefore wouldn't help. There is a way to keep timer interrupt in phase with VGA hardware. First you measure the time between VGA retraces. Then set the timer to one-shot mode and set the pulse time a little more shorter than interrupt period. Then set the original IRQ0 interrupt to your own interrupt routine. The you just send start signal to timer, and the system syncs to VGA vertical retrace in few frames. The interrupt routine does following: 1. Wait for vertical retrace to start 2. Send the start timer period signal to timer 3. (put here your own code) 4. Return from interrupt routine I have heard that this system has been implemented with only few per cent processing time overhed. -- Tomi.Engdahl@hut.fi "Don't force it; get a larger hammer" then@vipunen.hut.fi
Technical Details
Message-ID:
<THEN.92Aug7212356@lesti.hut.fi>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!yale!mintaka.lcs.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!news.funet.fi!funic!nntp.hut.fi!nntp!thenReferences:
<1992Aug3.233204.16778@cs.aukuni.ac.nz> <1992Aug3.210504.57823@cc.usu.edu> <4284@news.duke.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!yale!mintaka.lcs.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!news.funet.fi!funic!nntp.hut.fi!nntp!then From: then@lesti.hut.fi (Tomi H Engdahl) Newsgroups: rec.games.programmer Subject: Re: Vertical Retrace interrupt? Message-ID: <THEN.92Aug7212356@lesti.hut.fi> Date: 7 Aug 92 19:23:56 GMT References: <1992Aug3.233204.16778@cs.aukuni.ac.nz> <1992Aug3.210504.57823@cc.usu.edu> <4284@news.duke.edu> Sender: usenet@nntp.hut.fi (Usenet pseudouser id) Organization: Helsinki University of Technology, Finland Lines: 27 In-Reply-To: kds@phy.duke.edu's message of 5 Aug 92 15:02:31 GMT Nntp-Posting-Host: lesti.hut.fi