How can i implement CORDIC for sine, squaring and sqrt to make the program run fast?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello everyone,

   

I have a square root, tonometric and many other functions in my program. They make my program slower. I heard about CORDIC functions, but I don't know how I can implement it. Can anybody assist or help me in it?

   

I would be very thankful to you.

   

Regards

   

Awais

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

At the bottom of this page is a cordic sin/cos component.

   

For 1/sqrt(x) there is a shortcut in C, you may calculate sqrt(x) from that result.

   

 

   

Bob

   

 

   

Bob

View solution in original post

0 Likes
7 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

At the bottom of this page is a cordic sin/cos component.

   

For 1/sqrt(x) there is a shortcut in C, you may calculate sqrt(x) from that result.

   

 

   

Bob

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thank you, Bob, for your  reply.

   

I downloaded the component but now, how I can add this component into my schematic? Also, are there any example project available for this component?

   

Awais

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

In Creator Workspace explorer select the "Components" tab. Right click on the project and select "Import component".

   

I don't have access to any example projects, aren't there any together with the component?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

No, There are not.

   

Awais

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

The downloaded .zip contains two folders, Example and Library.

   

 

   

Bob

Anonymous
Not applicable

Oh, Yea 🙂

   

Thank you, Bob.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Glad to have enlightened you ;-))

   

 

   

Bob

0 Likes