upd70f3422gj-gae-qs-ax Renesas Electronics Corporation., upd70f3422gj-gae-qs-ax Datasheet - Page 413

no-image

upd70f3422gj-gae-qs-ax

Manufacturer Part Number
upd70f3422gj-gae-qs-ax
Description
32-bit Single-chip Microcontroller
Manufacturer
Renesas Electronics Corporation.
Datasheet
16-bit Timer/Event Counter P (TMP)
INTTPnCC0 signal
INTTPnCC1 signal
TPnCCR0 register
TPnCCR1 register
INTTPnOV signal
TIPn0 pin input
TIPn1 pin input
16-bit counter
TPnOVF bit
TPnCE bit
FFFFH
0000H
(b) Pulse width measurement with capture register
Preliminary User’s Manual U17566EE1V2UM00
When pulse width measurement is performed with the TPnCCRm register
used as a capture register, software processing is necessary for reading
the capture register each time the INTTPnCCm signal has been detected
and for calculating an interval.
When executing pulse width measurement in the free-running timer mode,
two pulse widths can be measured with one channel.
To measure a pulse width, the pulse width can be calculated by reading the
value of the TPnCCRm register in synchronization with the INTTPnCCm
signal, and calculating the difference between the read value and the
previously read value.
Pulse interval
0000H
0000H
Pulse interval
(D
00
D
)
(D
D
00
10
10
)
Pulse interval
(10000H +
D
D
01
Cleared to 0 by
CLR instruction
Pulse interval
00
− D
(10000H +
D
D
00
11
01
)
D
− D
D
10
Pulse interval
11
10
(D
)
02
− D
D
D
Pulse interval
02
01
01
(10000H +
)
D
D
12
Cleared to 0 by
CLR instruction
11
− D
Pulse interval
(10000H +
D
D
11
03
12
D
)
− D
D
02
03
02
)
Pulse interval
(10000H +
D
13
Pulse interval
(10000H +
− D
D
04
D
D
D
12
Cleared to 0 by
CLR instruction
− D
03
12
13
)
03
)
D
04
D
D
04
13
Chapter 11
413

Related parts for upd70f3422gj-gae-qs-ax