Hi All
Having some probs with tmr3setup - I'm using a 28X2 part at 8MHz in this application. The language guide says ...
"The internal timer counts, when enabled, at a rate of (1/resonator speed) / 4. This means, for instance, at 8MHz the internal timer increment occurs every 0.5us.
This value can be optionally scaled by the prescale value (set via bits 5:4) , so with a 1: 8 prescale the increment will occur every 4us (8 x 0.5us). "
(1/8E6)/4 = 0.03125 uS according to my aged calculator - a factor of 16 out.
The prescaler maxes out at 1:8 so we're still a factor of two out )
The application I'm working on actually requires 10mS - 1/100th of a second interrupts which need to be accurate.
Can anyone suggest a solution?
TIA
Neil
Having some probs with tmr3setup - I'm using a 28X2 part at 8MHz in this application. The language guide says ...
"The internal timer counts, when enabled, at a rate of (1/resonator speed) / 4. This means, for instance, at 8MHz the internal timer increment occurs every 0.5us.
This value can be optionally scaled by the prescale value (set via bits 5:4) , so with a 1: 8 prescale the increment will occur every 4us (8 x 0.5us). "
(1/8E6)/4 = 0.03125 uS according to my aged calculator - a factor of 16 out.
The prescaler maxes out at 1:8 so we're still a factor of two out )
The application I'm working on actually requires 10mS - 1/100th of a second interrupts which need to be accurate.
Can anyone suggest a solution?
TIA
Neil