*sigh*
Copied straight from the 324P Datasheet
void USART_Init( unsigned int baud ) { /* Set baud rate */ UBRRHn = (unsigned char)(baud>>8); UBRRLn = (unsigned char)baud; /* Enable receiver and transmitter */ UCSRnB = (1<<RXENn)|(1<<TXENn); /* Set frame format: 8data, 2stop bit */ UCSRnC = (1<<USBSn)|(3<<UCSZn0); }
n refers to the Usart port.
The registers UBRRHn and UBRRLn do not exist, This is confirmed by looking at the register summary on page 413.
They are UBRRnH and UBRRnL.
Who do I take this up with?