15.3.1
Operation of PWM Timer Functions
The up count timer enables the reload and one-shot operations.
Operation of PWM Timer Functions
Performs the count up at every count clock after starting the timer. An interrupt request may occur when an
overflow occurs in the range between 0000
The following operation is executed due to the mode when an overflow occurs:
• One-shot mode: Stops Counting
• Reload mode: The contents of reload register is reloaded to the timer and the counting restarts.
Figure 15.3-1 shows the timer function operation in the one-shot and reload modes.
[One-shot mode]
Timer count value
FFFF
H
0000
H
[Reload mode]
Timer count value
FFFF
H
PWCR
write value
0000
H
* :OVIR flag set
Figure 15.3-1 Operation of Timer Functions
Overflow
Write to PWCR
Timer start
OVIR flag set/Timer stop
Overflow Overflow
Reload
Reload
Reload
Reload
PWCR write Timer start
*
*
Restart
and FFFF
.
H
H
(A solid line shows the timer count value.)
Overflow
(Restart disabled)
Timer start
OVIR flag set/Timer stop
Overflow Overflow Overflow
Reload
Reload
Reload
Timer stop
*
*
*
CHAPTER 15 PWC TIMER
Time
Time
367