SPI interface with other board_AVR_ESK1100 or among Arduino itself

Instead of sending SPDR = 0x01 or, data I was trying to send SPDR = dat[0]; but that also dint work.