2.8 16-Bit Reload Timer (with Event Count Function)
153
2.8 16-Bit Reload Timer (with Event Count Function)
The 16-bit timer is configured from a 16-bit down-counter, a 16-bit reload register, a control register, and
four output pins (with I/O functions selected by the timer pin select register). The choice of input clock
signals includes 3 types of internal clock plus an external clock signal. The output pins (TOT) output a
toggle-output waveform in reload mode, and in one-shot mode they output a square wave to indicate that
the counting is in progress. The input pins are used for event input in event count mode, and can be used
for trigger input or gate input in internal clock mode.
The MB90660A series includes four channels of this type of timer.
2.8.1 Register List
–
CSL1 CSL0 MOD2MOD1
Timer control status register - high
Address : ch0 000031H
Bit no.
Read/write
–
(R/W) (R/W) (R/W) (R/W)
Initial value
–
(0)
ch1 000035H
15
14
13
12
11
10
9
8
MOD0
OUTL RELD INTE UF CNTE TRG
Bit no.
Read/write
(R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W)
Initial value
(0)
7
6
5
4
3
2
1
0
TMCSR
–
OTE3 CSB3 CSA3
–
OTE2 CSB2 CSA2
Timer pin control register - high
Address : 000057H
Bit no.
Read/write
–
(R/W) (R/W) (R/W)
–
(R/W) (R/W) (R/W)
Initial value
–
(0)
(1)
–
(0)
(1)
(0)
15
14
13
12
11
10
9
8
–
OTE1 CSB1 CSA1
–
OTE0 CSB0 CSA0
Bit no.
Read/write
–
(R/W) (R/W) (R/W)
–
(R/W) (R/W) (R/W)
Initial value
–
(0)
(1)
–
(0)
Timer pin control register - low
Address : 000056H
7
6
5
4
3
2
1
0
TPCR
ch2 000039H
ch3 00003DH
Timer control status register - low
Address : ch0 000030H
ch1 000034H
ch2 000038H
ch3 00003CH
16-bit timer register - high / 16-bit reload register - high
Address : ch0 000033H
Bit no.
Read/write
(R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W)
Initial value
(X)
ch1 000037H
15
14
13
12
11
10
9
8
Bit no.
Read/write
(R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W)
Initial value
(X)
7
6
5
4
3
2
1
0
TMR/TMRLR
ch2 00003BH
ch3 00003FH
16-bit timer register - low / 16-bit reload register - low
Address : ch0 000032H
ch1 000036H
ch2 00003AH
ch3 00003EH