355
16-bit Timer/Event Counter P (TMP)
Chapter 11
Preliminary User’s Manual U17566EE1V2UM00
(8)
TPnCCR1 - TMPn capture/compare register 1
The TPnCCR1 register can be used as a capture register or a compare
register depending on the mode.
This register can be used as a capture register or a compare register only in
the free-running timer mode, depending on the setting of the
TPnOPT0.TPnCCS1 bit. In the pulse width measurement mode, the TPnCCR1
register can be used only as a capture register. In any other mode, this register
can be used only as a compare register.
The TPnCCR1 register can be read or written during operation.
Access
This register can be read/written in 16-bit units.
Address
<base> + 8
H
Initial Value
0000
H
. This register is initialized by any reset.
(a) Function as compare register
The TPnCCR1 register can be rewritten even when the TPnCTL0.TPnCE
bit = 1.
The set value of the TPnCCR1 register is transferred to the CCR1 buffer
register. When the value of the 16-bit counter matches the value of the
CCR1 buffer register, a compare match interrupt request signal
(INTTPnCC1) is generated. If TOPn1 pin output is enabled at this time, the
output of the TOPn1 pin is inverted.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CCR1 value
R/W
electronic components distributor