can any one please give a full description if how this line works:
while ((SPSR & (1<<SPIF))==0);
does it shift the number "00000001" with respect of the amount of SPIF bit?
how it ANDs SPSR (8 bits while only 3 are used) with the rest of argumant? and how it generates only one bit as out put??
this whole matter really confuses me up :(