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.

CCS/MSP430FR5969: Multi Slave Communication

Part Number: MSP430FR5969

Tool/software: Code Composer Studio

hi this is harikrishna...

Now i am working with SPI Protocols, my Question is like in MSP430FR596 P1.6, P1.5 are MOSI MISO..Now in Design two slaves one is Flash memory and another one is accelerometer both are working with SPI communication.. MISO and MOSI lines of both Slaves are connected to Single MISO ,MOSI of MSP internally..when i want to communicate with any of the slave I am making CHIP_SELECT pin as LOW so that i am working both Slaves one after one...the Problem is like if i write the data into flash memory continuously for 30 seconds in between this time Accelerometer motion will detect then what will happened.....i lost my writing data to the Flash ? or Motion will not work?.... 

thanks..

  • You didn't say what accelerometer you're using, but most digital ones have some memory on board (typical keyword:"FIFO") so you can fetch data when you get around to it. You may have to configure it.

    30 seconds may be a bit long, check your data sheet to see what happens when the FIFO fills up.
  • In general, to prevent such conflicts, SPI slaves should not drive their MISO pin when their chip select is not active. See the datasheet of the accelerometer to check if it indeed behaves in that way.
  • Hello Harikrishna,

    The problem here is you need to treat the accelerometer as a higher priority. While writing data to FLASH, if the accelerometer has data ready (usually through and interrupt pin) , then you must stop writing to flash, read the accelerometer data, then return to writing to FLASH.

    I don't know anything about your application so additional information would be helpful.
    For example, what data is being written to FLASH during the 30seconds?
    I assume you are writing other data and when accelerometer is ready you write that data as well, correct?
  • Hello Harikrishna,

    It has been some time since your last response, so I'm assuming you have resolved your issue and I will be closing this thread.
    If this is not the case and you need additional help, you can re-open this same thread.

**Attention** This is a public forum