Send 32-bit SPI

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

Send 32-bit SPI

3,223 次查看
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,174 次查看
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,159 次查看
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,142 次查看
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,139 次查看
CHAOWeiXu
Contributor II

Thank you for your help.

0 项奖励
回复