This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

1 us delay generation

Note: This was originally posted on 11th May 2011 at http://forums.arm.com

Dear all,

             I am using Linux OS  with arm-elf tool chain.  I am not able to generate 1 us delay using 'for loop' method of 'C' programming language.Is there anything that i can try?



thanks & regards
   Avadhoot
Parents
  • Note: This was originally posted on 11th May 2011 at http://forums.arm.com

    Generating a reliable delay of a given length using a loop is difficult with modern processors, doubly so when running under a rich OS such as Linux.  There is just so much going on you don't have control over.

    Not done much Linux app development, but can't you use some sort of wait()/sleep() call from the OS?
Reply
  • Note: This was originally posted on 11th May 2011 at http://forums.arm.com

    Generating a reliable delay of a given length using a loop is difficult with modern processors, doubly so when running under a rich OS such as Linux.  There is just so much going on you don't have control over.

    Not done much Linux app development, but can't you use some sort of wait()/sleep() call from the OS?
Children
No data