Hello,
I work with cortex M3-Microcontroller (LPC1768) and I want to know how much clock has a loop (for)
for(i=0;i<1;i++);
Thanks
Don't forget that the operation of the "flash accelerator" may (or may not) make timing of instructions fetches somewhat non-deterministic :-(
If I want "deterministic" instruction execution, I'd go for a 6502 ;-)
Some chips offer the feature of turning off any "flash acceleration" in order to achieve determinism (but slower.)
And some have "tightly coupled RAM" memory where you can stick code to run at full rate...
But some SAMD21 cycle-counting delay code in Arduino went all wonky when ported to the SAMD51 (which has actual cache rather than just flash acceleration.) Even thought it was theoretically adjusted for the change in clock rate. github.com/.../71