Figure 9.3.1 16-Bit Timer Control Register (Tmcr) - Fujitsu F2MC-8L MB89620 Series Hardware Manual

8-bit microcontroller
Table of Contents

Advertisement

9.3 Structure of 16-bit Timer/Counter
9.3.1 16-bit Timer Control Register (TMCR)
The 16-bit timer control register (TMCR) is used to select the function (interval timer
function or counter function), set operating conditions, enable or disable operation,
clear the counter, control interrupts, and check the state of the 16-bit timer/counter.
n 16-bit Timer Control Register (TMCR)
Address
0018
H
R/W : Readable and writable
186
CHAPTER 9 16-BIT TIMER/COUNTER
Bit 7
Bit 6
Bit 5
TCR
W
: Unused
X
: Indeterminate
: Initial value

Figure 9.3.1 16-bit Timer Control Register (TMCR)

Bit 4
Bit 3
Bit 2
Bit 1
TCS1
TCS0
TCEF
TCIE
R/W
R/W
R/W
R/W
TCS
0
Disables/stops counter operation.
1
Enables/starts counter operation.
TCIE
0
Disables interrupt request output.
1
Enables interrupt request output.
TCEF
0
No overflow on counter
1
Overflow on counter
TCS1 TCS0
0
0
0
1
1
0
1
1
TCR
0
Counter clear
1
No effect on operation.
Bit 0
Initial value
TCS
XX000000
B
R/W
Counter start bit
Interrupt request enable bit
Interrupt request flag bit
Read
Clears this bit.
No effect. The bit does
not change.
Counter operating mode selection bits
Interval timer operation
Detects falling edge on external input.
Counter
Detects rising edge on external input.
operation
Detects both edges on external input.
Counter clear bit
Write
MB89620 series

Advertisement

Table of Contents
loading

Table of Contents