hi,
i want to make two atmega8 communicate by SPI, and one is master. i'll send four bytes in main(), and receive four bytes in the interrupt, is that ok?
thank you, Pike!
you mean i could define a variable to count the bytes, but transmit one byte at a time,of course i should divide the byte into 8 bits,right?
Yes, you have to break the byte up into 'bits'. But your initial proposal was to break the file up into 2 smaller chunks (of 4 bits) and send and send each chunk one at a time.
You could just break it up into 8 smaller bits and send it. It's just slower but requires less output pins.