Greetings,
I would like to put the timer to interrupt the LPC2106 CPU on a multiple of 1 microseconds. I got success with a range of 1 millisecond, but at intervals of 1 micro the error is very large, about 40%, one has any idea how to shorten this interval?
Best regards
How many instructions can your CPU execute in one microsecond? How many instructions does your ISR (with context save/restore) require?
If set up properly, the timer interval is independent of instructions executed in the ISR. As long as the ISR execution time doesn't exceed the interval Bruno should be fine.
I think Bruno said that the granularity was supposed to be one microsecond -- not the duration of interval. But then, the problem description was not very clear to begin with.
Regards Marcus