UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 306

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
later detected, the count value of the 16-bit counter is stored in the TPnCCRm register, the 16-bit counter is cleared to
0000H, and a capture interrupt request signal (INTTPnCCm) is generated.
interrupt request signal (INTTPnOV) is generated at the next count clock, and the counter is cleared to 0000H and
continues counting. At this time, the overflow flag (TPnOPT0.TPnOVF bit) is also set to 1. Clear the overflow flag to 0
by executing the CLR instruction via software.
304
When the TPnCE bit is set to 1, the 16-bit counter starts counting. When the valid edge input to the TIOPnm pin is
The pulse width is calculated as follows.
If the valid edge is not input to the TIOPnm pin even when the 16-bit counter counted up to FFFFH, an overflow
If the overflow flag is set to 1, the pulse width can be calculated as follows.
Remark
Pulse width = Captured value
Pulse width = (10000H
INTTPnCCm signal
TPnCCRm register
TIOPnm pin input
INTTPnOV signal
n = 0 to 4
m = 0, 1
16-bit counter
TPnOVF bit
TPnCE bit
FFFFH
0000H
Figure 6-38. Basic Timing in Pulse Width Measurement Mode
TPnOVF bit set (1) count + Captured value)
CHAPTER 6 16-BIT TIMER/EVENT COUNTER P (TMP)
0000H
Count clock cycle
Preliminary User’s Manual U19748EJ1V0UD
D
0
Count clock cycle
D
1
Cleared to 0 by
CLR instruction
D
2
D
3

Related parts for UPD78F0838