Timer Control 2 Register (T2Cr); Figure 7.4-3 Timer 2 Control Register (T2Cr) - Fujitsu F2MC-8L Series Hardware Manual

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

Advertisement

7.4.2

Timer Control 2 Register (T2CR)

The timer 2 control register (T2CR) is used to select each function of timer 1 in 8-bit
mode or of the 16-bit timer, enable or disable operation, control interrupts, and check
the state of the 8/16-bit timer/counter. For use in 16-bit mode, the T2CR register must
also be set appropriately although the timer 1 control register (T1CR) controls the
timer.
Timer Control 2 Register (T2CR)
Address
0018
H
R/W : Readable and writable
X

Figure 7.4-3 Timer 2 Control Register (T2CR)

Bit 7
Bit 6
Bit 5
Bit 4
T2IF
T2IE
T2OS1 T2OS0 T2CS1 T2CS0 T2STP T2STR
R/W
R/W
R/W
R/W
: Indeterminate
: Initial value
Bit 3
Bit 2
Bit 1
Bit 0
R/W
R/W
R/W
R/W
Timer counter start bit
T2STR
0
Timer sops counter operation.
1
Clears and starts counter operation.
T2STP
Continues counter operation without clearing the
0
counter.
1
Pauses counter operation.
Count clock select bits
T2CS1 T2CS0
0
0
2 t
inst
0
1
32 t
inst
1
0
512 t
inst
1
1
16-bit mode
t
: Instruction cycle
inst
T2OS1 T2OS0
0
0
Always write "00".
0
1
Setting prohibited
1
0
Setting prohibited
1
1
Setting prohibited
Interrupt request enable bit
T2IE
0
Disables interrupt request output.
1
Enables interrupt request output.
Interrupt request flag bit
T2IF
Read
No match with counter
0
value
1
Match with counter value
7.4 8/16-bit Timer/Counter Registers
Initial value
X000XXX0
B
Timer stop bit
Unuesd bits
Write
Clears this bit.
No effect. The bit does
not change.
169

Advertisement

Table of Contents
loading

Table of Contents