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?

905件の閲覧回数
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 返信

774件の閲覧回数
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.