I want to handle the value upto 24bit. But instead of 24bit
wright now I have used 32bit variable int32.
I got enough memory. But the problem is, I am using the int32
variable in side interrupt. And it is very necessary for me to reduce
the time of the ISR.
What should I do to use variable like int24 ?
Is it possible?
If it is possible to create int24 then can it be useful to reduce the
execution time of my interrupt?
Thanks in advanced....
Regards
Prashant
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Tue Dec 28, 2004 4:09 pm
When you are only using addition and subtraction there is not much difference in using 24-bit or 32-bit. When using multiply and division there is some optimization possible, but I guess this will not save you a lot.
Code examples can be found at www.piclist.org
Without knowing more about your code it is hard to give any hints and tips on speed optimization.
If possible, can you post your interrupt routine?
If yes, then also answer the following questions:
- How many interrupts per second?
- Which processor?
- What clock speed?
- Are there other interrupts running as well?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum