Hi Dears
I need help and information build program to use serial synchronous in atmega 2560. I write code on serial2 but in xck2 pin I not see clock.
baud = 51; // for example
UBBR2H = (baud >> 8);
UBBR2L = baud;
UCSR2A = 0;
UCSR2C = 0x46;
PinMode(14 , OUTPUT); // 14 pin number xck2
sbi(UCSR2B,RXEN2);
sbi(UCSR2B,TXEN2);
clock is not on xck2. what is my wrong?