AnsweredAssumed Answered

How to transmit data using SPI in simulink?  (S32K148EVB)

Question asked by Soheil Fard on Nov 19, 2019
Latest reply on Nov 19, 2019 by Constantin Razvan Chivu



I am very new to NXP model-based design toolbox. I am trying to communicate with an accelerometer which has an SPI interface; however I have a hard time to send a signal to the slave. I created the attached model, but when I checked the MOSI signal on a Logic Analyzer, the signal is not what I am trying to send.

My other question is about the step size of the model. If I want to send the signal at 1MHZ to the salve, does it mean that I should reduce the step size of the Simulink model to 1e-6?