Society of Robots - Robot Forum

Software => Software => Topic started by: rox2007 on April 19, 2008, 01:47:55 PM

Title: Does anyone know how to do UART for Atmega32 with Avrlib
Post by: rox2007 on April 19, 2008, 01:47:55 PM
I just changed my chip from atmega168 to Atmega32, but when i try to read info in hyperterminal all i get is gibberish. I have tried everything i know.
Thank you
Title: Re: Does anyone know how to do UART for Atmega32 with Avrlib
Post by: benji on April 19, 2008, 03:23:16 PM
Quote
http://www.societyofrobots.com/robotforum/index.php?topic=3889.0
Title: Re: Does anyone know how to do UART for Atmega32 with Avrlib
Post by: rox2007 on April 20, 2008, 05:04:34 PM
i can communicate with the PC, but i get random characters. what should i do?
Title: Re: Does anyone know how to do UART for Atmega32 with Avrlib
Post by: Darkbluestar on April 20, 2008, 10:45:19 PM
you probably have the wrong baud speed.
Title: Re: Does anyone know how to do UART for Atmega32 with Avrlib
Post by: superchiku on April 21, 2008, 11:44:42 AM
wrong baud speed or your capacitors in your max232 are not well connected
Title: Re: Does anyone know how to do UART for Atmega32 with Avrlib
Post by: Admin on April 25, 2008, 07:21:34 AM
Just follow these instructions on how to use AVRlib for uart:
http://www.societyofrobots.com/microcontroller_uart_50_robot.shtml

(and yea, the gibberish means your baud rates are mis-matched)