xmega serial communication using MAX3232
For anyone who was wondering what the problem was, I was using the incorrect USART for PORT C

See, the pins are labelled as 'RXD0' and 'TXD0' in the datasheet, (unrelated to the USART number - I dont know what the D0/DO refer to in this instance), however for port C pin2&amp;3, the correct USART is USARTC0.

Changing every instance of USARTD0 to USARTC0 in the above code will make this operational.

Anyone wishing to use rs232 to communicate to an atxmegaA1 may use the above setup.