Xref: news2.mv.net comp.os.msdos.djgpp:2379 From: vicari AT mercurio (Paolo Vicari) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help: My timer interrupt isn't keeping up. Date: 2 Apr 1996 08:22:26 GMT Organization: Computer Science Dep. - Milan University Lines: 26 Message-ID: <4jqo42$gir@tic.sm.dsi.unimi.it> References: <4jp9ro$e1q AT sulawesi DOT lerc DOT nasa DOT gov> NNTP-Posting-Host: 131.175.5.41 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Gregory Fedor (gfedor AT lerc DOT nasa DOT gov) wrote: : Included below is the code I've been working on. I want to establish : a 1 millisecond interrupt that simply increments a counter. Then, the : main program, based on that counter will collect data at various rates : (ie. one timer, multiple rates). [snip] : 2ms 500.00 491 : 1ms 1000.00 981 : As you can see I loose something at the end. : #define lOSC_FREQ 1193 -- AFAIK, the actual timer frequency is (very) slightly different from 1193.0000 KHz. Maybe you could obtain more precise timings with a better #define. If you do need the precise value, mail me and I'll look in my books. Hope this helps somehow! Good luck! ----------------------------------------- Paolo Vicari - vicari AT mailer DOT cefriel DOT it -----------------------------------------