PWM FOR STEPPER MOTOR IN DAVE

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

cross mob
NA97
Level 3
Level 3
50 sign-ins 10 replies posted 25 sign-ins

I am using a stepper motor with the XMC4500 kit connected to a TLE8444 driver. I can rotate the motor in both clockwise and anticlockwise directions in half-step mode. How can I implement PWM for motor speed control in DAVE IDE? Do I need to configure the same GPIO pins that I use for the motor driver interface with the MCU as PWM pins?

0 Likes
1 Solution
Sahil_K
Moderator
Moderator
Moderator
First like given 100 solutions authored 250 sign-ins

Hi @NA97 ,

To achieve variable speed, PWM may be used. However, to do this, the same GPIO pins used by the TLE8444 input channels INx (x=1-4) must be configured accordingly. Please visit the following links for PWM implementation on XMC4500 using CCU4 and CCU8:

Link 1: - https://github.com/Infineon/mtb-example-xmc-ccu4-pwm

Link 2: - https://github.com/Infineon/mtb-example-xmc-ccu8-pwm

Additionally, we have the KIT_XMC1300_IFX9201, which is designed to control stepper motors and is also compatible with Arduino. For the control loop, please refer to the board, and kindly find the software and examples for this on the KIT_XMC1300_IFX9201 webpage.

Best Regards,
Sahil Kumar

View solution in original post

0 Likes
1 Reply
Sahil_K
Moderator
Moderator
Moderator
First like given 100 solutions authored 250 sign-ins

Hi @NA97 ,

To achieve variable speed, PWM may be used. However, to do this, the same GPIO pins used by the TLE8444 input channels INx (x=1-4) must be configured accordingly. Please visit the following links for PWM implementation on XMC4500 using CCU4 and CCU8:

Link 1: - https://github.com/Infineon/mtb-example-xmc-ccu4-pwm

Link 2: - https://github.com/Infineon/mtb-example-xmc-ccu8-pwm

Additionally, we have the KIT_XMC1300_IFX9201, which is designed to control stepper motors and is also compatible with Arduino. For the control loop, please refer to the board, and kindly find the software and examples for this on the KIT_XMC1300_IFX9201 webpage.

Best Regards,
Sahil Kumar

0 Likes