R01UH0092EJ0110 Rev.1.10
Page 316 of 807
Jul 31, 2012
M16C/64C Group
18. Timer B
TCK1 and TCK0 (Count source select bit) (b7-b6)
These bits are enabled when the TCS3 or TCS7 bit in registers TBCS0 to TBCS3 is set to 0 (bits TCK0
to TCK1 enabled).
Select f1TIMAB or f2TIMAB by the PCLK0 bit in the PCLKR register.
Figure 18.4
Operation Example in Timer Mode
b7
0
0
0
0
b6 b5 b4
b1
b2
b3
b0
Function
Bit Symbol
Bit Name
RW
—
—
(b4)
RW
b1 b0
0 0 : Timer mode
Operation mode select bit
RW
TMOD1
TMOD0
RO
MR3
RW
TCK0
RW
Set to 0 in timer mode.
RW
MR1
MR0
No register bit. If necessary, set to 0. The read value is undefined.
Write 0 in timer mode.
The read value is undefined in timer mode.
Count source select bit
b7 b6
0 0 : f1TIMAB or f2TIMAB
0 1 : f8TIMAB
1 0 : f32TIMAB
1 1 : fC32
RW
TCK1
Timer Mode
Timer Bi Mode Register (i = 0 to 5)
Symbol
Address
Reset Value
TB0MR to TB2MR
033Bh to 033Dh
00XX 0000b
TB3MR to TB5MR
031Bh to 031Dh
00XX 0000b
Count start
n
Count operations
0000h
IR bit
in the TBiIC register
Count stop
by TBiS bit
Underflow
and reload
n+1
Set to 0 by accepting an interrupt request, or by a program.
i = 0 to 5
The above assumes the following:
•
The value in the TBi register (n) = 0004h
TBiS bit in the
TABSR register or
TBSR register
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...