NEC PD754144 User Manual page 176

4-bit single-chip microcontrollers
Table of Contents

Advertisement

(4) Operation after changing modulo register
The contents of the timer counter modulo register (TMODn) and high-level period setting timer counter modulo
register (TMOD2H) are changed as soon as an 8-bit data memory manipulation instruction has been executed.
Count pulse (CP)
Timer counter
modulo register
(TMODn)
High-level period
setting timer counter
modulo register
(TMOD2H)
Timer counter
count register (Tn)
If the value of TMODn after the change is less than the value of the timer counter count register (Tn), Tn
continues counting. When an overflow occurs, Tn starts counting again from 0. If the values of TMODn and
TMOD2H after the change are less than the values before change (n), it is necessary to restart the timer after
changing TMODn and TMOD2H.
Count pulse (CP)
Timer counter
modulo register
(TMODn)
High-level period setting
timer counter
modulo register
(TMOD2H)
Timer counter
count register (Tn)
176
CHAPTER 6 PERIPHERAL HARDWARE FUNCTION
n
Rewrite instruction
n
0
Match signal
n
x – 1
x
n > x > m
User's Manual U10676EJ3V0UM
1
m
255
m
m
0
Match signal
0
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents