Download Print this page

Renesas M16C/50 Series User Manual page 414

Advertisement

M16C/5L Group, M16C/56 Group
Table 18.11
Time Measurement Function Associated Registers
Register
G1TMj
CTS1 and CTS0
G1TMCRj
G1TMCRk
G1TPRk
G1FS
G1FE
G1POCRp
MOD1 and MOD0 Set to 00b.
G1POp
G1FS
G1FE
G1OER
G1IOR1
G1CBR0
j = 0 to 7; k = 6 and 7; p = k - 2
Notes:
1.
This table does not describe a procedure.
2.
Set when bits GT and GOC in the G1TMCRk register are 1.
INPC1_ j pin input
Base timer
G1TMj register
G1IRj bit
in the G1IR register
j = 0 to 7
The above assumes the following:
• Bits CTS1 and CTS0 in the G1TMCRj register are 01b (time measurement is triggered at rising edge), the PR bit is 0 (prescaler is
not used), and the GT bit is 0 (gate function is not used).
• The RST4 bit in the G1BCR0 register and bits RST2 and RST1 in the G1BCR1 register are 0 (base timer does not reset). Bits
UD1 and UD0 are 00b (increment).
Figure 18.11 Time Measurement Function (1/2)
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Bit
Time measurement result can be read.
Select a time measurement trigger.
Select whether the digital filter function is used. If used, select a
DF1 and DF0
sampling clock to use for the function.
GT, GOC, GSC
Select if the gate function is used.
PR
Select whether the prescaler function is used.
Set a value if the prescaler function is used.
FSCj
Set to 1 (time measurement function selected).
IFEj
Set to 1 (channel j function enabled).
Set a gate release timing.
FSCp
Set to 0.
IFEp
Set to 1.
EOCp
Set to 1.
IOp1 and IOp0
Set to 00b.
CH7INSEL
Select a pin to allocate INPC1_7.
FFFFh
n
p
m
0000h
m
(1)
Function
(2)
(2)
(2)
(2)
(2)
(2)
n
To set this bit to 0, write 0 by a program
18. Timer S
p
Page 377 of 803

Advertisement

loading