Mail Archives: djgpp/2001/11/02/06:22:44
Thanks, i re-allocate the jobs into main function and ISR. Now the ISR
is doing as your mention.
Actually, the input data is analog voice data. I need to control an
capture card to read and store it into hard drive. Now i find that
some strange sound like "tak" in my recorded file. It appears in each
times i use fwrite() to put the data from buffer into a file. When i
change the buffer size, the period of the "tak" is also changed.
What's it caused by and any idea to solve it?
On the other hand, i create the file's name be around 23
characters(including extension). Of course under dos will cuts it out.
Does any method let me use long file name?
Jeff
"Alexander Russell" <alexander DOT russell AT telus DOT com> wrote in message news:<UwMD7.63547$Og4 DOT 9393877 AT news0 DOT telusplanet DOT net>...
> "jeffchan" <jeffkhc AT netvigator DOT com> wrote in message
> news:bf50ce95 DOT 0110301711 DOT 78e48e58 AT posting DOT google DOT com...
> > Hi,
> >
> > That's mean i must install DOS on my PC. Can i use windows startup
> > disk booting up, to make an environment as dos? Is that still same as
> > dos box in win9x?
> >
> > And if the new_timer(void) routine is too much coding, it can't finish
> > the job when the next interrupt came expected. Do i need to set some
> > interrupt masking flags?
> >
> > How do i check the timing spent of this interrupt service routine?
> >
> > Jeff
> >
>
> I generally make an interrupt service as SHORT and FAST as possible. Set a
> flag, store a bit of data in a global structure. then the main program polls
> the vars set by the interrupt and does any longer processing.
>
> For example, the interrupt my just store data to a queue, then the main prog
> process the data in the queue and write it to disk.
>
> As for dos 7, I haven't tried that, but its likely ok.
>
> >
> > > > > AJR - I don't see an obvious problem. Are you running under DOS? If
> running
> > > > > under a dos box in win9x the timing will not be exactly what you
> expect.
> > > >
> > > > Let me know the reason.
> > > >
> > > Windows 9x grabs all the interrupts, and lets dos programms 'use' them
> at
> > > random intervals.
> > >
> > > > --
> > > > Peace - The choice of the new generation.
- Raw text -