Solved

Serial Communication at 10400 baud

Posted on 1997-04-09
4
1,349 Views
Last Modified: 2012-05-04
How do I communicate with an external hardware device, through the RS232 port, at 10473 baud?
I am using Windows 3.1 and Delphi 1.0.
If it is posible, the program should also run under 95 and NT 4.0.
0
Comment
Question by:boni
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
gysbert1 earned 100 total points
ID: 1335257
If you have a standard uart in your PC (16550), this is going to
  be a problem!

The 16550 uses a 1.8432MHz crystal. The uart is programmable
  using a baud rate divisor. The resulting baudrate is   Fosc/(16*Divisor). The fastest rate possible is thus 115200
  and any lower rate must be achievable using this equation.

Unfortunately 10400 is not achievable !!

Let me know if you need more info.

Have a look at "Mastering serial communications"
  ISBN 0-7821-1202-1 by Peter W. Gofton for everything from
  programming the uart directly to doing it in Windows using
  either C++ or Basic.
0
 

Author Comment

by:boni
ID: 1335258
Edited text of question
0
 
LVL 2

Expert Comment

by:gysbert1
ID: 1335259
Have a Look at http://sunsite.icm.edu.pl/delphi/ (The delphi super page). It contains a few components for serial comunications (with the baudrate selectable). If you want to use a non-standard baud rate as above, it gets trickier to set up in windows. I suggest you have a look at the previously mentioned book in that case. Windows only has options to set the baud to standard values (i.e. 9600, 14400 ,etc) using the provided structures (TCOMDCB, find it in the help !).

Thus it is possible to do and the book will explain how (I will need much more space than provided here in order to explain fully and still not do better than the book. At $26.99 it is a bargain !

0
 

Author Comment

by:boni
ID: 1335260
Thanks for the answer. I will have to try the webpage, before I
know how good it is. It will take to long to order the book
from the U.S. to Germany.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question