cancel
Showing results for 
Search instead for 
Did you mean: 

spi tser,tsize value ?

A.Caliskan
Associate II

hello ,I use stm32h750vbt6

I'm trying to send data with spi 16 bit data constantly, I checked the reference manually

But there were some parts that I didn't understand. To send 16-bit data at intervals of a certain time, tser,tsize and what should my FIFOThreshold value be.

3 REPLIES 3
TDK
Guru

> To send 16-bit data at intervals of a certain time, tser,tsize and what should my FIFOThreshold value be.

TSER = 0 (probably don't care)

TSIZE = 0

FTHLV = don't care

In this configuration, the SPI will send out data as you feed it. Write 16 bits at once to ensure it's sent out without a break in between bytes if using 8-bit word size.

If you feel a post has answered your question, please click "Accept as Solution".

i did what you said, I send 0xC130, I look pin 0x30C1, data is shift,how can i avoid data shift ?

Your code seems configured to send the LSB first, or the software/tool you're using to look at the data being sent is assuming the MSB is sent first.