Download Print this page

Renesas M16C/50 Series User Manual page 329

Advertisement

M16C/5L Group, M16C/56 Group
Timer Mode
Timer Bi Mode Register (i = 0 to 2)
b7
b6 b5 b4
b3
b2
b1
0
0
0
TCK1 and TCK0 (Count source select bit) (b7-b6)
These bits are enabled when the TCS3 or TCS7 bit in registers TBCS0 to TBCS1 is set to 0 (bits TCK0
to TCK1 enabled).
Select f1TIMAB or f2TIMAB by the PCLK0 bit in the PCLKR register.
Count operations
0000h
TBiS bit in the
TABSR register
IR bit
in the TBiIC register
i = 0 to 2
The above assumes the following:
The value in the TBi register (n) = 0004h
Figure 16.4
Operation Example in Timer Mode
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Symbol
b0
TB0MR to TB2MR
0
Bit Symbol
Bit Name
TMOD0
Operation mode select bit
TMOD1
MR0
Set to 0 in timer mode.
MR1
No register bit. If necessary, set to 0. The read value is undefined.
(b4)
Write 0 in timer mode.
MR3
The read value is undefined in timer mode.
TCK0
Count source select bit
TCK1
Count start
n
Address
033Bh to 033Dh
b1 b0
0
0 : Timer mode
b7
b6
0
0 : f1TIMAB or f2TIMAB
0
1 : f8TIMAB
1
0 : f32TIMAB
1
1 : fC32
Underflow
n+1
and reload
Set to 0 by accepting an interrupt request, or by a program.
Reset Value
00XX 0000b
Function
Count stop
by TBiS bit
Page 292 of 803
16. Timer B
RW
RW
RW
RW
RW
RO
RW
RW

Advertisement

loading