Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Off-topic

???
03/09/09 22:00
Read: times


 
Msg Score: -1
 -1 Off-Topic
#163287 - Serial communication USART
Hello
I try to use ATMEGA8 to vwrtite char to RS232 (using hyper terminal)
a very simple code can not write any thing.
I use CodeVisionAVR
// USART initialization
// Communication Parameters: 8 Data, 1 Stop, No Parity
// USART Receiver: On
// USART Transmitter: On
// USART Mode: Asynchronous
// USART Baud rate: 1200
UCSRA=0x00;
UCSRB=0x18;
UCSRC=0x86;
UBRRH=0x00;
UBRRL=0xB9;
printf("This is a test of USART.r");

I prefer use internal clock(no crystal)
I program with this command
avrdude -p atmega8 -P usb -c usbasp -U flash:w:tst.hex
shuld I use fuse?
or there other problam?

List of 2 messages in thread
TopicAuthorDate
Serial communication USART            01/01/70 00:00      
   Your main problem is...            01/01/70 00:00      

Back to Subject List