Hello all,
I am looking to create a software timer that does not use any of the timers supplied in the LPC1342 microcontroller. I am thinking of reading a ram, rom, or flash location a number of times in order to make up a specific time period (i.e. using the access time of these devices). Has anyone achieved this under the ARM/Thumb2 environment programmed in C?
Regards
Barry
Sorry, but dumb.
Extremely short delays - use n NOP instruction or similar. Use asm file since optimier plays with inline assembler.
For longer delays you can let a timer irq update a counter that you poll. Or poll a freerunning timer.
Per Westermark! You stole my reply :-) The exact same timestamp is no excuse :-)
Pah!
If you're seriously considering writing a delay like that then I say:
Use a bl**dy egg timer like everyone else!