Richard Serge

S08QG8 MTIM Prescaler: Can I clear it?

Discussion created by Richard Serge on Jul 26, 2006
Latest reply on Jul 30, 2006 by Richard Serge
I want to use the Modulo Timer to give me a 10ms delay. My question is, how do I insure the MTIM prescaler is cleared when I enable the MTIM?

I can clear the COUNTER of the MTIM whenever I set the TRST bit or write to the modulo register, but the data sheet doesn't say whether or not either of these events also clear the prescaler. If I can't clear the prescaler then my delay could be in error by as much as the prescaler's period.

Outcomes