English
Language : 

M16C65 Datasheet, PDF (375/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
18.2.3 Timer Bi Register (TBi) (i = 0 to 5)
18. Timer B
Timer Bi Register (i = 0 to 5)
(b15) (b8)
b7
b0 b7
b0
Symbol
TB0
TB1
TB2
TB3
TB4
TB5
Address
0331h to 0330h
0333h to 0332h
0335h to 0334h
0311h to 0310h
0313h to 0312h
0315h to 0314h
Mode
Function
Timer mode
When n = set value,
Counter cycle: (n + 1)
fj
Event counter mode
When n = set value,
n + 1 count
Pulse period
measurement mode,
Pulse width
measurement mode
Set an initial value.
Measures a pulse period or width.
Read the counter value while counting
is in progress.
fj : Count source frequency
Access this register in 16-bit units.
After Reset
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
Setting Range
RW
0000h to FFFFh
RW
0000h to FFFFh
RW
0000h to FFFFh
RW
Event Counter Mode
The timer counts pulses from an external device or overflows or underflows of other timers.
Pulse Period Measurement Mode, Pulse Width Measurement Mode
Set these modes when the TBiS bit in the TABSR or TBSR register is set to 0 (count stops).
Read only (RO) when the TBiS bit in the TABSR or TBSR register is set to 1 (count starts).
The counter starts counting the count source at an active edge of the measurement pulse, transfers the
count value to a register at the next active edge, and continues counting.
The measurement result can be read by reading the TBi register when bits PPWFS12 to PPWFS10 in
the PPWFS1 register and bits PPWFS22 to PPWFS20 in the PPWFS2 register are 0.
While counting is in progress, the counter value can be read by reading the TBi register when bits
PPWFS12 to PPWFS10 and bits PPWFS22 to PPWFS20 are 1.
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 340 of 791