@ Mark T thanks I already have many german books about motors
my next step is to modifiy the PWM to get a SVPWM ( Space vector modulated PWM)
Well I understand how it works with the 8 sectors but I cant imagine how to programm it in my code do you have any experience dealing with SVPWM
Can you help me ?