Stop And Restart Operations Of 8/16-Bit Timer/Counter; Table 7.9-1 Stop And Restart Of Timer - Fujitsu F2MC-8L Series Hardware Manual

8-bit microcontroller
Hide thumbs Also See for F2MC-8L Series:
Table of Contents

Advertisement

CHAPTER 7 8/16-BIT TIMER/COUNTER
7.9

Stop and Restart Operations of 8/16-bit Timer/Counter

This section describes the stop and restart operations of the 8/16-bit timer/counter.
Stop and Restart of Timer
Although the following description is for timer 1, it also applies to timer 2 in the same way.
The timer stop bit (T1STP) and timer start bit (T1STR) in the timer 1 control register (T1CR) are
used to stop and restart timer 1.
To start counting after clearing the counter:
Set the T1STP and T1STR bits to "01
at the rising edge of the T1STR bit and starts counting.
To restart counting without clearing the counter after pausing the timer:
To pause counting, set the T1STP and T1STR bits to "11
clearing the counter being paused, set the T1STP and T1STR bits to "01
Table 7.9-1 lists the timer states depending on the settings of the T1STP and T1STR bits and
the operations of the timer started (T1STP, T1STR = "01

Table 7.9-1 Stop and Restart of Timer

T1STP
(T2STP)
0
0
1
1
184
T1STR
Timer
(T2STR)
state
Stops
0
counting.
1
Counting
Stops
0
counting.
Pauses
1
counting.
" when the T1STR bit is "0". The timer is cleared
B
". To restart counting without
B
") from such states.
B
Operation of timer started (T1STP, T1STR =
"01B") from "Timer state"
Clears the counter and starts counting.
Continues counting.
Clears the counter and starts counting.
Restarts counting without clearing the counter.
".
B

Advertisement

Table of Contents
loading

Table of Contents