I am trying to control a linear drive motor with a built-in encoder. I am using a motor driver to move the linear motor. I have calculated a PWM signal for a PWM frequency of 1kHz and a duty percent of 50% with the following values:
Internal Clock = 180 MHz
Prescaler = 180
Arr register...