In SPI, SS pin is used as latch, which means that it must be set as OUTPUT.
The matter is that on arduino micro a LED is attached to the SS pin (aka PB0), so I cannot use it for the latch in SPI.
But it is required to be set as OUTPUT anyway, otherwise SPI will work in slave mode. Does this mean that the latch is handled automatically by the AVR when data is transmitted by writing to
Otherwise I see no reason that this one specific pin is demanded to be always set to OUTPUT mode for SPI master.
In other words: if I use the latch on SS pin, will writing to
SPDR register do everything automatically, or I have to handle SS pin manually anyway? And if the latter is true, why require it to be set to OUTPUT?