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.

MSP430FR2476: USCIA/B SPI Slave sw optimisation

Part Number: MSP430FR2476


Hi champs,

customer need to implement a SPI slave high data thoughput application, to store data into internal RAM of this FRAM device.

Due to lack of FIFO, all data writes has to be done in interrupt.

Q1:Do we have a SW implementaion e.g. for a FIFO emulation ?

Q2: Do we have some thoughput RX data measurements, which can be achieved  as SPI slave?

Q3: Any prefenreces in SPI modes USCI_A vs USCI_B  ?


Q3: Any prefenreces UCIa vsa UCIBQ3

  • Hi DJ-NG,

    "Q1:Do we have a SW implementaion e.g. for a FIFO emulation ?"

    We have a TI Design that shows how to implement EEPROM emulation with MSP430 MCUs (linked below), which sounds pretty similar to what your customer is trying to accomplish. 

    Example software for this TID can be found here:

    http://www.ti.com/tool/TIDM-FRAM-EEPROM#technicaldocuments

    The document describes how to implement this functionality with I2C and SPI. You will want to refer to the SPI sections. It's important to note that the document initially implements the EEPROM emulation using DMA. The FR2476 device does not have DMA. Section 7.2 describes how to implement the EEPROM emulation without using DMA.

    "Q2: Do we have some thoughput RX data measurements, which can be achieved  as SPI slave?"

    The TID limits the SPI clock speed to 300 kbps for EEPROM implementation without using DMA. I would recommend trying to stay within this speed if possible since this has been validated and tested:

    "Q3: Any prefenreces in SPI modes USCI_A vs USCI_B  ?"

    Either eUSCI module will work. Both modules support SPI with the same level of functionality. I would simply choose the module that makes the layout easier for the customer.

    Please let me know if you have any additional questions.

    Thanks!

    -Mitch

  • Hi DJ-NG,

    If higher SPI rates are required by the customer, here is an excellent post that goes into detail on how to calculate the maximum SPI frequency for an MSP430 device:

    https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/248576

    Thanks,

    Mitch

**Attention** This is a public forum