NEC V850ES/KE1+ User Manual page 174

32-bit single-chip microcontrollers
Table of Contents

Advertisement

Figure 6-19. Software Processing Flow in External Trigger Pulse Output Mode (2/2)
<1> Count operation start flow
START
Register initial setting
TP0CTL0 register
(TP0CKS0 to TP0CKS2 bits)
TP0CTL1 register,
TP0IOC0 register,
TP0IOC2 register,
TP0CCR0 register,
TP0CCR1 register
TP0CE bit = 1
<2> TP0CCR0 and TP0CCR1 register
setting change flow
Setting of TP0CCR0 register
Setting of TP0CCR1 register
Remark
a = 0, 1
174
CHAPTER 6 16-BIT TIMER/EVENT COUNTER P (TMP)
<3> TP0CCR0, TP0CCR1 register
Initial setting of these
registers is performed
before setting the
TP0CE bit to 1.
<4> TP0CCR0, TP0CCR1 register
The TP0CKS0 to
TP0CKS2 bits can be
set at the same time
when counting is
enabled (TP0CE bit = 1).
Trigger wait status
<5> Count operation stop flow
TP0CCR1 register write
processing is necessary
only when the set
cycle is changed.
When the counter is
cleared after setting,
the value of the TP0CCRa
register is transferred to
the CCRa buffer register.
User's Manual U16896EJ2V0UD
setting change flow
Setting of TP0CCR1 register
setting change flow
Setting of TP0CCR0 register
Setting of TP0CCR1 register
TP0CE bit = 0
STOP
Only writing of the TP0CCR1
register must be performed when
the set duty factor is changed.
When the counter is cleared after
setting, the value of the
TP0CCRa register is transferred
to the CCRa buffer register.
When the counter is
cleared after setting,
the value of the TP0CCRa
register is transferred to
the CCRa buffer register.
Counting is stopped.

Advertisement

Table of Contents
loading

This manual is also suitable for:

?pd70f3302?pd703302?pd70f3302y?pd703302y

Table of Contents