Chapter 9
SWRU191C–April 2009– Revised January 2012
Timer 1 (16-Bit Timer)
Timer 1 is an independent 16-bit timer which supports typical timer/counter functions such as input
capture, output compare, and PWM functions. The timer has five independent capture/compare channels.
The timer uses one I/O pin per channel. The timer is used for a wide range of control and measurement
applications, and the availability of up/down count mode with five channels allows, for example,
implementation of motor-control applications.
The features of Timer 1 are as follows:
• Five capture/compare channels
• Rising, falling, or any-edge input capture
• Set, clear or toggle output compare
• Free-running, modulo, or up/down counter operation
• Clock prescaler for divide by 1, 8, 32, or 128
• Interrupt request generated on each capture/compare and terminal count
• DMA trigger function
Topic ........................................................................................................................... Page
9.1 16-Bit Counter ................................................................................................. 108
9.2 Timer 1 Operation ............................................................................................ 108
9.3 Free-Running Mode ......................................................................................... 108
9.4 Modulo Mode .................................................................................................. 108
9.5 Up/Down Mode ................................................................................................ 109
9.6 Channel-Mode Control ..................................................................................... 109
9.7 Input Capture Mode ......................................................................................... 109
9.8 Output Compare Mode ..................................................................................... 110
9.9 IR Signal Generation and Learning .................................................................... 115
9.10 Timer 1 Interrupts ............................................................................................ 117
9.11 Timer 1 DMA Triggers ...................................................................................... 117
9.12 Timer 1 Registers ............................................................................................ 118
9.13 Accessing Timer 1 Registers as Array ................................................................ 123
107
SWRU191C–April 2009–Revised January 2012 Timer 1 (16-Bit Timer)
Submit Documentation Feedback
Copyright © 2009–2012, Texas Instruments Incorporated