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

cordic implementation
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Apr 22, 2009 11:14 pm     Reply with quote

Quote:
As expected all numbers in the CCS compiler are binary and all operations by the cpu are binary.
No doubt about it.

My question has been regarding the scaling used in the Cordic library, but I answered it in between.

I was suprized that decimal scaling factors (1e7 respectively 1e9) rather than 2**n (powers of two) are used in the library. I understand, that it's done for the users convenience. However, if you have to perform a multiply of "length" values, as in heli_potters application, it involves more complicated scaling operations where only a binary shift apllies with usual binary fixed point representation.

Of course, it's no problem to recalculate the Cordic factors and use a binary scaling factor of 2**30 instead of decimal 10e9 if needed. Cause I didn't yet use the Cordic library, I'm not aware of all advantages and disadvantages when using the one or the other. It's just contrary to the fixed point notations I know.

But thank you for providing the library, anyway. I guess, it can be helpful in some of my projects.
Frank
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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