SWRA493A October   2015  – October 2026 CC1101 , CC110L , CC1120 , CC1121 , CC1125 , CC1190 , MSP430F5438A

 

  1.   1
  2.   CC112x-CC1190 Boost Software Examples
  3.   Trademarks
  4. 1Features and Benefits of UART-Based Test Suite
    1. 1.1  Continuous Unmodulated TX
    2. 1.2  Continuous Modulated TX
    3. 1.3  Static RX
    4. 1.4  TX Single Channel BER
    5. 1.5  RX Single Channel BER
    6. 1.6  TX Frequency Hopping BER
    7. 1.7  RX Frequency Hopping BER
    8. 1.8  RX Sniff Mode
    9. 1.9  SmartRF Selector
    10. 1.10 Radio Setup
    11. 1.11 Automatic Mode
  5. 2Hardware Requirements to Run the Software
  6. 3Configuring Hardware Options
  7. 4Port to Test Software to Custom Hardware
    1. 4.1 SPI Configuration for the Transceiver
    2. 4.2 Chip Select for the Transceiver
    3. 4.3 Reset Pin for the Transceiver
    4. 4.4 Interrupt Configuration for the Transceiver
    5. 4.5 Optional Control Pins for the Range Extender
    6. 4.6 Optional Pins for Creating a Button User Interface
    7. 4.7 Optional LED Pin Configuration
  8. 5References
  9. 6Revision History

SPI Configuration for the Transceiver

The serial peripheral interface (SPI) port on the MSP430 should be configured as a 3-pin device where the chip select pin is controlled manually. The detailed pin configuration is found in hal_spi_rf_xx.h, where xx denotes which specific hardware is being compiled.

/* Transceiver SPI signal */
#define     RF_PORT_SEL            P3SEL
#define     RF_PORT_OUT            P3OUT
#define     RF_PORT_DIR            P3DIR
#define     RF_PORT_IN             P3IN
#define     RF_MOSI_PIN            BIT0
#define     RF_MISO_PIN            BIT1
#define     RF_SCLK_PIN            BIT2