Цитата(alux @ Feb 24 2010, 12:28)

И где я не прав?
Да не красиво как-то
--
Цитата(alux @ Feb 25 2010, 16:53)

Код
// clear status
SPSR = SPSR;
Так SPIF не сбросится, он read only.
Сброс:
Цитата
SPIF is cleared by hardware when executing the corresponding interrupt handling vector. Alternatively, the SPIF bit is cleared by first reading the SPI Status Register with SPIF set, then accessing the SPI Data Register (SPDR).