Pages: [1]   Go Down
Author Topic: Getting weird characters on hyper-terminal with serial communication  (Read 1158 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I am using an Atmega16 board for serial communication.
The board has Max232 for voltage level correction. I have correctly connected the Rx and Tx ports of the DB-9 connector with those of Max232. The baud rate settings on both the micro controller and terminal is 9600 operating at 2 Mhz.
I am getting the following erroneous situation as depicted in the following image:

The settings on terminal are:

Data bits: 8
Stop bits: 1
Parity: none
Baud rate: 9600

Please help!!


Massachusetts, USA
Offline Offline
Tesla Member
Karma: 212
Posts: 8949
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It looks like your processor board is not an Arduino and you aren't using the Arduino development environment.  Perhaps you would have better luck with the AVR Freaks forums:

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
God Member
Karma: 11
Posts: 511
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It appears that you are using some variant of Basic to send chars to the serial port.
Your program has no flow control of any kind, so you will be overrunning the chips usart send buffer
which will produce the garbage results.
You need to test the usart before sending a char to make sure that its send buffer is empty.
Read the chips spec sheet to learn how to do this.

Pages: [1]   Go Up
Jump to: