Multiple SPI

aarg:
See reply #13. :slight_smile: You should be looking at the Mega2560 UMSELn1:0: USART Mode Select register. You should be able to set the mode for either port independently. I assume you have already consulted the data sheet... :slight_smile:

Copy that I see it now, too many unknown abbreviations in the code for me to follow it. :frowning:

UCSR0C = _BV (UMSEL00) | _BV (UMSEL01);  // Master SPI mode

Changed to:

UCSR0C = _BV (UMSEL01) | _BV (UMSEL01);  // Master SPI mode

That's it?