EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Serial Communication with Atmega 8535

Started by alex_seif0024 June 11, 2005
I'm on a school project and the aim is to aquire data,
so i'm supose to connect a MCU to the CPU so i'm using a RS232, MAX
232 and a cport lib i found however no matter how simple the code is
on the Atmega8535 the computer will not recieve and i dont no why, i
even used a serial loop back test on the computer and it worked and
all mu atmel is doing is "UDR = data"
Plz Help Me


Alex,

Make sure that the baud rates, # of bits and stop bits
are set the same on both devices (PC and 8535).

I also found I had to jumper CTS to RTS on the AVR end
before the PC would talk to it.

Last but not least, make sure the AVR's fuses are set
correctly (I had all mine inverted - DOH!).

HTH,

Jeff Engel
Arlington, TX
--- alex_seif0024 <alex_seif0024@alex...> wrote:

> I'm on a school project and the aim is to aquire
> data,
> so i'm supose to connect a MCU to the CPU so i'm
> using a RS232, MAX
> 232 and a cport lib i found however no matter how
> simple the code is
> on the Atmega8535 the computer will not recieve and
> i dont no why, i
> even used a serial loop back test on the computer
> and it worked and
> all mu atmel is doing is "UDR = data"
> Plz Help Me


Happiness is - positive intake manifold pressure.
__________________________________
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html



Memfault Beyond the Launch