CC2430
Peripherals : 16-bit timer, Timer1
T1CC0
T1CCn
0000h
0 - Set output on compare
1 - Clear output on compare
2 - Toggle output on compare
3 - Set output on compare-up,
clear on compare-down
4 - Clear output on compare-up,
set on compare-down
5 - Clear when T1CC0, set when T1CCn
6 - Set when T1CC0, clear when T1CCn
T1CCn
T1CC0 T1CCn
T1CCn T1CC0 T1CCn
Figure 25: Output modes, timer up/down mode
13.6.9
Timer 1 Interrupts
There is one interrupt vector assigned to the
timer. An interrupt request is generated when
one of the following timer events occur:
channel compare/capture events, respectively.
An interrupt request is only generated when
the corresponding interrupt mask bit is set
together witjh IEN1.T1EN. The interrupt mask
•
Counter reaches terminal count value
(overflow, or turns around zero.
Input capture event.
bits
are T1CCTL0.IM, T1CCTL1.IM,
T1CCTL2.IM and TIMIF.OVFIM. If there are
other pending interrupts, the corresponding
interrupt flag must be cleared by software
before a new interrupt request is generated.
Also, enabling an interrupt mask bit will
generate a new interrupt request if the
corresponding interrupt flag is set.
•
•
Output compare event
The
T1CTL.CH0IF,
register
bits
T1CTL.OVFIF,
and
T1CTL.CH1IF,
T1CTL.CH2IF contains the interrupt flags for
the terminal count value event, and the three
13.6.10 Timer 1 DMA Triggers
There are three DMA triggers associated with
Timer 1. These are DMA triggers T1_CH0,
T1_CH1 and T1_CH2 which are generated on
timer compare events as follows:
•
•
•
T1_CH0 – channel 0 compare
T1_CH1 – channel 1 compare
T1_CH2 – channel 2 compare
CC2430 Data Sheet (rev. 2.1) SWRS036F
Page 105 of 211