3.2 Slave Side

To configure the AVR to run in slave mode, there is no order in which the registers must be initialized. The MISO pin has to be defined as an output pin, while all other pins are configured automatically as input pins if the SPI is enabled. To configure the AVR to run in slave mode the MSTR bit has to be set to zero. In this case, the Clock Rate Select bits SPR0 and SPR1 do not care because of the synchronous transmission.

All other settings of the SPI configuration register (SPCR) have to be the same as in master mode. This is essential for a successful communication between the two devices.
Figure 3-2. Polled Slave - Initialization and Reception