SDAA111 October   2025 CC2340R5

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 CC2340R5
    2. 1.2 Stepper motor
  5. 2Stepper Motor Hardware
    1. 2.1 Hardware setup
    2. 2.2 DRV8411EVM settings
    3. 2.3 Connection Diagram
  6. 3Running the Example
    1. 3.1 Dependencies
    2. 3.2 Loading Firmware
    3. 3.3 Local Stepper Motor Control
    4. 3.4 Remote Control Using Proprietary RF
  7. 4Firmware Design
    1. 4.1 Code Flow Description
    2. 4.2 ADCBuf
    3. 4.3 Power
    4. 4.4 Application Events
    5. 4.5 Step Table
    6. 4.6 Fault Detection Pin
  8. 5Tests and Results
  9. 6Summary
  10. 7References

Tests and Results

A logic analyzer is used to validate the waveform being driven from the CC2340R5 to the DRV8411. An example of this is provided below for half-stepping with fast decay mode.

 Stepper Motor Waveforms in Half-Stepping With Fast Decay ModeFigure 5-1 Stepper Motor Waveforms in Half-Stepping With Fast Decay Mode

ADC values can be monitored using the Code Composer Studio's Watch window during a debug session. In the image below, even entries display VSEN_A whereas odd entries reflect VSEN_B. During this brief period in time it is possible to observe that both motor phases are being actively driven as the values of both are rising with the progression of time.

 ADC Buffer MeasurementsFigure 5-2 ADC Buffer Measurements

ENERGYTRACE has been used to evaluate the power consumption of the CC2340R5 MCU has been measured with consideration to both standby activity, where only periodic Proprietary RF radio transmit intervals occur, and instances for which the motor is actively being driven for a set amount of time. A comparison of these observations is shows below. The average standby current consumption can be further optimized to achieve less than 10 µA by further configuring the Proprietary RF definitions explained previously. The active motor measurements only take into account the CC2340R5, not the current draw required by the DRV8411EVM to drive the motor.

 EnergyTrace CC2340R5 MCU Power Consumption Measurements of Standby Low Power ModeFigure 5-3 EnergyTrace CC2340R5 MCU Power Consumption Measurements of Standby Low Power Mode
 EnergyTrace CC2340R5 MCU Power Consumption Measurements during an Active Motor StateFigure 5-4 EnergyTrace CC2340R5 MCU Power Consumption Measurements during an Active Motor State