Solved

Serial Communication at 10400 baud

Posted on 1997-04-09
4
1,282 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

948 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now