View previous topic :: View next topic |
Author |
Message |
M0KHZ
Joined: 14 Feb 2008 Posts: 18 Location: Cumbria
|
48 bit data type |
Posted: Mon Nov 17, 2008 11:45 am |
|
|
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
|
|
Posted: Mon Nov 17, 2008 1:26 pm |
|
|
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
|
|
Posted: Mon Nov 17, 2008 2:24 pm |
|
|
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
|
|
Posted: Mon Nov 17, 2008 3:15 pm |
|
|
Thanks guys, you've given me loads to sleep on, I don't think a new compiler is the answer here
Kevin - M0KHZ |
|
|
|