How do i get a accurate 10us interrupt need to generate times to the nearest 10us.
Thanks
Wayne Millard
Moderator: Benj
As soon as interrupt is accessed, there need to be a very small delay before timer0 is set to 158. Then when timer0 rolls over to 0 the interrupt is accessed.wayne millard wrote:Hi medelec35,
Don't understand were you say put a delay before the tmr0l +=158.
loop count is a very short delay.
That's why changed from 156 to 158. the higher the number the faster timer0 rolls over, so the faster interrupt is triggered.wayne millard wrote:And why is it not 156 0n a 40Mhz clock. on the last post you said on a 156 it generated 10.2uS

