how to send 32 bit data with S12 SPI

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

how to send 32 bit data with S12 SPI

2,200件の閲覧回数
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 返答(返信)

1,883件の閲覧回数
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

1,883件の閲覧回数
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 件の賞賛
返信

1,883件の閲覧回数
iggi
NXP Employee
NXP Employee

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

0 件の賞賛
返信