First off, I'm not sure about your configuration. When you say the transmitter is connected to the computer's serial port and the receiver is connected to the AVR, what kind of transmitter and receiver are you using? Do you mean RF transmitter and receiver? What frequency? Have you verified that they are working together? What kind of program are you using in the computer to generate the baud rate? Are the sending and receiving ends both set for the same baud rate/parity/stop bits? Zack On Mon, 12 Dec 2005, spotwl8 wrote: > hi! > > i'm new here. i need your help. i'm currently having a project on > avr. i would like to communicate data from pc to microcontroller. > the transmitter is connected to the pc through serial port. and the > receiver is connected to the microcontroller. I used atmega16. > > when i programmed the atmega16, I tested it. when i applied source > to it, after a while, the leds light up..it formed different > combination.so i assumed that the receiver receive data. however the > problem is there is no transmitter yet. here's the link for my code: > > http://h1.ripway.com/greenadik_101/uarttest16.c > > so i edited my program. i added an end character. here's the code: > > http://h1.ripway.com/greenadik_101/uart16.c > > after that, leds doesnt light up. so i send data from pc. the > problem is it doesn't work at all. > > is my program the problem? >
Message
Re: [AVR-Chat] testing uart using atmega16
2005-12-12 by Zack Widup
Attachments
- No local attachments were found for this message.