Noise or random characters displayed while using UART in Atmega 16

Status
Not open for further replies.

Adithya N

Newbie level 2
Joined
Jul 12, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
17
I have interfaced max232 with a atmega 16 microcontroller.I am using usb to serial adapter and have connected pins 2,3 and 5 of the serial adapter to max232 using jumper wires and connecting wires in a breadboard.I am using hyperterminal.When pins 2 and 3 are shorted the characters are displayed on the screen,meaning that the max232 circuit is working.But when i interface it with atmega 16 no characters are displayed on my hyperterminal.My program should return the character with a '()' symbol.But when i disturb the RX,TX or ground wires i see some random characters on the screen.What could be the problem?


Thank you
 

Are you absolutely sure you configured the ATMega correctly? In most cases you need to change the appropriate DDR register to set the serial TX pin as an output.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…