Go Down

Topic: Getting weird characters on hyper-terminal with serial communication (Read 1 time) previous topic - next topic



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:

The settings on terminal are:

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

Please help!!


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/
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e


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.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131