SPI with non standard clk cycles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-29 8: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?
- Labels:
-
SPI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-29 8:59 AM
Some newer STM32 allow anyting between 4 and 16 bits.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-29 9: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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-01 6: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-01 7:12 AM
