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 CCS Technical Support

48 bit data type

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



Joined: 14 Feb 2008
Posts: 18
Location: Cumbria

View user's profile Send private message

48 bit data type
PostPosted: Mon Nov 17, 2008 11:45 am     Reply with quote

I’m thinking about starting an application that requires a 48 bit word
to be calculated (FTW), the calc is straight forward,

FTW = (2 raised to the power of 48 * (DDS_out/DDS_Clock)).

Is this feasible to do with PCH compiler and a PIC18Fxxx, or should I
jump in and purchase the PCD compiler and use a PIC24xxx,
as type int48 data type is available?

Suggestions welcome.

Kevin – M0KHZ
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Mon Nov 17, 2008 1:26 pm     Reply with quote

If that one function is all you need the 48 bit type for, I would create a 48 bit structure and write 8 bit functions to manipulate it. It looks like PCD still has problems of its own, and I would not use it for a paying job unless I really needed to.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Ttelmah
Guest







PostPosted: Mon Nov 17, 2008 2:24 pm     Reply with quote

A while ago, I did post some basic 48bit arithmetic routines. A search should find them.

Best Wishes
M0KHZ



Joined: 14 Feb 2008
Posts: 18
Location: Cumbria

View user's profile Send private message

PostPosted: Mon Nov 17, 2008 3:15 pm     Reply with quote

Thanks guys, you've given me loads to sleep on, I don't think a new compiler is the answer here Very Happy

Kevin - M0KHZ
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