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

Hi,

I am using an Atmega16 board http://roboshop.nextsapiens.com/index.php?route=product/product&product_id=55 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:
http://i.stack.imgur.com/dmnJo.png


The settings on terminal are:

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

Please help!!

Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
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: http://www.avrfreaks.net/
Logged

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

Australia
Offline Offline
God Member
*****
Karma: 11
Posts: 502
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.
Logged

Pages: [1]   Go Up
Jump to: