www.ti.com
Timer 2 Registers
T2IRQF (0xA1) – Timer 2 Interrupt Flags (CC2541 Only)
Bit Name Reset R/W Function
No.
7
TIMER2_LONG_COMPARE2F
0 R/W0 Set when the Timer 2 overflow counter is equal to t2ovf_cmp2 and the timer
counts to the value set at t2_cmp2
6
TIMER2_LONG_COMPARE1F
0 R/W0 Set when the Timer 2 overflow counter is equal to t2ovf_cmp1 and the timer
counts to the value set at t2_cmp1
5
TIMER2_OVF_COMPARE2F
0 R/W0 Set when the Timer 2 overflow counter counts to the value set at t2ovf_cmp2
4
TIMER2_OVF_COMPARE1F
0 R/W0 Set when the Timer 2 overflow counter counts to the value set at Timer 2
t2ovf_cmp1
3
TIMER2_OVF_PERF
0 R/W0 Set when the Timer 2 overflow counter would have counted to a value equal to
t2ovf_per, but instead wraps to 0
2
TIMER2_COMPARE2F
0 R/W0 Set when the Timer 2 counter counts to the value set at t2_cmp2
1
TIMER2_COMPARE1F
0 R/W0 Set when the Timer 2 counter counts to the value set at t2_cmp1
0
TIMER2_PERF
0 R/W0 Set when the Timer 2 counter would have counted to a value equal to t2_per,
but instead wraps to 0.
T2IRQM (0xA7) – Timer 2 Interrupt Mask (CC253x/CC2540)
Bit Name Reset R/W Function
No.
7:6 – 0 R0 Reserved. Read as 0
5
TIMER2_OVF_COMPARE2M
0 R/W Enables the TIMER2_OVF_COMPARE2 interrupt
4
TIMER2_OVF_COMPARE1M
0 R/W Enables the TIMER2_OVF_COMPARE1 interrupt
3
TIMER2_OVF_PERM
0 R/W Enables the TIMER2_OVF_PER interrupt
2
TIMER2_COMPARE2M
0 R/W Enables the TIMER2_COMPARE2 interrupt
1
TIMER2_COMPARE1M
0 R/W Enables the TIMER2_COMPARE1 interrupt
0
TIMER2_PERM
0 R/W Enables the TIMER2_PER interrupt
T2IRQM (0xA7) – Timer 2 Interrupt Mask (CC2541 Only)
Bit Name Reset R/W Function
No.
7
TIMER2_LONG_COMARE2M
0 R/W Enables the TIMER2_LONG_COMPARE2F interrupt
6
TIMER2_LONG_COMARE1M
0 R/W Enables the TIMER2_LONG_COMPARE1F interrupt
5
TIMER2_OVF_COMPARE2M
0 R/W Enables the TIMER2_OVF_COMPARE2 interrupt
4
TIMER2_OVF_COMPARE1M
0 R/W Enables the TIMER2_OVF_COMPARE1 interrupt
3
TIMER2_OVF_PERM
0 R/W Enables the TIMER2_OVF_PER interrupt
2
TIMER2_COMPARE2M
0 R/W Enables the TIMER2_COMPARE2 interrupt
1
TIMER2_COMPARE1M
0 R/W Enables the TIMER2_COMPARE1 interrupt
0
TIMER2_PERM
0 R/W Enables the TIMER2_PER interrupt
215
SWRU191C–April 2009–Revised January 2012 Timer 2 (MAC Timer)
Submit Documentation Feedback
Copyright © 2009–2012, Texas Instruments Incorporated