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?
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
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.
Unfortunately, there isn't a 32-bit buffer, so SPI data width is 16-bit max.