<DIV>Hi Jörg,</DIV>
<DIV> </DIV>
<DIV> I'm trying to program USART of Atmega 128L using STK 501 . I'm using JTAG ICE MKII for programming Atmega128L. I connected Serial Cable between Rs232 Port of Stk501 and my PC and than Run Step by step the below program. ideally it should print character 'R' on hyperterminal . But till now I have got any success. I configured AVR Studio to calibrate Oscillator for 8MHz and Fuse setting is for Int RC Osc 8Mhz startup time 6CK + 0Ms</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> // Set baud rate for 9600<BR> UBRR0H=0x00;<BR> UBRR0L=0x33;</DIV>
<DIV> // Enable receiver and transmitter<BR> UCSR0B = (1<<RXEN0)|(1<<TXEN0)|(0<<RXCIE0)|(0<<UDRIE0);</DIV>
<DIV> // Async. mode, 8N1<BR> UCSR0C = (0<<UMSEL0)|(0<<UPM00)|(0<<USBS0)|(3<<UCSZ00)|(0<<UCPOL0);</DIV>
<DIV><BR> while (!(UCSR0A & (1<<UDRE0))); <BR> UDR0 = 'R';</DIV>
<DIV> </DIV>
<DIV> Can you please help me. I will really appreciate if you can point me where am I going wrong or tell me settings to make USART of STK501 with Atmega128L work</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>-Rajan</DIV><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com