Fujitsu FR20 Manuel D’Utilisation

Page de 348
194
CHAPTER 10  Timer
External Clock Mode (Only Timer 4)
The external clock input is selected as the external clock mode by the clock source selection bit (TC1, TC0)
of the timer control register (T4CR).
In order to start up the timer, writing "1" to the T4CR timer start bit (TSTR) clears the counter, and then
counting starts. The number of events can be found by reading the count data register (T4CD).
Figure 10.4-2  External Clock Mode operation
7F
H
7F
H
00
H
01
H
FF
H
02
H
03
H
7E
H
7F
H
00
H
01
H
00
Indeter-
minate
55
H
FF
H
 
Compare latch
Counter clear
Count value
EC4
TSTR=1
TADR
IFLG
FCLR=0(W)