Timer Bi Register (Tbi) (I = 0 To 5) - Renesas M16C/64A Series User Manual

Table of Contents

Advertisement

M16C/64A Group
18.2.3

Timer Bi Register (TBi) (i = 0 to 5)

Timer Bi Register (i = 0 to 5)
(b15)
(b8)
b7
b0
b7
fj : Count source frequency
Access this register in 16-bit units.
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 0 (count stopped).
These modes become read only (RO) when the TBiS bit in the TABSR or TBSR register is 1 (count
started).
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, the counter value can be read by reading the TBi register when bits PPWFS12 to
PPWFS10 and bits PPWFS22 to PPWFS20 are 1.
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
Symbol
b0
TB0
TB1
TB2
TB3
TB4
TB5
Mode
When n = setting value,
Timer mode
counter cycle: (n + 1)
When n = setting value,
Event counter mode
n + 1 count
Pulse period
Set an initial value.
measurement mode,
Measures a pulse period or width.
Pulse width
Read the counter value while counting.
measurement mode
Address
0331h to 0330h
0333h to 0332h
0335h to 0334h
0311h to 0310h
0313h to 0312h
0315h to 0314h
Function
0000h to FFFFh
fj
0000h to FFFFh
0000h to FFFFh
18. Timer B
Reset Value
XXXXh
XXXXh
XXXXh
XXXXh
XXXXh
XXXXh
Setting Range
RW
RW
RW
RW
Page 305 of 800

Advertisement

Table of Contents
loading

Table of Contents