NEC V850ES/KE1+ User Manual page 166

32-bit single-chip microcontrollers
Table of Contents

Advertisement

(b) Notes on rewriting the TP0CCR0 register
To change the value of the TP0CCR0 register to a smaller value, stop counting once and then change the
set value.
If the value of the TP0CCR0 register is rewritten to a smaller value during counting, the 16-bit counter may
overflow.
16-bit counter
TP0CE bit
TP0CCR0 register
INTTP0CC0 signal
If the value of the TP0CCR0 register is changed from D
less than D
, the count value is transferred to the CCR0 buffer register as soon as the TP0CCR0 register
1
has been rewritten. Consequently, the value that is compared with the 16-bit counter is D
Because the count value has already exceeded D
overflows, and then counts up again from 0000H. When the count value matches D
signal is generated.
Therefore, the INTTP0CC0 signal may not be generated at the valid edge count of "(D
+ 1) times" originally expected, but may be generated at the valid edge count of "(10000H + D
166
CHAPTER 6 16-BIT TIMER/EVENT COUNTER P (TMP)
FFFFH
D
1
0000H
D
External event
count signal
interval (1)
(D
+ 1)
1
User's Manual U16896EJ2V0UD
D
1
D
D
2
2
1
External event count signal
interval (NG)
(10000H + D
+ 1)
2
to D
while the count value is greater than D
1
2
, however, the 16-bit counter counts up to FFFFH,
2
D
2
D
2
External event
count signal
interval (2)
(D
+ 1)
2
.
2
, the INTTP0CC0
2
+ 1) times" or "(D
1
+ 1) times".
2
but
2
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

?pd70f3302?pd703302?pd70f3302y?pd703302y

Table of Contents