cancel
Showing results for 
Search instead for 
Did you mean: 

SPI transactions of greater than 16 bits

gavin2
Associate II
Posted on August 16, 2012 at 16:27

Hi,

I am looking for recommendations as to how best to deal with SPI transactions where the SPI word length is greater than 16 bits.

I intend to use 64 bit transactions from the host PC to my stm32 board. Therefore, I expect the SPI will interrupt 4 times (if the SPI data size is set to 16). Could I create a counter incremented by the interrupt, wait until the count = 4, then process the 64 bits together? This seems to make sense to me but I guess there would be a problem if the counter was to get out of sync with the transactions from the host.

Are there any suggested or more neater methods of dealing with SPI transactions of greater than 16 bits?

Thanks in advance

10 REPLIES 10
emalund
Associate III
Posted on August 17, 2012 at 17:51

not really, that will be your choice to make, I would not for 4 word records.

Erik