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

Tests and Results

CPU load and RPM measurements with an active Bluetooth LE connection have been recorded for various duty cycle outputs and are provided in Table 5-1. Keep in mind that RPMs relative to the duty cycle will be greatly dependent on the physical properties and characteristics of the BLDC motor used.

Table 5-1 BLDC Motor Application Performance
Duty Cycle (%)RPMCPU Load (%)
10

1080

3

30

5040

5

50

10800

8

70

15120

11

90

23520

15

Using a logic analyzer is easier to visualize the BLDC motor being driven using the high and low sides of the three phases, along with the transition between hall effect sensor level transitions

CC2340R5 BLDC Motor Oscilloscope ScreenshotsFigure 5-1 BLDC Motor Oscilloscope Screenshots
CC2340R5 BLDC Motor TransitionFigure 5-2 BLDC Motor Transition

When disabling the UART peripheral, not enabling Bluetooth LE behavior, and not actively spinning the BLDC motor, the CC2340R5 LaunchPad operates with a power consumption of less than 1µA.

As determined through the Memory Allocation view inside of CCS, the default project requires 184 kB of flash (not including the 16 kB reserved for non-volatile memory) and 32 kB of SRAM. Disabling the UART save 3 kB of flash, and a project built without using the Bluetooth LE stack only consumes 22 kB of flash and 15 kB of SRAM in total.

A throughput test was added to get a rough estimate of the maximum amount of data that can be sent out over characteristic 5 of the Bluetooth LE profile. To perform this test, a clock instance was initialized to send out 247 bytes of data over notifications. The device was connected to a central, whose connection interval was 45 ms. Across this connection, and while maintaining a duty cycle of 80%, 380 Kbps throughput was achieved. Throughput tests depend on a number of factors, such as connection intervals, and CPU overhead (motor duty cycle in this case), therefore these numbers are just a rough estimate and could be improved with the right modifications. The stress test is disabled by default but can be easily added by setting the start flag of the ClockP instance found in app_peripheral.c to True.