From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: read a character string from a serial port ...... Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <2ralpso9m947iusuolq5a6k4kthf0dq5u9@4ax.com> References: <8ncd7g$18p$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 27 X-Trace: /K49oBbDSMxYxBUG7o5kNdH9pxuQlxOg/zVfrUKqMKG0Nhew94asuTg5d8jIuqFEUO4mIOyWl1AO!FxZ0zn9y01nYeV870ISmtGtXCDNVu8/3/Z1G6iu0v3MCufa0Vq5MXpGbi288iFtSS5d56Zt2o0vZ!4s0= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 16 Aug 2000 14:55:45 GMT Distribution: world Date: Wed, 16 Aug 2000 14:55:45 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 16 Aug 2000 10:50:04 +0300 (IDT), Eli Zaretskii wrote: > >On Tue, 15 Aug 2000, Florent wrote: > >> while (inportb(b+STATUS) & 1) { >> inportb(b+STATUS); >> string[i] = inportb (b); >> i++; >> string[i]=NULL; >> delay(1); >> }; > >Why are you delaying the execution for 55 milliseconds (1 clock tick)? Doesn't delay(1) wait 1 millisecond by reading the 8254? Or does it round to the nearest clock tick? -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/