Chapter 26 eTimer
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
725
26.6.2.11 Status register (STS)
Table 26-12. CTRL3 field descriptions
Field
Description
STPEN
Stop Actions Enable
This bit allows the tristating of the timer output during stop mode.
0 Output enable is unaffected by stop mode.
1 Output enable is disabled during stop mode.
ROC
Reload on Capture
These bits enable the capture function to cause the counter to be reloaded from the LOAD register.
00 Do not reload the counter on a capture event.
01 Reload the counter on a capture 1 event.
10 Reload the counter on a capture 2 event.
11 Reload the counter on both a capture 1 event and a capture 2 event.
C2FCNT
CAPT2 FIFO Word Count
This field reflects the number of words in the CAPT2 FIFO.
C1FCNT
CAPT1 FIFO Word Count
This field reflects the number of words in the CAPT1 FIFO.
DBGEN
Debug Actions Enable
These bits allow the counter channel to perform certain actions in response to the device entering
debug mode.
00 Continue with normal operation during debug mode. (default)
01 Halt channel counter during debug mode.
10 Force OFLAG to logic 0 (prior to consideration of the OPS bit) during debug mode.
11 Both halt counter and force OFLAG to 0 during debug mode.
Address: Base + 0x0014 (eTimer0)
Base + 0x0034 (eTimer1)
Base + 0x0054 (eTimer2)
Base + 0x0074 (eTimer3)
Base + 0x0094 (eTimer4)
Base + 0x00B4 (eTimer5)
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
0
0
0
0
0
0
WDF RCF ICF2 ICF1 IEHF IELF TOF TCF2 TCF1 TCF
W
w1c
w1c
w1c
w1c
w1c
w1c
w1c
w1c
w1c
w1c
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 26-13. Status register (STS)
Table 26-13. STS field descriptions
Field
Description
WDF
Watchdog Time-out Flag
This bit is set when the watchdog times out by counting down to zero. The watchdog must be
enabled for time-out to occur and channel 0 must be in quadrature decode count mode
(CNTMODE = 100). This bit is cleared by writing a 1 to this bit. This bit is used in channel 0 only.
RCF
Redundant Channel Flag
This bit is set when there is a miscompare between this channel’s OFLAG value and the OFLAG
value of the corresponding redundant channel. Corresponding channels are grouped together in the
following pairs: 0 and 1, 2 and 3, 4 and 5, or 6 and 7. This bit can only be set if the RDNT bit is set.
This bit is cleared by writing a 1 to this bit. This bit is used in even channels (0, 2, 4, and 6) only.