Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Serial Communication at 10400 baud

Posted on 1997-04-09
4
Medium Priority
?
1,438 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 200 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

705 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