2023-01-15 10:57 PM
In STM32G474 , I used CORDIC module for trigonometric functions calculations but this module requires fixed point represntation and i store the final value in float variable . can the transformations between fixed point to float point be done using a hardware module or must be done using software ?
2023-01-17 05:22 AM
Hello @AIBRA.1 (Community Member)
You can manipulate and convert any fixed point into float representation using CMSIS DSP Library (supported by FPU embedded in STM32G4 in single precision)
As an example for q1.31 into: \STM32Cube_FW_G4_V1.5.1\Drivers\CMSIS\DSP\Source\SupportFunctions\arm_q31_to_float.c
void arm_q31_to_float( const q31_t * pSrc, float32_t * pDst, uint32_t blockSize)
Best regards,
Romain,
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.