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.

MSP430G2131: SPI communication

Part Number: MSP430G2131
Other Parts Discussed in Thread: DRV8838

We wish to establish a SPI communication between MSP4302131 chip (on DRV8838 EVM) and the PC. In our understanding the chip has an SPI timer and pins. 

Please advise if there is any related documentation that could help. 

Thank you

  • Hello Piyusha,

    I see from the schematic and PCB which pins you can use for SPI.  You will need some type of SPI to UART  bridge to convert the SPI data to UART.

    I'm not aware of an "off the shelf" solution, but you could use one of several different TI LaunchPads to function as the bridge.  The MSP430FR2433 is a good one to use. The LaunchPad has a programmer/debugger on the PCB that provides a UART interface to the PC over USB.  You would need to program the LaunchPad's target MCU to perform the SPI to UART conversion.  Here is a link to a document describing how it would work.  If you need help with the SPI and UART peripherals, check out the examples in the TI Resource Explorer (TIREX). Look i

  • Hi Dennis, 

    We are using CH341A instead (as a USB to SPI adapter). We are a little unsure as to which one will be the SPI master and which will be the SPI slave (We think CH341A will be the master while MSP4302131 chip (on DRV8838 EVM) will act as a slave. 

    Please advise. 

  • Hi Piyusha,

    I assume the PC will be controlling the system, so it makes sense to for CH341A to be SPI master and MSP430 will be SPI slave.

  • Hi Dennis, 

    Thank you. We will give it a try. 

  • Hi Piyusha,

    I haven’t heard from you for a couple of days now, so I’m assuming you were able to move forward with your project.
    I'll change the status of this posting to RESOLVED, but if this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information.
    If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.

  • Hi Dennis, 

    We are planning to use one of the ADC channels. I read on the datasheet that the ADC module contains built-in voltage reference with 2 selectable voltage levels. 

    Is there any particular advantage of using internal reference compared to external reference apart from the fact that it is designed for low power applications?

**Attention** This is a public forum