Tool/software: Code Composer Studio
Hello,
we are using the resolver interface software library like in the TI/IDDK_PM_Servo_F2837x example and have a problem with the timing of the library function resolver_algo_Float().
We call the resolver ISR with 160 kHz (6.25 µs) and thus also the resolver_algo_Float(), we have measured the timing of the ISR and have seen that it usually needs 1.6 µs, but every 16th is longer. Which means it needs up to 7 µs and this is longer than the timing from the ISR!
We also measured the timing from the functions:
resolver_algo_Float() ( 15x 500 ns and the 16th 5945 ns )
resolver_PostProcess() ( 700 ns which is also only every 16th active )
We are using TMS320F28379S CPU with the following compiler optimization for our resolver.c
C2000 Compiler / Optimization:
--opt_level = 1 (Local Optimizations)
--opt_for_speed = 5 (highest speed)
--fp_mode = relaxed
--fp_reassoc = on