How to send SPI message 24 bits frame using the MBD Toolbox in Simulink?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to send SPI message 24 bits frame using the MBD Toolbox in Simulink?

762 Views
ext-rafael_barb
Contributor III

Hello, 

I need to send the SPI message as described below:

pastedImage_1.png

I already set up the SPI config block as below:

pastedImage_2.png

However the SPI Master Transfer block is frozen for 8 bit data as can be viewed:

pastedImage_3.png

How can I do to transfer this SPI message with 24 bits frame?

Kind Regards, Rafael Barbosa

1 Reply

631 Views
constantinrazva
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

You should use an uint8_t array - e.g.: DataStoreMemory block, uint8 type with value [1,2,3] for example - 3 x 8bits or a Constant block (the same, value [1,2,3] and type uint8).

Please let me know if you are having other issues with it.

Kind regards,

Razvan.