Mail Archives: djgpp/2000/03/29/21:50:26
On Wed, 29 Mar 2000 night DOT walker AT tiscalinet DOT it wrote:
> I must call sin() inside an timer function (i can't use a LUT, would
> be too inaccurate...) I don't know how can i lock the function code
> (without knowing the size)
IMHO the code executed in a timer interrupt function should be as little
as possible (like setting a flag) and should not hog up too much cpu,
otherwise the whole system will slow down
Slow instructions like sin should IMHO not be used in a interrupt
function, BTW rather than use the sin in the interrupt function, cant you
set a flag which will indicate that the interrupt function has been called
and then execute the sin code in your main loop,....
Grendel
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)
- Raw text -