English
Language : 

M16C30P_07 Datasheet, PDF (127/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES
M16C/30P Group
14. Timers
Timer Bi Mode Register (i=0 to 2)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
Address
TB0MR to TB2MR
039Bh to 039Dh
Bit Symbol
Bit Name
Operation Mode Select Bit
TMOD0
TMOD1
After Reset
00XX0000b
Function
b1 b0
0 0 : Timer mode
0 1 : Event counter mode
1 0 : Pulse period measurement mode,
pulse w idth measurement mode
1 1 : Do not set to this value
MR0 —
MR1
Function varies w ith each operation mode
MR2
MR3
TCK0
TCK1
NOTES :
1. Timer B0.
2. Timer B1, Timer B2.
Count Source Select Bit
Function varies w ith each operation mode
RW
RW
RW
RW
RW
RW(1)
—(2)
RO
RW
RW
Timer Bi Register (i=0 to 2)(1)
(b15)
(b8)
b7
b0 b7
b0
Mode
Symbol
TB0
TB1
TB2
Address
0391h, 0390h
0393h, 0392h
0395h, 0394h
Function
After Reset
Indeterminate
Indeterminate
Indeterminate
Setting Range RW
Timer Mode
Divide the count source by n + 1 0000h to FFFFh
w here n = set value
RW
Event Counter Mode
Divide the count source by n + 1 0000h to FFFFh
w here n = set value (2)
RW
Pulse Period Measurement Mode, Measures a pulse period or w idth —
Pulse Width Measurement Mode
RO
NOTES :
1. The register must be accessed in 16-bit units.
2. The timer counts pulses from an external device or overflow s or underflow s of other timers.
Figure 14.16 TBiMR and TBi Registers
Rev.1.22 Mar 29, 2007 Page 111 of 291
REJ09B0179-0122