Well, I'm stumped in finding a workaround for this.
Setting the TRST doesn't work.
Storing a new, even different, value into MODULO doesn't work.
Stopping the timer then setting TRST and/or saving a new MODULO doesn't work - you still get a timeout within one clock after allowing the timer to run.
After stopping & resetting the timer, then storing a new value into the prescaler (PS) bits, doesn't work.
After stopping & resetting the timer, then reading MTIMSC followed by clearing the TOF bit (pre-acknowledging the upcoming timer overflow), doesn't work either.
So I've knocked on the modulo timer in every way I know how and it is determined to time out one tick later once it hits the modulo value.
The only solution I can see at the moment is to delay re-arming the MTIM until the next timeout if the current COUNT value equals the MODULO value. That's not going to work in my application because I need the timed duration to start right NOW.
Anybody got any ideas?
Message Edited by Wings on 2006-07-30 01:33 PM