Download Print this page

Renesas M16C/50 Series User Manual page 334

Advertisement

M16C/5L Group, M16C/56 Group
Table 16.10
Registers and Settings in Pulse Period/Pulse Width Measurement Modes
Register
PCLKR
CPSRF
TBi1
PPWFS1
TCKDIVC0
TBCS0 to TBCS1
TABSR
TBi
TBiMR
i = 0 to 2
Note:
1.
This table does not describe a procedure.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Bit
PCLK0
Select the count source.
CPSR
Write 1 to reset the clock prescaler.
Measurement result can be read when the bits in the PPWFS1
15 to 0
register corresponding to timer Bi are 1.
PPWFS12 to
PPWFS10
Set to 1 to read the counter value while counting.
TCDIV00
Select the clock used prior to timer AB frequency dividing.
7 to 0
Select the count source.
Set to 1 when starting counting.
TBiS
Set to 0 when stopping counting.
Set the initial value.
The measurement result can be read when the bits in the
15 to 0
PPWFS1 register corresponding to timer Bi are 0.
The counter value can be read when the bits in the PPWFS1
register corresponding to timer Bi are 1.
7 to 0
Refer to the TBiMR register below.
Function and Setting
16. Timer B
(1)
Page 297 of 803

Advertisement

loading