SWRA591 April 2019 CC1310 , CC1350
In the Simplelink SDK, there are working examples for setting up CC13x0 for evaluation. A working example for WB-DSSS scheme can be built by importing standalone rfPacketTx and rfPacketRx examples (see Figure 9) from the SDK and replacing their smartrf_settings.c and smartrf_settings.h files with those exported from the SmartRF studio. These files contain API configuration and overrides for radio parameters that are used for each DSSS modulation scheme.
In Figure 10, make sure the file names correspond to the ones in the rfPacketRX/TX examples to avoid compilation errors.
Figure 11 shows two projects imported into CCS IDE: one for transmit and the other for receive. The projects can be built and downloaded to two LaunchPads for testing.
Various DSSS modes can be programmed by changing the value of address 0x400452AC in the uint32_t pOverrides[ ] array of the smartrf_settings.c file (see the following code). The valid values for the register are shown in Table 3.
DSSS | Code | Hex Value | Sym Rate | Data Rate |
---|---|---|---|---|
1 | K = 4 | HW_REG_OVERRIDE(0x52C,0x0800) | 480 kbps | 240 kbps |
2 | K = 4 | HW_REG_OVERRIDE(0x52C,0x0900) | 480 kbps | 120 kbps |
4 | K = 4 | HW_REG_OVERRIDE(0x52C,0x0B03) | 480 kbps | 60 kbps |
8 | K = 4 | HW_REG_OVERRIDE(0x52C,0x0F33) | 480 kbps | 30 kbps |
// Example PA ramping of 5 µs and AGC reference level of 0x1EHW_REG_OVERRIDE (0x6088,0x1F1E),
//Set spreading = 1, K = 4HW_REG_OVERRIDE (0x52AC,0x800),
//TX: Configure PA ramping setting (0x08) for approximatelyl 5 µs PA ramp timeHW_REG_OVERRIDE (0x608C,0x3F13).