English
Language : 

CC2430 Datasheet, PDF (113/212 Pages) Texas Instruments – A True System-on-Chip solution for 2.4 GHz IEEE 802.15.4 / ZigBee-TM
CC2430
Peripherals : MAC Timer (Timer2)
T2CAPHPH and T2CAPHPL should be avoided
when using Timer2 in PM1 or PM2.
13.7.5 Timer 2 Registers
The SFR registers associated with Timer 2 are
listed in this section. These registers are the
following:
• T2CNF – Timer 2 Configuration
• T2HD – Timer 2 Count/Delta High
• T2LD – Timer 2 Count/Delta Low
• T2CMP – Timer 2 Compare
• T2OF2 – Timer 2 Overflow Count 2
• T2OF1 – Timer 2 Overflow Count 1
T2CNF (0xC3) – Timer 2 Configuration
• T2OF0 – Timer 2 Overflow Count 0
• T2CAPHPH – Timer 2 Capture/Period High
• T2CAPLPL – Timer 2 Capture/Period Low
• T2PEROF2 – Timer 2 Overflow
Capture/Compare 2
• T2PEROF1 – Timer 2 Overflow
Capture/Compare 1
• T2PEROF0 – Timer 2 Overflow
Capture/Compare 0
Bit Name
7
CMPIF
6
PERIF
5
OFCMPIF
4
-
3
CMSEL
2
-
1
SYNC
0
RUN
Reset
0
R/W
R/W0
0
R/W0
0
R/W0
0
R0
0
R/W
0
R/W
1
R/W
0
R/W
Description
Timer compare interrupt flag. This bit is set to 1 when a timer compare
event occurs. Cleared by software only. Writing a 1 to this bit has no
effect.
Overflow interrupt flag. This bit is set to 1 when a period event occurs.
Cleared by software only. Writing a 1 to this bit has no effect.
Overflow compare interrupt flag. This bit is set to 1 when a overflow
compare occurs. Cleared by software only. Writing a 1 to this bit has no
effect.
Not used. Read as 0
Timer compare source select.
0 Compare with 16-bit Timer bits [15:8]
1 Compare with 16-bit Timer bits [7:0]
Reserved. Always set to 0
Enable synchronized start and stop.
0 start and stop of timer is immediate
1 start and stop of timer is synchronized with 32.768 kHz edge and new
timer values are reloaded.
Dual function: timer start / timer status.
Writing this bit will start or stop the timer.
0 stop timer
1 start timer
Reading this bit the current state of the timer is returned.
0 timer is stopped (IDLE state)
1 timer is running (RUN state)
Note when SYNC =1 (the reset condition), the timer status does not
change immediately when the timer is started or stopped. Instead the
timer status is changed when the actual synchronous start/stop takes
place. Prior to the synchronous start/stop event, the read value of RUN
will differ from the last value written.
CC2430 Data Sheet (rev. 2.1) SWRS036F
Page 113 of 211