Browse
STMicroelectronics Community
FAQs
Sign In
Product forums
STM32 MCUs
STM32 MCUs Products
STM32 MCUs Boards and hardware tools
STM32 MCUs Software development tools
STM32 MCUs Embedded software
STM32 MCUs TouchGFX and GUI
STM32 MCUs Motor control
STM32 MCUs Security
STM32 MCUs Wireless
STM32 MPUs
STM32 MPUs Products
STM32 MPUs Boards and hardware tools
STM32 MPUs Embedded software and solutions
STM32 MPUs Software development tools
MEMS and sensors
MEMS (sensors)
Imaging (sensors)
Automotive and Transportation
Automotive MCUs
AutoDevKit Ecosystem
GNSS positioning
Edge AI
Analog and audio
Interface and connectivity ICs
Power management
ST25 NFC/RFID tags and readers
STM8 MCUs
Other: hardware
Other: software
Knowledge base
STM32 MCUs
STM32 MPUs
MEMS and sensors
Analog and audio
EMI filtering and signal conditioning
Interface and connectivity ICs
Power management
Quality & reliability
Academy
About
Community guidelines
Feedback forum
Community blog
Developer news
LSchj.1
Associate II
since
2021-09-28
2023-06-14
User statistics
4
Posts
0
Solutions
0
Kudos given
0
Kudos received
STMicroelectronics Community
About LSchj.1
Options
Report User
User Activity
Posts
Replies
Is there a way to do dead time compenstaion using a STM32g4 running a PMSM motor? When changing the PWM period to compensate the period will phase shift. Is there a way to set the low side and high side for a capture compere register in center align mode?
2021-09-28
My compensation today:if(I->a >= deadband_thresholde) { compare_u += dead_time_comp; } else if(I->a <= -deadband_thresholde) { compare_u -= dead_time_comp; } if(I->b >= deadband_thresholde) ...
Re: Is there a way to do dead time compenstaion using a STM32g4 running a PMSM motor? When changing the PWM period to compensate the period will phase shift. Is there a way to set the low side and high side for a capture compere register in center align mode?
2021-09-28
Thanks Cedrick,That's a good idea. I will try to do that.Lars
Re: Is there a way to do dead time compenstaion using a STM32g4 running a PMSM motor? When changing the PWM period to compensate the period will phase shift. Is there a way to set the low side and high side for a capture compere register in center align mode?
2021-09-28
I tried to do a drawing by hand :p
Re: Is there a way to do dead time compenstaion using a STM32g4 running a PMSM motor? When changing the PWM period to compensate the period will phase shift. Is there a way to set the low side and high side for a capture compere register in center align mode?
2021-09-28
The question is timer specific, but I also wonder how people do dead time compensation in their projects. I have setup the dead time in hardware and want the regulator to compensate for this deadtime.-Lars