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

_nop_()

Hi,

Just a question about _nop_() !
I work on ST10F168 at 24MHz.
How can i know what's the delay of _nop_() function ???

Thanks in advance

Regards

Parents
  • At 24 MHz, the CPU cycle is 41+2/3 ns. Instruction execution time is at least 2 CPU cycles for the C166 CPU. The NOP instruction is executed in 2 CPU cycles, that is 83+1/3 ns. Of course, you have to take into account interrupts, CPU pipeline effects from the previous instructions and so on.
    I have used the ST10F168 microcontroller quite a bit, and I have checked those times carefully with long loops and a stopwatch, so you can rely on them :-)

    Regards,
    - mike

Reply
  • At 24 MHz, the CPU cycle is 41+2/3 ns. Instruction execution time is at least 2 CPU cycles for the C166 CPU. The NOP instruction is executed in 2 CPU cycles, that is 83+1/3 ns. Of course, you have to take into account interrupts, CPU pipeline effects from the previous instructions and so on.
    I have used the ST10F168 microcontroller quite a bit, and I have checked those times carefully with long loops and a stopwatch, so you can rely on them :-)

    Regards,
    - mike

Children