aarg:
See reply #13.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...
Copy that I see it now, too many unknown abbreviations in the code for me to follow it. ![]()
UCSR0C = _BV (UMSEL00) | _BV (UMSEL01); // Master SPI mode
Changed to:
UCSR0C = _BV (UMSEL01) | _BV (UMSEL01); // Master SPI mode
That's it?