I'm having problems getting the USART to work on an ATMEGA88. I've got a project working on at ATMEGA16, but I want to change architecture.
Here's a compare of the USART setup in the two cases (master branch on the right is atmega16):
https://github.com/joakimgk/trafikklys/compare/atmega88..master?diff=split
I've looked through the datasheet, and also compared my code (on the left side of the diff) to various forum posts, but all I get is unprintable bytes in my terminal program.
The communications I'm expecting (and have configured the terminal software for) is:
Baud: 115200
Parity: None
Data bits: 8
Stop bits: 1
The line of code where I attempt a transmission over serial, is: https://github.com/joakimgk/trafikklys/compare/atmega88..master?diff=split#diff-6d620a7d0a627b58cee5e409284a2ed8L441
I assume I've got some registers messed up in the USART_Init function?
Joakim