2camjohn
Member
Currently my timer interrupts every 0.000512s.
But I was thinking at the end of my timer routine I could set the timer value to 6, so that it would only count 250 times before it overflows (rather than 256), giving an interrupt every 0.0005 seconds.
So, that would certainly help make my maths easier. But is it good practice? Are there any side effects I have not considered.
Any information apprecaited.
But I was thinking at the end of my timer routine I could set the timer value to 6, so that it would only count 250 times before it overflows (rather than 256), giving an interrupt every 0.0005 seconds.
So, that would certainly help make my maths easier. But is it good practice? Are there any side effects I have not considered.
Any information apprecaited.