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.

CC3120: Only UART Interface between CC3120 and MSP432E401Y

Part Number: CC3120
Other Parts Discussed in Thread: ADS8910B, , MSP432E401Y, CC3100, MSP430F5529

Hi,

In my new project, MSP432E401Y 4 x SPI are occupied by 4 x ADS8910B, so UART is the only communication interface between CC3120 and MSP432E401Y (baud rate up to 3Mbps),

However, from the forum, I found the reply "SPI is used for communication between the host and the CC3120 in the default example code"; is there any other example code for TX/RX data via UART?

Thanks.

Ming

  • Hi Ming,

    Yes, it is possible.

    While there is currently no example that demonstrates using the UART interface on the CC3120, there are many examples of this on the CC3100. In our CC3100 SDK, there are MSP430F5529 examples that allow you to switch between the SPI and UART interface by using the SL_IF_TYPE_UART define in your compiler settings. Once you define that, the entire host driver will run on UART, and if you look for all of the references to that SL_IF_TYPE_UART define, you will be able to see what modifications to the host driver porting layer are required to enable the UART interface.

    The same SL_IF_TYPE_UART define exists for the CC3120 host driver. If you look at the SimpleLink Wi-Fi CC3120 SDK Plugin, the source files for the host driver do feature largely the same UART interface handling as what exists for the CC3100 SDK. The only thing that is really missing is the MSP432-specific UART physical interface implementation. What I mean by this is the UART implementations of the functions such as sl_IfOpen, sl_IfClose, and sl_IfRead/sl_IfWrite. Once those UART-specific interface functions are implemented, there should be very little work left to be done to enable UART.


    1. Import an MSP430F5529 example from CC3100 SDK and define SL_IF_TYPE_UART in the compiler settings to enable UART interface.
    2. Search for all references to SL_IF_TYPE_UART within the MSP430 project + the CC3100 host driver, and make a note of differences going from
    SPI->UART.
    3. Import an MSP432 example from the CC3120 SDK plugin, and define SL_IF_TYPE_UART in the compiler settings.
    4. Observe what changes occur from defining SL_IF_TYPE_UART, and see what gaps exist in terms of remapping all of the SPI functionality to UART.
    5. Implement all of the UART interfacing functions according to observations from the MSP430 example. This step will require using your host-MCU
    specific UART peripheral drivers.


    Thanks,
    Alexis