<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 7/8/2013 2:59 PM, Fernando Nicodemos
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAL5Gzm56XP75tELxNJ_vhSFzD8R6joAQ5UB=UmSve4LbDzoMMw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;font-size:small">
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">Dears,<br>
            <br>
          </div>
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">
            I configured 4 equal Tasks in RTEMS and the table as
            follows:<br>
              <br>
            rtems_task_create(<br>
            Task_name[ 0 ],<br>
            2,<br>
            RTEMS_MINIMUM_STACK_SIZE * 2,<br>
            RTEMS_PREEMPT | RTEMS_TIMESLICE | RTEMS_ASR |
            RTEMS_INTERRUPT_LEVEL(0),<br>
            RTEMS_GLOBAL,<br>
            &Task_id[ 0 ]<br>
            );<br>
            <br>
          </div>
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">They
            will operate in round-robin.<br>
          </div>
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small"><br>
          </div>
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">#define
            CONFIGURE_MICROSECONDS_PER_TICK 10000<br>
          </div>
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">#define
            CONFIGURE_TICKS_PER_TIME_SLICE 50<br>
          </div>
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small"><br>
          </div>
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">The
            result should show a timeslice of 500 milisseconds, but what
            i see in osciloscope is more then 500ms, exactly 834ms. This
            code is running in a ERC32 development kit from Atmel.<br>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    Where are the pins being written in the code to measure this?<br>
    <blockquote
cite="mid:CAL5Gzm56XP75tELxNJ_vhSFzD8R6joAQ5UB=UmSve4LbDzoMMw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;font-size:small">
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">Any
            ideas what is missing for this extra time?<br>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    What speed is the erc32?<br>
    <br>
    I am curious if the assumed CPU speed is different from your actual<br>
    board.<br>
    <blockquote
cite="mid:CAL5Gzm56XP75tELxNJ_vhSFzD8R6joAQ5UB=UmSve4LbDzoMMw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;font-size:small">
          Thanks,<br>
          <br>
        </div>
        <div><font style="font-family:arial,helvetica,sans-serif"><b
              style="color:rgb(0,0,153)">Fernando G. Nicodemos</b></font><br>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Joel Sherrill, Ph.D.             Director of Research & Development 
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a>        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805 
Support Available                (256) 722-9985 </pre>
  </body>
</html>