Part Number: MSP430F5529
I am trying to implement SPI for block transfer using MSP430F5529 as Master and TM4C1924NCPDT as slave.
What are the factors I need to consider for this. I am not able to receive data from slave.
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.
Part Number: MSP430F5529
I am trying to implement SPI for block transfer using MSP430F5529 as Master and TM4C1924NCPDT as slave.
What are the factors I need to consider for this. I am not able to receive data from slave.
Hi Snehal,
You need to notice that SPI slave can't send data actively -- master device initiates a communication and slave sends data at the same time. So you need to make sure every communication is started by master device.
You may refer to some devices (such as standalone ADC/sensor/etc.) which have an SPI interface for configuration.
Hi Snehal,
Since I'm not familiar with TM4C devices, I can't give much suggestion on that side with micro DMA. But for MSP430F5529, I suggest you to use "single transfer" mode in the DMA, and use UCA/UCBxTXIFG/RXIFG as the trigger source, as there isn't any buffer in the SPI and you need to send/read out the data before next arriving.
For the "single transfer" mode, you may refer to chapter 11.2.2.1 in the F5529's User's Guide. And also see below table captured from the datasheet for the trigger source.
Moreover, though the DMA mode is "single transfer", it still transfers a "block" of data in the SPI communication unless something interrupts it (such as other interrupt, CPU acitivities).
Regards,
Harry
Hi Snehal,
Since I'm not familiar with TM4C devices, I can't give much suggestion on that side with micro DMA. But for MSP430F5529, I suggest you to use "single transfer" mode in the DMA, and use UCA/UCBxTXIFG/RXIFG as the trigger source, as there isn't any buffer in the SPI and you need to send/read out the data before next arriving.
For the "single transfer" mode, you may refer to chapter 11.2.2.1 in the F5529's User's Guide. And also see below table captured from the datasheet for the trigger source.
Moreover, though the DMA mode is "single transfer", it still transfers a "block" of data in the SPI communication unless something interrupts it (such as other interrupt, CPU acitivities).
Regards,
Harry
**Attention** This is a public forum