Use SPI Register Write in Simulink with STM32

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.

 Akzeptierte Antwort

Adit Kirtani
Adit Kirtani am 17 Apr. 2023

0 Stimmen

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.

Weitere Antworten (0)

Produkte

Version

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by