![](http://datasheet.mmic.net.cn/330000/MB90T678_datasheet_16438155/MB90T678_50.png)
MB90670/675 Series
50
5. 16-bit Reload Timer
The 16-bit reload timer has an internal clock mode for counting down in synchronization to three types of internal
clocks and an event count mode for counting down detecting a given edge of the pulse input to the external bus
pin, and either of the two functions can be selectively used.
For this timer, an “underflow” is defined as the counter value of “0000
H
” to “FFFF
H
”. According to this definition,
an underflow occurs after [reload register setting value + 1] counts.
In operating the counter, the reload mode for repeating counting operation after reloading a counter setting
value after an underflow or the one-shot mode for stopping the counting operation after an underflow can be
selectively used.
Because the timer can generate an interrupt upon an underflow, the timer conforms to the extended intelligent
I/O service (EI
2
OS).
The MB90670/675 series has 2 channels of 16-bit reload timers.
(1) Register Configuration
Initial value
XXXXXXXX
B
XXXXXXXX
B
XXXXXXXX
B
XXXXXXXX
B
bit 7. . .. . . . . . .. . .
Timer control status register upper digits (TMCSR0,TMCSR1 : H)
Address
TMCSR0:000039
H
TMCSR1:00003D
H
—
—
—
—
—
—
CSL1
CSL0
MOD2 MOD1
(TMCSR : L)
—
—
R/W
R/W
R/W
R/W
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
Initial value
- - - -0000
B
bit 1. . . .. . . . . . .. .
Timer control status register lower digits (TMCSR0,TMCSR1 : L)
Address
TMCSR0:000038
H
TMCSR1:00003C
H
(TMCSR : H)
OUTE
MOD1
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
bit 7
bit 6
bit 5
bit 4
Initial value
00000000
B
RELD
OUTL
UF
INTE
TRG
CNTE
bit 3
bit 2
bit 1
bit 0
16-bit timer register 0, 1 (TMR0,TMR1)
Address
00003A
H
00003B
H
00003E
H
00003F
H
bit 15
Initial value
XXXXXXXX
B
XXXXXXXX
B
XXXXXXXX
B
XXXXXXXX
B
bit 14bit 13bit 12bit 11bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
16-bit reload register 0, 1 (TMRL0,TMRL1)
Address
00003A
H
00003B
H
00003E
H
00003F
H
W
bit 15bit 14bit 13bit 12bit 11bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
W
W
W
W
W
W
W
W
W
W
W
W
W
W
W
R/W : Readable and writable
R : Read only
W : Write only
— : Unused
X : Indeterminate