This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV8813: How to configure for PWM?

Part Number: DRV8813

Greetings!

I'm trying to configure the DRV8813 for PWM control of a PMDC motor, but I don't think I fully understand the operation of this chip from the datasheet.  According to the datasheet, the A-phase inputs are for setting output current, not handling drive signals?  The datasheet references externally applied PWM Frequency, but there's no indication of where this PWM signal is to be routed.

When I connect my MCU to this driver, where do I route the PWM signal pins?  I see the AENBL allows the outputs to be active when it's driven high, and the APHASE dictates which motor output will be active based on a high or low signal, but it seems like this is strictly on-off and direction control of the motor.  How do I use PWM to control speed with this driver chip?  I've pasted a capture of this part of the design for context.

  • Hello James,

    The control PWM signals from the MCU should be connected to xENBL. xPHASE is for setting motor direction but can be permanently tied to either GND or external logic supply if the motor direction is not going to change. Otherwise, xPHASE should be control with MCU but only with GPIO toggle (no PWM required).

    The diagram below shows the minimum required signals going to the MCU to control motor bidirectionally and with speed control.

    Regards,

    Pablo Armet