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.

MSP432 SPI wih LMP90100

Other Parts Discussed in Thread: LMP90100

Hello,

i am using the MSP432 Launch Pad to communicate via SPI to the LMP90100.

I am using the provided code for the MSP430 and have modified so it works with the MSP432.

First i test the SPI by connecting the SIMO and SOMI together, to see if the send Word the same as the received word is.

The SPI is working. So i went and try writtting the Register from the LMP90100 and reading it again to see if it matches.

See here i measure the SPI with Green= 6MHz Clock, Yellow: SIMO and Blue: SOMI, the CSB is LOW and after writing HIGH

So i wrote to the adress 0x00 a 0xC3 value (195) 

Than i measured the SPI by reading the Value fromn that adress to see if it matches:

So i am first writting to the LMP90100 to read the adress 0x00 and the last bits is the value returned.

But here the value is not correct. It seems to me that the LMP90100 SPI doesnt understand the MSP430.

Is my 6MHz SPI Clock too fast? Did i setup the SPI Master from the MSP432 right, so that is in the LMP90100 SPI requirements?

I havent found anything in the LMP90100 datasheet that says how the SPI should be setup. Thats why i have used the MSP430 code.

Here is my SPI Setup code for the MSP432:

 

And here is my wiring connection:

Thank you,

Michael

  • Hallo,

    just saw that the register 0x00 cannot be read.
    But I have also testet on register 0x01 and had also different values.

    What i have noticed, that when i send the first 8 Bits the SDO or SOMI isnt HIGH but sends values.
    Becouse if you look at the LMP90100 datasheet page 38 figure 68(My configuration), the SDO shouldnt be sending anything.

    Any idea?
  • Hi Michael,

    From the scope shots above it looks like you are sending two bytes when reading and writing. The writing and reading protocol for the LMP90100 is shown starting on page 40 of the datasheet. You have to set up the address correctly for the LMP90100 to understand the SPI transmission.

    For example, to write 0x01 to register 0x0E you need to send the following: 0x10 0x00 0x0E 0x01.
    To read register 0x0E you would send 0x10 0x00 0x8E and one more byte of clocks before bringing CS up.

    Mike
  • Hi Mike,

    its working now. What i did was always write the URA to any Adress i that i am writting or reading.

    Thank you,

    Michael