[SOLVED] Emo_HandleFoc() function timing issue

Announcements

Webinar: Integrated solutions for smaller, simpler low-voltage motor control design.
Join the webinar to experience!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User16953
Level 1
Level 1
Hi,

I have an issue with unwanted time for Emo_HandleFoc() interrupt.
It is executed at every 100usec.

If I execute only port toggle in the Emo_HandleFoc function by return statement as below picture then it is executed at every 50usec normally.
I am using TLE9871QXA20(24Mhz) for motor FOC control (based on TLE9879 software package)

The TLE9879QXA40(40Mhz) MCU is no problem

Is there any special reason for delay time at TLE9871(like as MCU performance)?

Please help this issue.

3593.attach
0 Likes
1 Reply
pestadieu
Employee
Employee
Dear atozall24,

This is indeed due to MCU performance.

The interrupt trigger happens every 50us. However, when the clock is 24MHz, the time required to do the FOC calculation exceeds 50us and the interrupt trigger is missed.
0 Likes