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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9f3f1b40d2533ab8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.223.40 with SMTP id qr8mr24330673pbc.0.1337629958222; Mon, 21 May 2012 12:52:38 -0700 (PDT) Path: pr3ni22238pbb.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: "Rego, P." Newsgroups: comp.lang.ada Subject: Re: Chicken or the egg. New targets & runtimes Date: Mon, 21 May 2012 12:51:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <9934369.1060.1337090738467.JavaMail.geo-discussion-forums@yngr17> <23562031.232.1337111053220.JavaMail.geo-discussion-forums@ynz24> <31064186.285.1337113468939.JavaMail.geo-discussion-forums@ynbq3> <28126498.2000.1337186361343.JavaMail.geo-discussion-forums@ynff7> <20120516212910.479ca67866ddfe8d25634cdb@iki.fi> NNTP-Posting-Host: 201.7.145.1 Mime-Version: 1.0 X-Trace: posting.google.com 1337629890 12883 127.0.0.1 (21 May 2012 19:51:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 21 May 2012 19:51:30 +0000 (UTC) In-Reply-To: <20120516212910.479ca67866ddfe8d25634cdb@iki.fi> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=201.7.145.1; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-05-21T12:51:30-07:00 List-Id: > For example, if you have 4 tasks and divide memory equally, each task > gets only about 512 bytes (2KB total / 4 =3D 512b and you need to > reserve a little for the scheduler also). In addition, task switching > overheard might become quite big, since you need to save quite many > registers in every switch and processor CPU frequency is limited to > 20MHz at maximum. Well, 512B is exactly the amount of SRAM an AVR Minumus (AT90USB162 - 512B = SRAM, 16KB Flash and 16MHz) has available, so it's not so few. I have one, = and it's quite good for simple control/robotic applications even using as C= DC (much more as standalone). With this 4-tasking scheme, we would simply h= ave the equivalent to 4 AT90USB162 running in parallel, but a bit faster, s= ince ATmega328P is 20MHz, and with more h/w resources. Also the 32KB Flash = from the ATmega328p would be enough to allocate all the code for the tasks. > But, I agree that (implementing) the tasking would be interesting, > whether or not it being useful. :) Yes, but I believe it will be useful :-)