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.
Tool/software: TI C/C++ Compiler
I'm working with both boards and need to use the I2C interface, for the LAUNCHXL there's enough information for the pin map (concise and precise): DIO4 - SCL, DIO5 - SDA:
as for the SMARTRF06 there's too much lag in the information that generates too much confusion:
In the MCU Datasheet got this info:
From the PIN ID: 13 and 14 (SDA, SCL respectively), however when I come to the Terminal Configuration and Functions, find this:
Pin 13 is VDDS2, and Pin 14 DIO_8.... then I get confused again... does the Table 11-3 refers to something else and not the physical pin IDs?
Once I can figure out this comes the next nuisance: who is who in the SmartRF board? Don't find a mapping of the RF1 and RF2 regarding the MCU's DIOs
Any help will be appreciated
Thanks
Hi Andrew,
You can look at the I2C Driver example project for CC2640R2F. The pin configuration is done in the I2C HW attributes table in CC2640R2_LAUNCHXL.c .
/* * =============================== I2C =============================== */ #include <ti/drivers/I2C.h> #include <ti/drivers/i2c/I2CCC26XX.h> I2CCC26XX_Object i2cCC26xxObjects[CC2640R2_LAUNCHXL_I2CCOUNT]; const I2CCC26XX_HWAttrsV1 i2cCC26xxHWAttrs[CC2640R2_LAUNCHXL_I2CCOUNT] = { { .baseAddr = I2C0_BASE, .powerMngrId = PowerCC26XX_PERIPH_I2C0, .intNum = INT_I2C_IRQ, .intPriority = ~0, .swiPriority = 0, .sdaPin = CC2640R2_LAUNCHXL_I2C0_SDA0, .sclPin = CC2640R2_LAUNCHXL_I2C0_SCL0, } };
Cheers,
Fredrik
/* I2C */ #define CC2640R2_LAUNCHXL_I2C0_SCL0 IOID_4 #define CC2640R2_LAUNCHXL_I2C0_SDA0 IOID_5
Got it, thank you~