cancel
Showing results for 
Search instead for 
Did you mean: 

Cordic Two Config

James613
Associate II

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!

0 REPLIES 0