Solved

Serial Communication at 10400 baud

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Delphi XE10, MySQL Query 4 109
code issue 8 85
Downloading email attachments 2 55
Controlled Assessment GCSE - desperate help needed 4 53
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…
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…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now