Article View: borland.public.cppbuilder.nativeapi
Article #6659Re: non-standard Baud rates
From: Ed Mulroy [TeamB]
Date: Fri, 22 Apr 2005 00:16
Date: Fri, 22 Apr 2005 00:16
23 lines
2129 bytes
2129 bytes
The UART chip or IC macro operates off of a fixed frequency. The baud rate is set by loading a divisor for that frequency. As the highest possible frequency is 115,200 the closest you can get to 50,000 is 57,600 baud. Given the vagarities of serial communications that has a good probability of working with 50,000 at the other end. Just pay close attention to whatever check characters, check sums or crc's the other end uses. If you do this with the Windows API, assigning the value CBR_57600 to the BaudRate DWORD member of the DCB structure is the setting of which I am speaking. . Ed > Ron Sawyer wrote in message > news:4267f055$1@newsgroups.borland.com... > > Will the API allow me to set non-standard baud rates? I have > to write a program to monitor a line set at baud 50000. My > third-party library won't allow 50000 and I'm starting to fear > that I will have to break down and do this via windows API. > Will the API allow this, or will I be spinning my wheels? > (Dunno why they used 50000 baud and I have not control over that)
Technical Details
Message-ID:
<4268426c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4267f055$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,23952f77ca7d3679 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ed Mulroy [TeamB]" <dont_email_me@invalid.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4267f055$1@newsgroups.borland.com> Subject: Re: non-standard Baud rates Date: Thu, 21 Apr 2005 20:16:41 -0400 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 12.161.27.70 Message-ID: <4268426c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114129004 12.161.27.70 (21 Apr 2005 17:16:44 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail