Hi all,
I want to setup a quick and dirty SPI "monitor" which will be connected like this:
ATMEL AVRISPMKII --[via spi]--> ARDUINO UNO --[via spi]--> MEGA2560 as SPI slave
The UNO will be written and/or programmed, the 2560 will be the "listener".
The idea is that I want to send commands to the UNO (such as "erase", "write bootloader", etc...) and capture the exact byte sequence to the ICSP and from the UNO.
I also (temporarily) intend to set the F_CPU of the UNO to 8 Mhz so that there is no possibility of overrunning the "listener".
My question is this: do I have to switch MOSI and MISO (like crossing TXD and RXD on serial), or does SPI "know what to do" depending on whether is's a master or slave?
Thanks!