UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 309

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
(1) Operation flow in pulse width measurement mode
Remark
<1> Count operation start flow
<2> Count operation stop flow
Figure 6-40. Software Processing Flow in Pulse Width Measurement Mode
n = 0 to 4
INTTPnCC0 signal
(TPnCKS0 to TPnCKS2 bits),
TPnCCR0 register
TIOPn0 pin input
Set TPnCTL0 register
Register initial setting
16-bit counter
TPnCTL1 register,
TPnIOC1 register,
TPnIOC2 register,
TPnOPT0 register
TPnCTL0 register
(TPnCE bit = 1)
TPnCE bit = 0
TPnCE bit
CHAPTER 6 16-BIT TIMER/EVENT COUNTER P (TMP)
START
FFFFH
STOP
0000H
Preliminary User’s Manual U19748EJ1V0UD
<1>
0000H
Initial setting of these registers
is performed before setting the
TPnCE bit to 1.
The TPnCKS0 to TPnCKS2 bits can
be set at the same time when counting
has been started (TPnCE bit = 1).
The counter is initialized and counting
is stopped by clearing the TPnCE bit to 0.
D
0
D
1
D
<2>
2
0000H
307

Related parts for UPD78F0838