Use SPI Register Write in Simulink with STM32
13 views (last 30 days)
Show older comments
Sabrina Werner
on 24 Feb 2023
Answered: Adit Kirtani
on 17 Apr 2023
How to use the SPI Register Write Block?
I like to control a Step motor in Simulink, where i have to configure the spi registers. For me it isn't visible how the Block parameters are set. I have already read the description of the Block "SPI Register Wrtie" from Matlab, but it didn't help at all.
I use STM32F401RE and the X-Nucleo-Board with the L6474 controller on top.
0 Comments
Accepted Answer
Adit Kirtani
on 17 Apr 2023
Hi Sabrina,
To access the parameters to control the SPI Register Write block, be sure to double click on the block after adding it to your model. During run-time, these parameters will be used to control where the data goes and in what sequence. Here’s a link to the documentation page for the SPI Register Write Block:
I hope this has answered your question.
Thank you,
Adit Kirtani.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!