SPRAD32 May 2022 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
In this case, feedbacks can be collected at 20 kHz with 10 kHz PWM. For the 10 kHz resolver, both peak and valley can be sampled and used after processing. The 3.9 µs excution time is about 7.8% of half PWM period, 50 µs. Similar to Figure 3-1, there is still more than 50% time from a single core left for customized operations if it is preferred to keep the time on the FOC ISR less than 60% of single core usage.
On the other hand, in another case, 20 kHz PWM and 20 kHz resolver, the interrupt service routine will be operated at 40 kHz. 3.9 µs is about 16% of half PWM period, 25 µs. There is still more than 40% time if the ISR is limited by 60% of single core usage. If there is 40 kHz resolver, with 40 kHz PWM, the numbers can simply be scaled to 32% on basic control loop and 28% for customized operations. If it is 20 kHz resolver and 40 kHz PWM, the percentile on basic control loop should be reduced slightly by distributing resolver and speed loop among two cycles of current loop.