Skip to main content
HForr.1
Associate III
August 23, 2022
Question

Can STM32F105 do 13-bit SPI with 13 clocks?

  • August 23, 2022
  • 2 replies
  • 1188 views

I need to interface with a Viniculum II from FTDI. It requires 13 bits over exactly 13 clocks, per this app note. We're using the STM32F105 with HAL libraries from STM32CubeMX. I don't see the cube able to configure to 13 clocks. Will the STM32F105 hardware be able to do only 13 clocks, if I hack the HAL library or write my own? Or is the hardware not able to do 13 clocks?

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
August 23, 2022

>>Will the STM32F105 hardware be able to do only 13 clocks, 

No

Perhaps in a group, say 13 x8, ie 13 8-bit bytes or 8 13-bit words

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
HForr.1
HForr.1Author
Associate III
August 23, 2022

Thanks. Now I'll look into the Viniculum II. It might be d*mb sh*t firmware programming at 13 bits, because the hardware itself seems to handle 8-bit words. It does add some status info and I'll have to check, but it's 12, not 13. Finally, the VNC2 timing diagrams include MISO and MOSI and #CS, but not CLK. Who's idea was that? FTDI reputation was the top 20-30 years ago. Today? I'm wondering...

Tesla DeLorean
Guru
August 23, 2022

You can always bit-bang it.

ST's designs for SPI have always been a bit simplistic and limited, other platforms have width setting span useful ranges like 5 to 32, and byte counts for CS pins..

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..