Effacer les filtres
Effacer les filtres

Simulink SPI STM32

5 vues (au cours des 30 derniers jours)
Ahmef Alhajsalem
Ahmef Alhajsalem le 5 Avr 2019
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

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by