[A83] Re: About the interrupt problem


[Prev][Next][Index][Thread]

[A83] Re: About the interrupt problem




> About my interrupt frequency problem, i was kinda hoping 
to play som music =
> in the background. And 200 times/sec doesn't really give 
much to play wit=
> h. It would probably only be enough to play some deep 
bass tones. Whit a =
> frequency of 1000 execs/sec you could atleast get some 
descent sounds.
> 
Well, if you have much time on your hands, you can try to 
simulate a faster interrupt by hardcoding it. Just disable 
real interrupts and break up the program you want to 
execute into small pieces of code (in form of subroutines). 
Then you have nothing else to do than a simple loop which 
alternately executes the sound routine and the "slices" of 
code you have. The code pieces themselves would decide 
which piece should follow them, then it's fairly easy to 
organise. Of course, this is pretty hard to do properly. 
Most certainly you wouldn't get the frequencies desired.

PG





References: