Operations Of The Timer Function - Fujitsu F2MC-16LX Hardware Manual

Mb90470 series 16-bit microcontroller
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

14.3.1 Operations of the Timer Function

This timer is an up-count (incrementing) timer providing both reload and one-shot
operations.
I Operation of timer functions
After the timer starts, its value is incremented at each pulse of the count clock. If an overflow
occurs in the range FFFF
generated, the following operations may be performed depending on the mode:
In one-shot mode: Counting stops
In reload mode: Reload register data is reloaded into the timer to restart counting.
Figure 14.3-1 "Operations of timer functions" shows the operations of the timer functions in one-
shot mode and reload mode.
[One-shot mode]
FFFF
H
0000
H
[Reload mode]
Timer count value
FFFF
H
PWCR write value
0000
H
--> 0000
H
Figure 14.3-1 Operations of timer functions
Overflow
OVIR flag
Timer start
set/timer stop
Overflow Overflow
Reload
Reload
PWCR
Timer
*
write
start
, an interrupt request may be generated. If an overflow is
H
Writing to PWCR
Timer start
Overflow Overflow Overflow
Reload Reload Reload
*
*
Restart
*: OVIR flag set
CHAPTER 14 PWC TIMER
(Solid line: timer count value)
Overflow
(Restarting prohibited)
OVIR flag
set/timer stop
Time
Reload
Reload
Timer
*
*
stop
Time
285

Advertisement

Table of Contents
loading

Table of Contents