UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 301

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
Note The TPnOVF0 and TPnOVF1 flags are set on the internal RAM by software.
<1> Read the TPnCCR0 register (setting of the default value of the TIOPn0 pin input).
<2> Read the TPnCCR1 register (setting of the default value of the TIOPn1 pin input).
<3> An overflow occurs. Nothing is done by software.
<4> Read the TPnCCR0 register.
<5> Read the TPnCCR1 register.
<6> Same as <3>
TPnCCR0 register
TPnCCR1 register
Example when two capture registers are used (without using overflow interrupt)
INTTPnOV signal
TPnOVF0 flag
TPnOVF1 flag
TIOPn0 pin input
TIOPn1 pin input
Read the overflow flag. If the overflow flag is 1, set only the TPnOVF1 flag to 1, and clear the
overflow flag to 0.
Because the overflow flag is 1, the pulse width can be calculated by (10000H + D
Read the overflow flag. Because the overflow flag is cleared in <4>, 0 is read.
Read the TPnOVF1 flag. If the TPnOVF1 flag is 1, clear it to 0.
Because the TPnOVF1 flag is 1, the pulse width can be calculated by (10000H + D
(correct).
16-bit counter
TPnOVF bit
TPnCE bit
FFFFH
0000H
Note
Note
CHAPTER 6 16-BIT TIMER/EVENT COUNTER P (TMP)
Preliminary User’s Manual U19748EJ1V0UD
D
00
<1>
D
10
<2>
D
00
<3>
D
D
01
10
<4>
D
11
<5> <6>
D
01
D
11
01
D
00
).
11
D
10
(2/2)
299
)

Related parts for UPD78F0838