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

Connection Diagram

Table 2-1 is the connection between the DRV8411EVM and CC2340R52 to realize the stepper motor demonstration.

Table 2-1 Table Connections Between the CC2340R5 and DRV8411EVM
Connection CC2340R5 function CC2340R5 pin DRV8411EVM
Phase A1 digital output DIO23 AIN1
Phase A2 digital output DIO2 AIN2
Phase B1 digital output DIO5 BIN1
Phase B2 digital output DIO25 BIN2
Fault indicator digital interrupt input DIO18 nFAULT
Sleep mode digital output DIO1 nSLEEP
Phase A voltage ADC input DIO24 VSEN_A
Phase B voltage ADC input DIO0 VSEN_B
Common GND N/A GND GND

The stepper motor wires will need to be connected to the DRV8411EVM outputs in the orientation specified by the motor manufacturer. The DRV8411EVM VM/VCC power should supplied separately of the LP-EM-CC2340R5, as the LP-XDS110(ET) cannot sufficiently supply the current necessary to supply the stepper motor. The end result looks similar to Figure 2-2.

 Physical Hardware Setup Figure 2-2 Physical Hardware Setup