Sending 100 bytes via spi

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi,

How can I send a burst of lets say 99 bytes via spi before the chipselect goes high again? I am using XMC1200 and SPI001 App

Cheers
0 Likes
1 Reply
Juergen
Employee
Employee
Hi,

In SPI001 there is an option to set the word length to max 16 bits and the frame length to max 64. Set the world length to max and frame length to max,
Set TCSR.WLEMD, then keep writing to TBUF[15] until only one word is left to be sent. Then set TCSR.EOF and write the last word to TBUF[15] or if the last word is only a byte, then write to TBUF[7].

Best Regards
Jurgen
0 Likes