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

How to generate delay in CPU?

Hello,

I am trying to generate delay in CPU. For instance after writing a register, I want to read it again after 1000ns. What should be the C code or the assembly code for the same?

Thank you

Nishank Bansal

Parents
  • Do you need delays in us granularity or 100ns, 10ns or even 1ns.

    Anyway Cortex-A system have a system timer. And SoCs have also timers.

    So I suggest to pick one that runs fast enough for the precision you need, set it up for free running. The rest is common program techniques. 

Reply
  • Do you need delays in us granularity or 100ns, 10ns or even 1ns.

    Anyway Cortex-A system have a system timer. And SoCs have also timers.

    So I suggest to pick one that runs fast enough for the precision you need, set it up for free running. The rest is common program techniques. 

Children