Skip to main content
MGian.1
Associate
May 28, 2020 12:08 PM UTC
Question

I am using MAT/TARGET I would like to know how use the SPI block thought simulink

I already used MAT/TARGET and it works pretty good. Now I have a problem with SPI I can't find enough information to build my block diagram correctly with SPI. In particular I don't understand which type of data require in Input and how can I use simulink to generate a data store that I can use to send data trough SPI.

Can anyone help me? may be with some example thanks

This topic has been closed for replies.

1 reply

hendrikk
Associate
Sep 29, 2020 8:02 PM UTC

Use the byte pack block (embedded coder) or use matlab function block (Simulink / User-Defined Functions) like in the SPI example of the STM32Mat folder.