From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3025dd6d917b499c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.66.78.40 with SMTP id y8mr4215730paw.2.1349788675602; Tue, 09 Oct 2012 06:17:55 -0700 (PDT) Path: g9ni67049pbh.1!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada, the best language with the not-so-best tool chain Date: Tue, 9 Oct 2012 15:18:29 +0200 Organization: cbb software GmbH Message-ID: <1kg5574txbj9s.tjfsf4bdpyge$.dlg@40tude.net> References: <38af7fb8-b0a4-4a31-87aa-b7b698cc89c3@googlegroups.com> <3ca0ffd0-1764-484b-8fab-17c0d2dd9463@googlegroups.com> <1f645050-cf4c-40bf-a797-9687b69e4a54@googlegroups.com> <18ats2960nsvm$.kfufsnul13aq$.dlg@40tude.net> <5072c9ae$0$6562$9b4e6d93@newsspool4.arcor-online.net> <4keoa6epdxt7.1nnwxy7v7ar90.dlg@40tude.net> <5072dc68$0$6554$9b4e6d93@newsspool4.arcor-online.net> <1f7cmfp1l65w1.1deog8cfxbs0u$.dlg@40tude.net> <5072e37a$0$6556$9b4e6d93@newsspool4.arcor-online.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Received-Bytes: 2740 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Date: 2012-10-09T15:18:29+02:00 List-Id: On Tue, 9 Oct 2012 12:04:29 +0000 (UTC), Simon Clubley wrote: > If, OTOH, you need to know what the voltage on the line actually is, then > you choose a GPIO line which can be reconfigured as a A/D converter input > and run it through the MCU's ADC. Sample rates of several thousand per > second are still commonly achievable in this case. The problem is that an integrated I/O usually has only on ADC. So to measure two inputs you need twice so much time plus the time needed to switch the ADC to another line. This is how you quickly come over 10ms. Not to forget inability to measure inputs and change the outputs synchronously. > Unless you can generate pulses with a accuracy of _well_ under 0.1ms at a > rate of about 50Hz, you will see major jitter. You can control the pulse > length on a AVR GPIO line to this degree of accuracy. Under VxWorks we were able to receive, process and then send Ethernet frames with the latency about 100�s. We didn't do such tests for Linux, though. >> And who is talking about performance while choosing an ARM? > > It's the difference between latency and raw performance. Yes. But even with many tasks active latencies under 100�s are doable. Not for an ARM of course. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de