Article View: comp.os.msdos.programmer
Article #3827Re: Real time tasks using DOS
From: Jerzy Tarasiuk
Date: Fri, 16 Oct 1992 17:54
Date: Fri, 16 Oct 1992 17:54
18 lines
1814 bytes
1814 bytes
>>>>> On Thu, 15 Oct 1992 23:04:57 GMT, francis@csli.stanford.edu (Straw Man Dude) said: Straw> I'm trying to use the DOS timer in order to set up a task that runs every Straw> 60th of a second. Does anyone have software that does this and in general Straw> how does one use the DOS timer to set up real time or pseudo real-time tasks? Straw> What is the maximum granularity I can expect? i.e. what is the minimum time Straw> slice I can achieve? Max frequency of interrupts depends on what does program servicing them, e.g. on XT 4.77MHz can service 20000 interrupts/second to produce sound (using timer channel 2 as 6-bit DAC). Accuracy at which we get interrupts can be better than 1 microsecond (if CPU executes a HLT opcode waiting for interrupt). I remember many years ago I wrote .ASM program which was used to collect about 300000 values read from ADC and write them to disk, it used timer interrupts. And I did some experiments producing sound from PC or driving external DAC. It works fine if RAM refresh cycle time is set properly (time between interrupts should be integer multiply if the refresh cycle to avoid interference effects).
Technical Details
Message-ID:
<JT.92Oct16185403@fizyk1.fuw.edu.pl>Path:
arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!fuw.edu.pl!cocos!jtReferences:
<1992Oct15.230457.20351@Csli.Stanford.EDU>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!fuw.edu.pl!cocos!jt From: jt@fuw.edu.pl (Jerzy Tarasiuk) Subject: Re: Real time tasks using DOS In-Reply-To: francis@csli.stanford.edu's message of Thu, 15 Oct 1992 23:04:57 GMT Message-ID: <JT.92Oct16185403@fizyk1.fuw.edu.pl> Sender: news@fuw.edu.pl Nntp-Posting-Host: fizyk1 Organization: Warsaw University Physics Dept. References: <1992Oct15.230457.20351@Csli.Stanford.EDU> Date: Fri, 16 Oct 1992 17:54:03 GMT Lines: 18