SDAA116 October   2025 CC2340R5

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 CC2340R5
    2. 1.2 DRV8251A
    3. 1.3 BDC Motor
    4. 1.4 TMAG5213
  5. 2BDC Application
    1. 2.1 Hardware Setup
      1. 2.1.1 DRV8251AEVM Settings
    2. 2.2 Connection Diagram
  6. 3Running the Example
    1. 3.1 Dependencies
    2. 3.2 Loading Firmware
    3. 3.3 Zigbee Network Formation
  7. 4Firmware Design
    1. 4.1 Code Flow Description
    2. 4.2 LaunchPad Button Functionality
    3. 4.3 Non-Volatile Memory
    4. 4.4 Bidirectional PWM Motor Control
    5. 4.5 ADC Overcurrent Protection Feature
    6. 4.6 Hall-Effect Based Motor Position Tracking Feature with Configurable Endpoints
    7. 4.7 Logging Functionality
    8. 4.8 Interoperability with Third-Party Smart Hub Devices
  8. 5Tests and Results
    1. 5.1 PWM and Hall-effect Signal Analysis
    2. 5.2 Power Consumption Analysis with EnergyTrace™
  9. 6Summary
  10. 7References

Introduction

The SimpleLink™ CC2340R5 is a powerful and inexpensive MCU with 512kB of flash and 36 or 64kB of SRAM, featuring an Arm® Cortex®-M0+ and 2.4GHz radio. This feature set is capable of achieving a multitude of end applications for a variety of radio protocols in a single-chip design. This application note highlights a single instance to prove the wider possibilities capable with this device. Furthermore, the CC2340R5 has been demonstrated to also support brushless DC (BLDC) motor and stepper motor applications.

Controlling a BDC motor with the CC2340R5 through Zigbee radio communication is possible when coupled with a DRV8251A and TMAG5213. This document details the hardware and software implementations necessary to realize this application, and optional features which have been enabled. Through reading this document, users can learn more about both BDC motor control and CC2340R5 development, and gain confidence to utilize similar concepts for designs.