Building a Software Example
6
SWRA523B – September 2016 – Revised March 2017
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
. 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
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);