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-Slide14

With this simple example code one can see which registers need to be setup to enable the TAU. It is actually very simple; first the peripheral zero register PER0 must be set. A specific flag in this register enables the power to the Timer Array Unit, after which the clock is supplied to the unit. Clock frequencies are selected in the global clock selection circuit of each TAU unit via the TPS0 register. In this case fCLK/2 is being set for both paths. Then one needs to select the mode for each channel. In example, only channel zero is used and it is selected by the TMR00 register. Next the Timer Zero Compare register TDR0 must be initialized and then finally, after all the settings are done, TS0 bit zero is set to start the timer count operation.

PTM Published on: 2012-04-17