Article View: borland.public.cppbuilder.nativeapi
Article #4573Re: Very Slow communication Init on Windows-98, why?
From: Stefan Kvist
Date: Wed, 11 Jan 2006 22:01
Date: Wed, 11 Jan 2006 22:01
18 lines
1659 bytes
1659 bytes
"Ram" <Ram@NoSpam.com> skrev i meddelandet news:43c24b5a$1@newsgroups.borland.com... > > It's important becouse in the > communication protocol that i'm using i should init the com for > each message (i send some bytes with parity and the rest of the > message without parity, so for each message i have to call the > init function 2 times) and it's takes lot of time in the Win-98 > computer. A different way to solve the problem is to only initialize the port once with parity set to 'none'. Then add the parity bit to those bytes that require it in the software. If you use a lookup table for the parity it will only cost you a few clock cycles. Stefan Kvist
Technical Details
Message-ID:
<43c57fb1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43c24b5a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,35fcdf173fbb2ee3 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Stefan Kvist" <stefan(dot)kvist(at)linkoping(dot)mail(dot)postnet(dot)se> Newsgroups: borland.public.cppbuilder.nativeapi References: <43c24b5a$1@newsgroups.borland.com> Subject: Re: Very Slow communication Init on Windows-98, why? Date: Wed, 11 Jan 2006 23:01:32 +0100 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 213.114.29.116 Message-ID: <43c57fb1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1137016753 213.114.29.116 (11 Jan 2006 13:59:13 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail