Texas Instruments CC13 Series Application Report Download Page 6

Building a Software Example

www.ti.com

6

SWRA523B – September 2016 – Revised March 2017

Submit Documentation Feedback

Copyright © 2016–2017, Texas Instruments Incorporated

CC13xx Antenna Diversity

3

Building a Software Example

Using the patch is transparent to the application as long as the correct settings are used and the
RFC_SMI_CL_OUT signal is output on the DIO used to control the switch.

As an example, the following steps must be completed to implement antenna diversity on the rfPacketRX
example. The rfPacketRX example is available when downloading the SimpleLink™ CC13x0 Software
Development Kit

[3]

. See the Proprietary RF Quick Start Guide for more information. A link to this guide

can be found in the documentation_overview_simplelink_cc13x0_sdk.html found here:

C:\ti\simplelink_cc13x0_sdk_x_xx_xx_xx\docs (assuming that installation has been to default location)

1. The smartrf_settings.c file must be replaced with the one included with this document

[4]

.

2. The following defines must be added:

#define

PINCC26XX_MUX_RFC_SMI_CL_OUT

0x37

#define

ANTENNA_SELECT

IOID_X

#define

ANTENNA_SELECT_INV

IOID_Y

// Added if the switch requires two control signals

3. The ANTENNA_SELECT and optional ATENNA_SELECT_INV signals must be added to the pinTable:

PIN_Config pinTable[] =

{

Board_LED1

| PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,

ANTENNA_SELECT

| PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,

ANTENNA_SELECT_INV | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX |

PIN_INV_INOUT,

PIN_TERMINATE

};

4. Add the following line or lines to the int main(void) function before starting the BIOS. Adding these lines

is to connect the RFC_SMI_CL_OUT signal to wanted DIOs (ANTENNA_SELECT and
ANTENNA_SELECT_INV).

PINCC26XX_setMux(pinHandle, PIN_ID(ANTENNA_SELECT),

PINCC26XX_MUX_RFC_SMI_CL_OUT);

PINCC26XX_setMux(pinHandle, PIN_ID(ANTENNA_SELECT_INV), PINCC26XX_MUX_RFC_SMI_CL_OUT);

Summary of Contents for CC13 Series

Page 1: ...8 4 PER vs Input Power Level 8 Byte Preamble 6 dB Attenuator on One Antenna 9 5 PER vs Input Power Level 6 Byte Preamble 6 dB Attenuator on One Antenna 9 6 PER vs Input Power Level 8 Byte Preamble 6...

Page 2: ...ternal Switch The antenna diversity algorithm controls an external antenna using an internal signal from the RF Core RFC_SMI_CL_OUT The RFC_SMI_CL_OUT signal can be routed to any available digital I O...

Page 3: ...oggle the switch PQT1 1 PreTimeout 1 and PQT1 0 CsQual 1 and CS 0 PQT2 1 PQT2 0 Yes No S y n cT im e o u t 1 www ti com Antenna Diversity Patch 3 SWRA523B September 2016 Revised March 2017 Submit Docu...

Page 4: ...ignal level is too low for the second antenna two preamble time outs have occurred without receiving a preamble hit Then the receiver gets a preamble hit and must check the other antenna This is the t...

Page 5: ...icant bytes of the register address 52B0 52B4 6088 or 6090 YYYY is the value to write As an example the following register write sets the carrier sense threshold to 111 dBm HW_REG_OVERRIDE 0x6090 0x0A...

Page 6: ...has been to default location 1 The smartrf_settings c file must be replaced with the one included with this document 4 2 The following defines must be added define PINCC26XX_MUX_RFC_SMI_CL_OUT 0x37 d...

Page 7: ...March 2017 Submit Documentation Feedback Copyright 2016 2017 Texas Instruments Incorporated CC13xx Antenna Diversity For the transmitter use the SmartRF Studio and the 50 kbps setting with the preambl...

Page 8: ...e 25 kHz deviation 868 MHz 6 or 8 byte preamble 4 byte sync word 0x930B 51DE Carrier sense CS threshold set to 111 dBm 4 2 Conducted Measurements 4 2 1 Sensitivity Table 5 lists the sensitivity measur...

Page 9: ...6 2017 Texas Instruments Incorporated CC13xx Antenna Diversity 4 2 2 2 8 Byte Preamble Figure 4 shows the PER versus the input power level with an 8 byte preamble and a 6 dB attenuator on one antenna...

Page 10: ...mber 2016 Revised March 2017 Submit Documentation Feedback Copyright 2016 2017 Texas Instruments Incorporated CC13xx Antenna Diversity 4 2 3 2 8 Byte Preamble Figure 6 shows the PER versus the input p...

Page 11: ...t the same time and with the same fading conditions Figure 7 shows a block diagram of the test setup and Figure 8 shows the test board Figure 7 Block Diagram of Antenna Diversity Test Setup Notes with...

Page 12: ...m the 0x4004 5178 register see Table 4 The following code was used to read the register and to track the number of packets that were received on each antenna RF_Stat status RF_runImmediateCmd rfHandle...

Page 13: ...he PER for Test 1 Table 6 Test 1 PER for Boards Using ANT1 ANT2 or Diversity DIV Antenna Number of Received Packets Number of Sent Packets PER ANT1 2647 3000 11 8 ANT2 2078 3000 30 7 DIV 2672 3000 10...

Page 14: ...ANT1 46 632 3000 78 9 42 1551 2000 22 5 38 1971 2000 1 5 ANT2 46 2696 3000 10 1 42 1900 2000 5 0 38 1983 2000 0 8 DIV 46 2751 3000 8 3 42 1944 2000 2 8 38 1999 2000 0 In this test an increase in TX p...

Page 15: ...016 2017 Texas Instruments Incorporated CC13xx Antenna Diversity 5 References 1 Texas Instruments CC13xxEM 7793_4L Reference Design 2 Texas Instruments SmartRF Studio 7 3 Texas Instruments SimpleLink...

Page 16: ...History NOTE Page numbers for previous revisions may differ from page numbers in the current version Changes from December 23 2016 to March 31 2017 Page Added SDK and reference information to Section...

Page 17: ...TI Resource NO OTHER LICENSE EXPRESS OR IMPLIED BY ESTOPPEL OR OTHERWISE TO ANY OTHER TI INTELLECTUAL PROPERTY RIGHT AND NO LICENSE TO ANY TECHNOLOGY OR INTELLECTUAL PROPERTY RIGHT OF TI OR ANY THIRD...

Reviews: