2025-01-16 01:41 PM
2025-01-16 02:07 PM
H7 series, like H743, has SPI with data size 4....32 bit frame.
2025-01-16 02:31 PM
This says 4-16 bit frames. Are bigger frames available in software?
2025-01-16 07:58 PM
Separate between "word size" and "frame size".
SPI can support "word size" as 4, 8, ... bits per word (up to 32bit).
So, 20bit as "word size" should be possible. If not directly, consider it as sending a 16bit word plus a 4bit word.
"Frame Size" is independent of it: if you can send any "word" (as 20bit) - any number of words can be transmitted (limitation is potentially on a 64K word size boundary, e.g. due to DMA addresses).
Any "frame size" is possible in SW.
2025-01-16 08:02 PM
Thanks! My challenge is that I'm slave and don't control the clock. I should have made that clear. I'm listening to 20 consecutive clocks.
2025-01-16 08:23 PM
Sure,
but still options to prepare and test:
Check if your Slave device is enabled, has the right internal clock configuration for the Slave...
(I think, you have another thread open related to this topic - see also there)
To be honest: "what is your issue?" (how to receive 20bit words? ... generate 20bit words and try to receive it...)
If you create a "test master" able to send 20bit words - than a SPI Slave should be possible also for receiving 20bit words. And you can test your Slave with your "test master".
Have you digest the datasheet for the question "why a 20bit SPI word size" should not be possible?"