
R01UH0092EJ0110 Rev.1.10
Page 321 of 807
Jul 31, 2012
M16C/64C Group
18. Timer B
Table 18.10
Registers and Settings in Pulse Period/Pulse Width Measurement Modes
(1)
Register
Bit
Function and Setting
PCLKR
PCLK0
Select the count source.
CPSRF
CPSR
Write 1 to reset the clock prescaler.
PCLKSTP1
PCKSTP11
Set to 0 when using f1 or main clock.
PCKSTP17
Select the count source.
TBi1
15 to 0
Measurement result can be read when the bits in the PPWFS1 or
PPWFS2 register corresponding to timer Bi are 1.
PPWFS1 to
PPWFS2
PPWFS12 to
PPWFS10
PPWFS22 to
PPWFS20
Set to 1 to read the counter value while counting.
TBCS0 to TBCS3
7 to 0
Select the count source.
TABSR
TBSR
TBiS
Set to 1 when starting counting.
Set to 0 when stopping counting.
TBi
15 to 0
Set the initial value.
The measurement result can be read when the bits in the
PPWFS1 or PPWFS2 register corresponding to timer Bi are 0.
The counter value can be read when the bits in the PPWFS1 or
PPWFS2 register corresponding to timer Bi are 1.
TBiMR
7 to 0
Refer to the TBiMR register below.
i = 0 to 5
Note:
1.
This table does not describe a procedure.
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...