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.

CC3200-LAUNCHXL: Connectivity with the MSP432

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200, CC3100

Hi

I am trying to interface the MSP432(as Master) with the CC3200(as Slave) using SPI. I am facing the issues in receiving the data transferred.

I am using SPI 3 wire protocol and generated the spi clk for bit rate 500000. When checked the output transmitted from the MSP using the logic analyzer I am able to see the data where as at the other end at CC3200 the data seems to be received differently. 

The configuration is 8 bit word length for both the devices. In CC3200 the data shown receiving is 16 bit. Kindly help me out here.

Thanks in Advance

Basu

  • Basavanagouda,

    Are the SPI modes(polarity/phase) configured to be the same between the two devices?

    Could you share your logic analyzer shots of the signal, as well as a log of the data being read?

    How are you configuring the word length to be 8 bits on the CC3200?

    BR,

    Seong

  • Seong

    Thanks for your quick response.

    For your query on the configuring the word length for CC3200 I am using the same method given in the spi demo program.

    Yes both the polarity are made same. In CC3200 using the SPI_SUB_MODE_0 The code snippets are given below

    const eUSCI_SPI_MasterConfig spiMasterConfig =
    {
    EUSCI_B_SPI_CLOCKSOURCE_SMCLK, // SMCLK Clock Source
    48000000, // SMCLK = DCO = 3MHZ
    100000, // SPICLK = 500khz
    EUSCI_B_SPI_MSB_FIRST, // MSB First
    EUSCI_A_SPI_PHASE_DATA_CAPTURED_ONFIRST_CHANGED_ON_NEXT, // Phase
    EUSCI_B_SPI_CLOCKPOLARITY_INACTIVITY_LOW, // High polarity
    EUSCI_A_SPI_3PIN // 3Wire SPI Mode
    };

    MAP_SPIConfigSetExpClk(GSPI_BASE,MAP_PRCMPeripheralClockGet(PRCM_GSPI),
    SPI_IF_BIT_RATE,SPI_MODE_SLAVE,SPI_SUB_MODE_0,
    (SPI_HW_CTRL_CS |
    SPI_3PIN_MODE |
    SPI_TURBO_OFF |
    SPI_CS_ACTIVEHIGH |
    SPI_WL_8));

  • Basavanagouda,

    How are you connecting the two devices? Can you please share an image of your set up?

    Thanks,

    Seong

  • Hi Seong

    I am just connecting both the boards one above the other (plugging together). 

    The pin configuration are 

    CC3100                           MSP432

    p5(SCLK)                                    p1.5(sclk)

    p7 (SIMO)                                    p1.6(MOSI)

    Weird thing is if I try to connect using the jumper wires I am unable to receive the output.

    Is there any dependency of the pin currents.

    Thanks

  • Basa,

    So you're able to get it to work now? The MSP432's GPIOs have limited drive strength, so you'll want to avoid using long wires.

    BR,

    Seong