I was hopping that eventually grimmjow would use a more recent chip with a timer switch to set it on or off.
Anyway, nice trick Henrik.
Your code has a typo in the line:
it should beCode:myValye = TMR0 * 32 'myValue now contains the time in us (5000us=5ms)
Also while TMR0 is zeroed before new cycle, the Prescaller still holds the previous value.Code:myValue = TMR0 * 32 'myValue now contains the time in us (5000us=5ms)
A chip with 16 bit timer would be more precise here.
Ioannis
Bookmarks