SDAA075 October   2025 CC2340R5

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 CC2340R5
    2. 1.2 DRV8329A
    3. 1.3 BLDC Motor
  5. 2BLDC Hardware
    1. 2.1 Hardware Setup
      1. 2.1.1 DRV8329AEVM Settings
    2. 2.2 Connection Diagram
  6. 3Running the Example
    1. 3.1 Dependencies
    2. 3.2 Loading Firmware
    3. 3.3 Motor Connection Test
    4. 3.4 BLDC Motor Hall Sensored Trap Operation With Bluetooth® LE
      1. 3.4.1 SimpleLink™ Connect Phone Application
  7. 4Firmware Design
    1. 4.1 Code Flow Description
    2. 4.2 Customized TI Drivers
      1. 4.2.1 PWM
      2. 4.2.2 ADCBuf
      3. 4.2.3 Power
    3. 4.3 Application Events
    4. 4.4 Commutation Table
    5. 4.5 Motor Acceleration
    6. 4.6 ADC Operations
    7. 4.7 Spin Detect Feature
    8. 4.8 Reporting Statistics
    9. 4.9 Bluetooth® LE Stack
  8. 5Tests and Results
  9. 6Summary
  10. 7References

Connection Diagram

Table 2-1 is the connection between the DRV8329AEVM and CC2340R52 to realize the BLDC motor demonstration.

Table 2-1 Connections Between the CC2340R5 and DRV8329AEVM
ConnectionCC2340R5 FunctionCC2340R5 PinDRV8329AEVM
Phase A HSPWM outputDIO24INHA
Phase A LSPMW outputDIO8INLA
Phase B HSPWM outputDIO12INHB
Phase B HLPWM outputDIO21INLB
Phase C HSPWM outputDIO6INHC
Phase C LSPWM outputDIO11INLC
HALL ADigital interrupt inputDIO23HALLA
HALL BDigital interrupt inputDIO18HALLB
HALL CDigital interrupt inputDIO13HALLC
Bus voltageADC inputDIO7VSENPVDD
Phase A voltageADC inputDIO1VSENA
Phase B voltageADC inputDIO2VSENB
Phase C voltageADC inputDIO5VSENC
Shunt currentADC inputDIO0ISENA
DRV faultDigital interrupt inputDIO14nFAULT_49C
UART TXUART transmit outputDIO20N/A
UART RXUART receive inputDIO22N/A

Common GND

GND connection

GND

GND

The BLDC motor wires must be connected to the specified DRV8329AEVM pins. The necessary motor wires and the corresponding pin connections are listed in Table 2-2. For a specific motor, verify which wires implement these functions and connect them accordingly

Table 2-2 Connections Between the BLDC Motor and DRV8329AEVM
Motor Wire DRV8329AEVM Connector Motor Image Example Color
VCCHALL_PWRRed
HU/PH1HALLAOrange
HV/PH2HALLBYellow
HW/PH3HALLCBlue
GNDGNDBlack
UOUTAOrange
VOUTBYellow
WOUTCBlue

The end result looks similar to Figure 2-2. Note that the LED header jumpers have been removed from the LP-EM-CC2340R5 as these GPIOs are used for other purposes. Once a valid power source has been supplied through J10 on the DRV8329AEVM, both toggle switches S1 and S2 must be oriented to the wake and on positions, respectively, so that the green AVDD (D1) and red nFAULT (D2) LEDs are lit.

The nFAULT LED clears whenever the CC2340R5 enables the DRV motor driver by setting the DRVOFF pin high. The nSLEEP and DRVOFF lines are inputs to the DRV8329A which is controlled by EVM toggle switch hardware, but can optionally be controlled by the CC2340R5 through further firmware development.

The CC2340R5 DIO6 pin is used as a PWM to control the BLDC motor, however the LP-EM-CC2340R5 also connects this pin to nCS of the on-board external flash device. This causes additional power consumption unless R24 and R25 on the LaunchPad are depopulated.

CC2340R5 Physical Hardware SetupFigure 2-2 Physical Hardware Setup