Phil Green

Timer Compare Interrupt on AW60 after Reset

Discussion created by Phil Green on Jul 12, 2007
Latest reply on Nov 5, 2009 by bigmac
Hi,
I am setting up the Output Compare interrupt to generate a regular timer tick, say 1ms.
Changing the compare value (Timer value + Ticktime) in the interrupt service routine for the next tick.
I have found that after reset the first tick, takes a longer time as the timer is wrapping round the 16-bit count and only generating the first compare interrupt the next time round.
I have tried increasing the Output Compare value just in case the timer had already passed the compare value and I still experience the same problem as the timer wraps around first.
Has anyone experienced the same behaviour?
I look forward to hearing from your replies.
 
Regards
Phil Green
 

Outcomes