CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

integer of 24bit

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
prayami



Joined: 22 Dec 2004
Posts: 78

View user's profile Send private message

integer of 24bit
PostPosted: Tue Dec 28, 2004 3:04 pm     Reply with quote

Hi...Anybody have idea about int24 ?

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

View user's profile Send private message

PostPosted: Tue Dec 28, 2004 4:09 pm     Reply with quote

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?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group