free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes :: Forums :: Discuss and Learn :: AVR Discussion Forum
 
<< Previous thread | Next thread >>
serial communication for AVR microcontroller
Go to page  1 2 [3]
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
MATHIVANAN
Mon Jul 07 2008, 05:12AM
 User Offline
Registered Member #2569
Joined: Wed Jul 25 2007, 05:21AM

Posts: 57
Thanked 4 times in 4 posts
i am also having same problem in AVR -ATMEGA32Lworking at 8Mhz(baud reate=0x33). i am using MAX232CPE chip for RS232 to TTL converter. i am having USB to Serial converter for USb to RS232 Interface. When i am loop back the TTL output of the MAX232CPE, the data i am sending and getting on my PC is Correct, but when i receive on my ATMEGA32L is not correct,for that i am using LED indication, when i am getting correct byte the LED should goes to glow, is anything wrong or required on TTL side,i.e PULL UP resistor or something else.



I respect others the same way i expect from others.
Back to top


Ajay
Mon Jul 07 2008, 08:12AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4035
Thanked 751 times in 710 posts
why are you looping? you can send and receive from PC to test the 2-way communication. may i know the purpose of your test project.

Please do post the code to see the problem properly.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
sashijoseph
Mon Jul 07 2008, 08:04PM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 647
Thanked 137 times in 130 posts
@MATHIVANAN
Are the baud rates set up correctly on both sides.
Try once with a true serial port on the pc instead of the usb-rs converter.

Let there be music........
Back to top



This post has been thanked 2 times
 MR , MATHIVANAN 
MATHIVANAN
Tue Jul 15 2008, 09:07PM
 User Offline
Registered Member #2569
Joined: Wed Jul 25 2007, 05:21AM

Posts: 57
Thanked 4 times in 4 posts
I tried on True Serial port and Baud rates are correct

I respect others the same way i expect from others.
Back to top


Ajay
Wed Jul 16 2008, 08:38AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4035
Thanked 751 times in 710 posts
hi mathivanan, i guess you replied almost after 1 week i am really out of mind what was the exact point of discussion and what was the real problem. So if you dont mind..

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


MATHIVANAN
Thu Jul 17 2008, 05:24AM
 User Offline
Registered Member #2569
Joined: Wed Jul 25 2007, 05:21AM

Posts: 57
Thanked 4 times in 4 posts
I want to know is there any special fuse settings is available for TXN RXN .

I respect others the same way i expect from others.
Back to top


Ajay
Thu Jul 17 2008, 08:13AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4035
Thanked 751 times in 710 posts
in the cable? no for sure..

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


pdi33
Thu Jul 17 2008, 08:53PM

 User Offline
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 770
Thanked 185 times in 180 posts
hi Mathi,
check if ur control registers are correctly initialised.
if ur using the RX complete interrupt, then the RXCIE bit of the UCSRB register should be set along with the RXEN bit.
and no, there are no fuse bits related to transmission/reception in the atmega 16/32. I have checked both transmission/reception@ 8mhz internal oscillator and they work just as fine without programming any additional fuse bits. .

* inspired to develop,developing to inspire *
Back to top



This post has been thanked 1 time
MATHIVANAN
Thu Jul 17 2008, 11:34PM
 User Offline
Registered Member #2569
Joined: Wed Jul 25 2007, 05:21AM

Posts: 57
Thanked 4 times in 4 posts
Thank you very much experts i am going to try.......more

I respect others the same way i expect from others.
Back to top


Go to page  1 2 [3]  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems