Hi All,
I'm new to the ATmega8 and I'm trying to do some serial communication, but all I get out is garbage!? (look bottom).
I use STK500 and CodevisionAVR. Using code wisard generates this.
// USART initialization // Communication Parameters: 8 Data, 1 Stop, No Parity // USART Receiver: On // USART Transmitter: On // USART Mode: Asynchronous // USART Baud rate: 19200 UCSRA=0x00; UCSRB=0xD8; UCSRC=0x86; UBRRH=0x00; UBRRL=0x19;
And acording to the datasheet, that looks correct. But as you can see below, what I get back I can't decode?!? There are to many data and many are equal? I just do not get it.! What have I forgotten, what is it I have missed?
Hope some one can help me with this problem..!
Henning
Program cut:
for(g=0;g