cancel
Showing results for 
Search instead for 
Did you mean: 

CORDIC EXAMPLE

MYAQO.1
Associate II

Hi,

I was just looking at an example in STM32 IDE of using CORDIC to calculate SIN and COS. The same is explained in the document below:

https://www.st.com/resource/en/application_note/dm00614795-getting-started-with-the-cordic-accelerator-using-stm32cubeg4-mcu-package-stmicroelectronics.pdf

In the configuration, the function COSINE is called however, while reading the output both SIN and COS were obtained. How is that possible? shouldn't we call them separately?

Best Regards

Yaqoob

1 REPLY 1
Igor Cesko
ST Employee

Hi MYAQO.1 ,

The CORDIC hardware is designed to calculate trigonometric functions. In some cases - while calculating some function - also additional functions is calculated (from principle of calculation). Therefore while we calculating SIN also COS function is calculated (and vice versa). So - to calculate SIN also COS is calculated with the same precision as if we call COS separately.

Regards

Igor