Send 32-bit SPI

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Send 32-bit SPI

3,334件の閲覧回数
CHAOWeiXu
Contributor II

hi,

I use the MPC5744P SPI module.It uses 16 bit SPI to send, but I want it to send 32 bits.I try to manually control the CS to send 32 bits.But the SCK signal will be delayed when it is sent. I want to send two 16 bits in a row.

Thanks

0 件の賞賛
返信
4 返答(返信)

3,285件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

what code do you use for this? Some delay can be caused by SW delay, also by HW (see CTAR setting).
Manual control of CS is not needed, module is able to do that, if need CS low between words use continuous selection format, check chapter 49.4.4.5 Continuous Selection Format of the RM.

BR, Petr 

0 件の賞賛
返信

3,270件の閲覧回数
CHAOWeiXu
Contributor II

hi,Mr,Petr 

 I use Simulink to build the model. Its name is NXP_ MBDToolbox_ MPC57xx.

I want the master to send 32-bit data to the slave, but it only supports sending 16-bit data.

When I adjust the transfer size to 32, the oscilloscope displays abnormal.When I adjust the transfer size to 16, if I send 16 bits twice in a row, there will be a delay between SCKs.In the attachment are my model and the oscilloscope image when it is sent twice in a row.

Thanks,

タグ(1)
0 件の賞賛
返信

3,253件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if using MATLAB/Simulink with toolbox please ask question directly on its Community space;
https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/bd-p/mbdt

BR, Petr

0 件の賞賛
返信

3,250件の閲覧回数
CHAOWeiXu
Contributor II

Thank you for your help.

0 件の賞賛
返信