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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,089 次查看
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 回复

958 次查看
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.