Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Slide 13 Slide 14 Slide 15 Slide 16 Slide 17 Slide 18 Slide 19 Slide 20 Slide 21 Slide 22 Slide 23 Slide 24 Slide 25 Slide 26 Slide 27 Slide 28 Slide 29 Product List
Timer-Slide13

In this timing diagram one can see the functionality of the timer in Interval Timer Mode. After setting up the timer and starting it with the timer enable bit and the timer start trigger, the TCR register is pre-loaded with the value written to the TCR register. In this mode the TR register is counting down and if an underflow occurs or zero is reached then an interrupt is generated and the output is toggled - if enabled. Note the interval time is determined by the value of the TDR register plus one. Additionally, there are shadow registers for each TDR register so that the value of the TDR register can be re-written independently of the state of the internal timer. The next time the timer underflows, the new value will be written to the real TDR register automatically.

PTM Published on: 2012-04-17