Skip to main content
Visitor II
July 7, 2024
Question

Is the CORDIC coprocessor microcoded and can it be modified?

  • July 7, 2024
  • 1 reply
  • 636 views

have an application requiring updating the integral and derivative values for a set of PID controllers.  Each arriving error value must be added to the integral value and subtracted with the last error value. I want to streamline this with DMA. I can almost use the FMAC to handle it, but not quite. 

 
Oddly, if I wanted to execute trig functions on the incoming values (instead of addition\subtraction) I could use the CORDIC coprocessor. Further, the CORDIC unit runs algorithms that involve the simple addition I need…so if it can be modified, it could do what I need with ease.  There’s even 6 function options that are unused...
 
I’m assuming the CORDIC unit is microcoded…is this correct? 
Can the microcode be accessed\modified?
    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 11, 2024

    Dear @KHarb.1 ,

    You can find details and global overview of our Cordic Co-processor ( hard coded) here :

    https://www.st.com/resource/en/product_training/STM32G4-Peripheral-Cordic_Coprocessor_CORDIC.pdf

    let us know if you have some improvements for future flexibility.

    Ciao

    STOne-32