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

Remote Control Using Proprietary RF

After the correct motor functionality has been confirmed, this is possible to add a remote LP-EM-CC2340R5 device running a Proprietary RF project. Included in this example is a slightly modified version of rfEchoRx, where similar button functionality has been implemented to be communicated over the Proprietary RF radio every time rfEchoTx_stepper_motor requests a packet. To communicate with the rfEchoTx portion of the stepper motor code, the *.syscfg files must have the exact same SysConfig -> RF Stacks -> Custom configuration.

Table 3-2 Proprietary RF Application Definitions
Definition Default Units Project Function
MAX_LENGTH 10 Integer Both Data bytes per packet
PACKET_INTERVAL 20000000 ¼ ms rfEchoTx Interval between packet events
TX_DELAY 40000 ¼ ms rfEchoRx Delay before transmitting response
RX_TIMEOUT 80000 ¼ ms rfEchoTx Timeout waiting for response
FREQUENCY 2412000000 Hz Both Proprietary RF frequency

No modifications to the rfEchoRx CC2340R5 LaunchPad are necessary. If done properly, with both LaunchPads programmed and powered on, you are able to push BTN-1 or BTN-2 on the rfEchoRx LaunchPad and, after the PACKET_INTERVAL expires, observe the stepper motor moving counter-clockwise or clockwise, respectively, after the packet is received by the rfEchoTx_stepper_motor LaunchPad.