Here are the detailed motor control
R5F processing time:
Table 14-1 Angle/Position/Speed
Calculation Time
|
Angle/Position/Speed
Calculations |
Unit |
Open Loop Iq/Id |
Closed Loop Iq/Id |
Closed Loop Speed |
Closed Loop Position |
Closed Loop CiA402 |
Min |
252 |
252 |
268 |
268 |
|
ns |
Max |
312 |
308 |
336 |
336 |
|
ns |
Mean |
274.462 |
269.271 |
291.303 |
295.503 |
|
ns |
Max normalized |
132 |
128 |
156 |
156 |
|
ns |
Table 14-2 Phase Current Scaling and
Conversion Time
|
Phase Current Scaling and
Conversion to Floating Point |
Unit |
Open Loop Iq/Id |
Closed Loop Iq/Id |
Closed Loop Speed |
Closed Loop Position |
Closed Loop CiA402 |
Min |
188 |
316 |
460 |
380 |
|
ns |
Max |
200 |
360 |
496 |
416 |
|
ns |
Mean |
185.139 |
328.791 |
474.26 |
394.462 |
|
ns |
Max normalized |
20 |
180 |
316 |
236 |
|
ns |
Table 14-3 FOC Loop Time
|
FOC (Clarke, Sin/Cos,
Park, PI controllers, Inverse Park, Space Vector Generation |
Unit |
Open Loop Iq/Id |
Closed Loop Iq/Id |
Closed Loop Speed |
Closed Loop Position |
Closed Loop CiA402 |
Min |
308 |
380 |
444 |
468 |
|
ns |
Max |
360 |
432 |
520 |
584 |
|
ns |
Mean |
331.301 |
398.24 |
476.313 |
494.554 |
|
ns |
Max normalized |
180 |
252 |
340 |
404 |
|
ns |
Table 14-4 PWM Output Time
|
Write to PWM Output |
Unit |
Max normalized |
84 |
ns |
Min |
244 |
ns |
Mean |
252.666 |
ns |
Max |
264 |
ns |
Table 14-5 Full ISR Measured At
Once
|
Full ISR Measured at
Once |
Unit |
Open Loop Iq/Id |
Closed Loop Iq/Id |
Closed Loop Speed |
Closed Loop Position |
Closed Loop CiA402 |
Min |
516 |
700 |
932 |
892 |
854 |
ns |
Max |
568 |
824 |
1064 |
1072 |
1040 |
ns |
Mean |
535.97 |
741.272 |
983.271 |
947.688 |
888.707 |
ns |
Max normalized |
388 |
644 |
884 |
892 |
860 |
ns |
Table 14-6 Full ISR Measured At Once
(Clarke Precomputed)
|
Full ISR Measured at Once
(Clarke Precomputed) |
Unit |
Open Loop Iq/Id |
Closed Loop Iq/Id |
Closed Loop Speed |
Closed Loop Position |
Closed Loop CiA402 |
Min |
516 |
572 |
820 |
820 |
|
ns |
Max |
576 |
664 |
920 |
952 |
|
ns |
Mean |
543.08 |
599.084 |
851.557 |
874.515 |
|
ns |
Max normalized |
396 |
484 |
740 |
772 |
|
ns |