Simulink SPI STM32
4 次查看(过去 30 天)
显示 更早的评论
2 STM32 μc (NucleoF767ZI and Nucleo F446RE) should communicate via SPI. The first µc is programmed with Simulink using the Nucleo Support Package. As it stands, the μc with the Support Package can only work as a master. Now I just want to send a number from 0-255 to the slave μc for testing. And see the message with debugging mode. According to the Simulink block parameter, the Slave address register must be entered.
Then i am going to measure the the Duty Cycle of a PWM signal and send to via spi to the Master µc in Simulink, so the µc will function as a Sensor.
So my question, is it possible that my SPI of the slave µc (e.g., SPI2) has a slave register address?
![reg.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/212227/reg.png)
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!