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.

LP-MSPM0C1104: SPI data readout to PC via USB

Part Number: LP-MSPM0C1104

Using LP-MSPM0C1104 and CCS with most recent updates,
I need to collect SPI data off of an MCU and pass on to PC via USB for QA analysis.
What's the most suitable LP-MSPM0C1104 example to start from? Thank you.

Regards

Johannes

  • Hello Johannes,

    In our SDK, you can find many examples including SPI controller and SPI peripheral, please choose one according to your detailed application. About the details of each example, please see the readme file in the example folder. And please notice that if you want to send the MCU SPI data to PC through USB, you need to use a SPI-USB converter. Our on-board XDS110 just can be used as UART-USB converter. 

    BR,

    Janz Bai

  • Only need XDS110 to pass data from M0C1104 via USB to output on e.g. console, minicom, file or some such.

    M0C1104 does all the SPI receiving only. Just need a starting point. Ti's naming conventions and device handling are quite different to get used to.

    I am a hardware guy from the assembler world. 68xxx etc, avr with C experience and high level object pascal background. Need to get stuck into this!

  • Get it. I recommend you start your tests based on the demo: spi_peripheral_echo_interrupts. And you can enter debug mode, then you can see the received data on your PC. Otherwise, you need to add UART module code in the demo, after receiving SPI data, then send the data through UART to XDS110, then XDS110 send it through USB to PC.

    BR,

     Janz Bai

  • If you don't want an XDS-110, you can just get an FTDI serial to USB chip. You can use a "VCP" driver so it looks like a COM port. This is essentially what the back channel UART in the XDS 110 does.

  • I actually do have an FTDI I used for AVR programming.

    FTDI with PulseView might do the trick as well instead of the LP-MSPM0C1104.

    As long as I can get the SPI stream via USB into a PC to record I am happy.

**Attention** This is a public forum