Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by oceanx@Dec 9 2005, 08:56 AM thanks, paolo
it seems like that i must let the "main" function to do the float calculation, right? i worry about if it can be competent for the calculation or not.
we must not add float calculation in the isr?
best regards
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11451)
--- quote end ---
--- Quote End --- Without floating point hardware, a set of software emulation libraries is used when you use float numbers in a program. These tend to be very, very slow, but they do work. If you want to speed up floating point arithmetic, there are some custom instruction examples posted in the "projects" are of this forum which may be useful. In addition, when writing interrupt handling code it is recomended in the Altera software developer's manual that interrupt service routines be as short and efficient as possible. It is far better, for example, for the interrupt routine to set a pointer or signal so that some other (non-interrupt task) can then go perform the slow calculation.