how to send 32 bit data with S12 SPI

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

how to send 32 bit data with S12 SPI

874 次查看
keli
Contributor I

Hi, there,

 

I need to send 32 bit data through SPI. I am using s12P. The datasheet says 8 or 16 bit transfer width. any thought?

标签 (1)
0 项奖励
3 回复数

557 次查看
iggi
NXP Employee
NXP Employee

Hello,

you should use GPIO pin on the Master to toggle SS line (Slave Slelect, Chip Select) of the Slave and send two packets of 16-bit data or 4 packets of 8-bit.

Note that SS line on Slave is active low. When the transfer finishes, toggle it high.

Hope it make sense.

Regards,
Ivan

557 次查看
keli
Contributor I

Ivan,

Thanks for your response. That was the first thing pop up in my head. I am thinking of timing and reduce the overhead of CPU. Lock the interrupt may hurt other tasks. Driven by interrupt may introduce unexpected timing jitter. If the module could do the job, that would be wonderful.

0 项奖励

557 次查看
iggi
NXP Employee
NXP Employee

Unfortunately, there isn't a 32-bit buffer, so SPI data width is 16-bit max.

0 项奖励