Skip to main content
MYAQO.1
Associate II
January 4, 2021
Question

CORDIC EXAMPLE

  • January 4, 2021
  • 1 reply
  • 1881 views

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

This topic has been closed for replies.

1 reply

Igor Cesko
ST Employee
March 25, 2021

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