UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 298

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
296
(b) Pulse width measurement with capture register
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.
Remark
INTTPnCC0 signal
INTTPnCC1 signal
TPnCCR0 register
TPnCCR1 register
INTTPnOV signal
TIOPn0 pin input
TIOPn1 pin input
16-bit counter
TPnOVF bit
TPnCE bit
n = 0 to 4
m = 0, 1
FFFFH
0000H
CHAPTER 6 16-BIT TIMER/EVENT COUNTER P (TMP)
Pulse interval
Preliminary User’s Manual U19748EJ1V0UD
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
(10000H +
D
D
D
00
11
01
)
D
D
10
D
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
Pulse interval
(10000H +
D
D
D
11
03
12
D
)
D
02
D
03
02
)
Pulse interval
(10000H +
D
13
Pulse interval
(10000H +
D
04
D
D
D
D
12
Cleared to 0 by
CLR instruction
03
12
13
)
D
03
)
D
04
D
D
04
13

Related parts for UPD78F0838