360
Chapter 11
16-bit Timer/Event Counter P (TMP)
Preliminary User’s Manual U17566EE1V2UM00
(b) TMPn control register 1 (TPnCTL1)
(c) TMPn I/O control register 0 (TPnIOC0)
(d) TMPn counter read buffer register (TPnCNT)
By reading the TPnCNT register, the count value of the 16-bit counter can
be read.
(e) TMPn capture/compare register 0 (TPnCCR0)
If the TPnCCR0 register is set to D
0
, the interval is as follows.
Interval = (D
0
+ 1)
×
Count clock cycle
(f) TMPn capture/compare register 1 (TPnCCR1)
Usually, the TPnCCR1 register is not used in the interval timer mode.
However, the set value of the TPnCCR1 register is transferred to the CCR1
buffer register. A compare match interrupt request signal (INTTPnCC1) is
generated when the count value of the 16-bit counter matches the value of
the CCR1 buffer register.
Therefore, mask the interrupt request by using the corresponding interrupt
mask flag (TPnCCMK1).
Note
TMPn I/O control register 1 (TPnIOC1), TMPn I/O control register 2
(TPnIOC2), and TMPn option register 0 (TPnOPT0) are not used in the interval
timer mode.
0
0
0
0
0
TPnCTL1
0, 0, 0:
Interv
a
l timer mode
0
0
0
TPnMD2 TPnMD1 TPnMD0
TPnEEE
TPnE
S
T
0
0
0
0
0/1
TPnIOC0
0: Di
sab
le TOPn0 pin o
u
tp
u
t
1: En
ab
le TOPn0 pin o
u
tp
u
t
S
etting of o
u
tp
u
t level with
oper
a
tion of TOPn0 pin di
sab
led
0: Low level
1: High level
0: Di
sab
le TOPn1 pin o
u
tp
u
t
1: En
ab
le TOPn1 pin o
u
tp
u
t
S
etting of o
u
tp
u
t level with
oper
a
tion of TOPn1 pin di
sab
led
0: Low level
1: High level
0/1
0/1
0/1
TPnOE1
TPnOL0
TPnOE0
TPnOL1
electronic components distributor