Cordic Two Config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-10-25 9:10 AM
Hi,
How can I set up two Cordic Configuration, because I want to calulate using two different function.
CORDIC_ConfigTypeDef sConfigSine;
CORDIC_ConfigTypeDef sConfigPhase;
CORDIC_ConfigTypeDef sConfigCosine;
I tried to set up 3 different cordic configuration and switch between, but after I switch, the cordic do not calculate anything. Does anyone has the same issue before and how to solve it? Thanks
e.g.
first
HAL_CORDIC_Configure(&hcordic, &sConfigCosine);
HAL_CORDIC_CalculateZO(&hcordic, &theta, &sin_cosine, 1, 0);
then
HAL_CORDIC_Configure(&hcordic, &sConfigPhase);
HAL_CORDIC_CalculateZO(&hcordic, &alpha_beta, &Phase, 1, 0);
The second output is not valid.
Thank you all!
- Labels:
-
CORDIC
-
STM32U5 series
