2019-03-29 08:47 AM
Is there a way to have spi just send an abnormal number of clock cycles as opposed to just 8 cycles at a time? Is bit banging the only way? Can the LL library be configured or coded to do such a thing?
2019-03-29 08:59 AM
Some newer STM32 allow anyting between 4 and 16 bits.
JW
2019-03-29 09:10 AM
Yep, actually played with it for fun to try to generate SWD type bitstreams joggling with 8, 6 and 9 bits.
You can choose chunks of 4 to 16 bit. As long as the chunk size is the same, you can poll the FIFO TX level to preload next chunk without delays in transmission which will be only needed when you change gears (bit size)
2019-04-01 06:34 AM
Hi,
I am using HAL Library. I need to send 9 bits using SPI. I have configure the SPI with 9 bit data length. While sending the 9 bit data were clocked out for the first time alone, if i transfer second time it had clock out 8 bits only. Give me a suggestion to solve this issue.
Thanks
2019-04-01 07:12 AM