
295
Chapter 7
16-Bit Timer/Event Counter P
User’s Manual U16702EE3V2UD00
(3)
When TPnCCS1 = 1 and TPnCCS0 = 0
When TPnCE = 1 is set, the counter counts from 0000H to FFFFH and free-running count-up
operation continues until TPnCE = 0 is set. The TPnCCR0 register is used as a compare register.
An interrupt signal is output upon a match between the value of the 16-bit counter and the setting
value transferred to the CCR0 buffer register from the TPnCCR0 register as an interval function.
Even if TPnOE1 = 1 to realize the output function, TPnCCR1 register cannot control TOPn1
because it is used as capture register.
Figure 7-30:
Basic Operation Timing in Free-Running Mode (TPnCCS1 = 1, TPnCCS0 = 0)
(TPnOE0 = 1, TPnOE1 = 1, TPnOL0 = 0, TPnOL1 = 0)
Remarks: 1.
D00, D01: Setting compare values of TPnCCR0 register (0000H to FFFFH)
D10, D11, D12, D13, D14, D15: Values captured to TPnCCR1 register
(0000H to FFFFH)
2.
TIPn1: Set to detection of both rising and falling edges (TPnIS3, TPnIS2 = 11)
3.
n = 0 to 3
D
11
D
10
0000H
D
13
D
15
D
14
D
12
16-bit
FFFFH
TIPn1
TPnCCR0
TPnCE = 1
TPnCCR1
D
00
D
00
D
01
D
10
INTTPnCC0
D
00
D
01
D
11
D
13
D
12
D
14
D
15
D
00
D
01
0000H
counter
CCR0 buffer
register
electronic components distributor