Solved

Serial Communication at 10400 baud

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month4 days, 21 hours left to enroll

636 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