I wired a DC motor driver with a MCU, just like the following simplified figure. Simple.
The PWM output frequency is 2kHz and it has 3.3V logic. It works very well as I expected. However, I have one minor problem with this: the MCU has a floating output on reset so the DC motor spins so fast until the MCU initialize the PWM out pin. I have a couple of questions about this problem.
A solution I can come up with is to add a pull-down resistor between the PWM line and GND. Is that a right solution, or are there other ways to prevent the floating output on reset?
If yes, what's the preferable resistance for the pull-down resistor??
Thank you in advance.
EDIT: The host MCU is STM32F446RET and the motor driver IC is MAX14871. The PWM output in in question is PA8.