Slvafl 7
Slvafl 7
Application Brief
Driving BLDC Motors with PWM Generation Mode
Introduction
In gate driver applications used by TI’s brushless-
DC (BLDC) DRV8x portfolio, there are a few
control modes that are typically used to toggle the
output gates for MOSFET switching. These control
modes are: 1x, 3x, 6x, and independent pulse-width
modulation (PWM) mode.
However, a new technology in the DRV8x portfolio,
such as the DRV8311, includes PWM Generation
mode. PWM Generation mode allows the user to turn
on and off MOSFET gate outputs by writing to the
devices registers over Texas Instruments SPI (tSPI).
The benefit of this new control mode is that the control
mode allows for the PWM period, frequency, and duty
cycle to be configured over the serial interface.
As a result, the impact with this control mode is that Figure 1. Multi-Motor Control using tSPI
the user can achieve a more compact system with
robust motor control by sending SPI read/write signals For more information regarding using tSPI in multi-
instead of requiring multiple GPIO inputs from the motor systems, see Reduce Wires for Your Next Multi-
MCU. Motor BLDC Design With tSPI Protocol.
One system level benefit of using PWM Generation With PWM Generation mode, the following
mode with the DRV8311P (the tSPI variant of the commutation methods are possible: trapezoidal,
DRV8311), comes with the elimination of the INHx sinusoidal, and field-oriented control (FOC). These
and INLx pins. BLDC DRV8x devices generally methods can be accomplished using SPI to set
require three INHx pins and three INLx pins to control the Phase Driver Outputs to the correct state. For
the gate driver outputs. As a result, if the user wanted example, the DRV8311P allows the user to write to
to drive multiple motors, six times the number of the PWM_STATE register to turn control the behavior
motors GPIO pins from the MCU is required. of both the high- and low-side MOSFETs for each of
the phases.
By using PWM Generation mode over tSPI, four wires
to communicate over SPI as shown in Figure 1 are Additionally, this control mode allows the user
required. Additionally, tSPI allows random access to to configure the duty cycle of the PWM signals
the DRV8311P devices with a general call address with precise granularity. For example, with a PWM
and the ability to perform read/writes in any order. frequency of 20 kHz, a user can achieve a duty cycle
granularity of 0.2% per bit. To achieve this with the
DRV8311P, calculate the following:
SLVAFL7 – MAY 2023 Driving BLDC Motors with PWM Generation Mode 1
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Application Brief www.ti.com
•
PWMPRD = PWM_PRD_OUT value
•
FSYS = internal system clock frequency
(approximately 20 MHz)
• FPWM = PWM frequency
2. Set the duty cycle for each of the phase outputs
by configuring the PWM_DUTY_OUTx bits using
∆value = 0.01 × PWMPRD × ∆per (2)
2 Driving BLDC Motors with PWM Generation Mode SLVAFL7 – MAY 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
www.ti.com Application Brief
SLVAFL7 – MAY 2023 Driving BLDC Motors with PWM Generation Mode 3
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
IMPORTANT NOTICE AND DISCLAIMER
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATA SHEETS), DESIGN RESOURCES (INCLUDING REFERENCE
DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS”
AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD
PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate
TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable
standards, and any other safety, security, regulatory or other requirements.
These resources are subject to change without notice. TI grants you permission to use these resources only for development of an
application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license
is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you
will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these
resources.
TI’s products are provided subject to TI’s Terms of Sale or other applicable terms available either on ti.com or provided in conjunction with
such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for
TI products.
TI objects to and rejects any additional or different terms you may have proposed. IMPORTANT NOTICE
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2023, Texas Instruments Incorporated