NEC V850E/Dx3 Preliminary User's Manual page 411

32-bit single-chip microcontroller
Table of Contents

Advertisement

16-bit Timer/Event Counter P (TMP)
Downloaded from
Elcodis.com
electronic components distributor
<1> Count operation start flow
(TPnCKS0 to TPnCKS2 bits)
<2> Overflow flag clear flow
Execute instruction to clear
TPnOVF bit (CLR TPnOVF).
<3> Count operation stop flow
Figure 11-31
Software processing flow in free-running timer mode (capture function)
(2/2)
Preliminary User's Manual U17566EE1V2UM00
START
Register initial setting
Initial setting of these registers
TPnCTL0
is performed before setting the
TPnCE bit to 1.
TPnCTL1,
TPnIOC1,
TPnOPT0
The TPnCKS0 to TPnCKS2 bits can
be set at the same time when counting
TPnCE bit = 1
has been started (TPnCE bit = 1).
Read TPnOPT0 register
(check overflow flag).
NO
TPnOVF bit = 1
YES
Counter is initialized and
counting is stopped by
TPnCE bit = 0
clearing TPnCE bit to 0.
STOP
Chapter 11
411

Advertisement

Table of Contents
loading

Table of Contents