- Sat Oct 25, 2008 5:10 pm
#57764
Hi there,
What is wrong with the following code. I wanted to see the output on my PC with Bray++ but it is not working. What could be wrong?
#include <avr/io.h>
void main(void)
{
// USART initialization
// Communication Parameters: 8 Data, 1 Stop, No Parity
// USART Receiver: Off
// USART Transmitter: On
// USART Mode: Asynchronous
// USART Baud rate: 9600
UCSRA=0x00;
UCSRB=0x08;
UCSRC=0x86;
UBRRH=0x00;
UBRRL=0x17;
printf("Hello World!\r");
}
What is wrong with the following code. I wanted to see the output on my PC with Bray++ but it is not working. What could be wrong?
#include <avr/io.h>
void main(void)
{
// USART initialization
// Communication Parameters: 8 Data, 1 Stop, No Parity
// USART Receiver: Off
// USART Transmitter: On
// USART Mode: Asynchronous
// USART Baud rate: 9600
UCSRA=0x00;
UCSRB=0x08;
UCSRC=0x86;
UBRRH=0x00;
UBRRL=0x17;
printf("Hello World!\r");
}