nikfo wrote:
BUT I rather not use a GPIO for strobing the registers. I would like to use the "built-in" /SS function for this. Is it possible?
Regards,
Mac
Hello Niklas,
I presume you would be using parallel output shift registers such as 74HC595. So MOSI would connect to pin 14 of the first device, and pin 9 would connect to pin 14 of the next device, etc. The SPI clock signal would connect to pin 11 of all three devices. You would then choose a GPIO output to strobe pin 12 of all three devices. MISO would not be used unless parallel input shift registers were also present.
In operation, you would simply send three bytes in succession, and then pulse the strobe signal to update the outputs. For compatibility with these shift registers, the SPI master should be configured for either of the two following combinations:
1. CPHA=0 and CPOL=0, or
2. CPHA=1 and CPOL=1
Regards,
Mac