Jishnu 160 Posting Pro

Hi,

I'm trying to build UART communication channel between ATmega16 microcontroller and hyperterminal. I'm using MAX232 as a level convertor between the two. See the attachment for the connection diagram. I'm using Bascom-AVR for programming ATmega16. Here's my test code, which I've copied from its help section:

$regfile = "m16def.dat"
$crystal = 8000000
$baud = 9600
Do
  Print "Hello World"
  Waitms 25
Loop
End

When I run the project, I'm not able to see anything in Hyperterminal. But, when I open Bascom's Terminal Emulator, I can see some wild characters. Please tell me the possible reasons for this problem.

Jishnu.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.