Other Parts Discussed in Thread: CC3200
On a new board revision we need to drive the ANTSEL2 output of the CC3220MOD device to select between the two antennas. Where can I find an example showing how to drive this output?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Here's some example code from the CC3200 SDK. Are the arguments to MAP_GPIOPinWrite the same for the CC3220? Where can I find the data that assigns ANTSEL2 to be that pin at that Base address?
//*****************************************************************************
//
//! GPIO Pin Write to Select Antenna
//!
//! \param[in] ucAntNum 1 - Antenna 1,2 - Antenna 2
//!
//! \return None
//
//*****************************************************************************
static void AntennaSelect(unsigned char ucAntNum)
{
if(ucAntNum == 1)
{
MAP_GPIOPinWrite(GPIOA3_BASE, 0xC, 0x8);
}
else if(ucAntNum == 2)
{
MAP_GPIOPinWrite(GPIOA3_BASE, 0xC, 0x4);
}
return;
}
Hey Chuck,
Looks like we arrived at the same conclusion. There is no example in the CC3220 SDK but there is in the CC3200 SDK as you pointed out and the concept is the same.
Are the arguments to MAP_GPIOPinWrite the same for the CC3220?
Yes
Where can I find the data that assigns ANTSEL2 to be that pin at that Base address?
I'm not sure where exactly this information lies. I can tell you that the GPIO_write call from TI drivers abstracts this level of detail for you so you don't have to worry about it. The arguments for GPIO_write is just the GPIO index and the value you want to write to it. If this is not enough let me know and I can ask someone internally.
Jesu