R01UH0136EJ0210 Rev.2.10
Page 319 of 800
Jul 31, 2012
M16C/64A 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.
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.
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...