I have a Atmega-16 based board, connected via Max232 to pins 2,3,5 of a db-9 connector. The connector connects to a PC. I am getting weird characters on hyper-terminal instead of normal "Hello World" for the serial test program. I have set both baud rate in Atmega-16 as well as hyper terminal to be 4800. I am not getting any faults. Please help. Thank you!
Edit: I am using this kit : http://roboshop.nextsapiens.com/index.php?route=product/product&product_id=55 The Serial pins of the Atmega16 are routed through a max232 to db-9, the circuit is same as this one:
The settings on terminal are:
Data bits: 8
Stop bits: 1
Parity: none
Baud rate: 4800
The bascom code is:
$regfile = "m16def.dat"
$crystal = 2000000
$baud = 9600
Config Lcd = 16 * 2
Config Lcdpin = Pin
Cls
Cursor Off
Dim A As String * 1
Do
A = Waitkey()
Print A
Cls
Lcd A
Loop
End
The problem can further be viewed as: https://i.stack.imgur.com/dmnJo.png
The images showing the characters(10) i am receiving are:
and the corresponding hex code that i am reciving is: