Solved
How to use the hardware CORDIC of STM32G4 to solve the natural logarithm? Are there any examples?
How to use the hardware CORDIC of STM32G4 to solve the natural logarithm? Are there any examples?
How to use the hardware CORDIC of STM32G4 to solve the natural logarithm? Are there any examples?
Hello @one V (Community Member) ,
You can use example:
"STM32Cube_FW_G4_V1.4.0\Projects\NUCLEO-G474RE\Examples\CORDIC\CORDIC_Sin_DMA"
but you replace the sine function "sCordicConfig.Function" from "CORDIC_FUNCTION_SINE" to function "CORDIC_FUNCTION_NATURALLOG"
and tune the "sCordicConfig.Scale" parameter according reference manual : see there Table 112. Natural log scaling factors and corresponding ranges.
Regards
Igor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.