Renesas M16C FAMILY series Hardware Manual page 173

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C
Table 13.6 Register Settings Associated with the Time Measurement Function
Register
G1TMCRj
CTS1 to CTS0
DF1 to DF0
GT, GOC, GSC
PR
G1TPRk
-
G1FS
FSCj
G1FE
IFEj
j = 0 to 7
k = 6, 7
Bit configurations and function varys with channels used.
Registers associated with the time measurement function must be set after setting registers associated with the base timer.
INPC1j pin input
Base timer
G1TMj register
G1IRj bit
The above applies to the following condition.
The CTS1 to CTS0 bits in the G1TMCRj registers are set to "01
PR bit is set to "0" (no prescaler used) and the GT bit is set to"0" (no gate function
used).
The RTS4, RTS2, and RTS1 bits in the G1BCR0 and G1BCR1 registers are set to "0"
(no base timer reset). The UD1 to UD0 bits are set to "00
Set the base timer to "0000
when the base timer value matches the G1PO0 register setting. The base timer is set to "0000
after it reaches the G1PO0 register value + 2.
Figure 13.19 Time Measurement Function (1)
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
Bit
Select time measurement trigger
Select the digital filter function
Select the gate function
Select the prescaler function
Setting value of prescaler
Set to "1" (time measurement function)
Set to "1" (channel j function enabled)
FFFF
16
n
p
m
0000
16
m
When setting to "0", write "0" by program
j=0 to 7
G1IRj bit : Bits in the G1IR register
" (setting the RST1 bit to "1", and the RST4 and RST2 bits to "0"),
16
page 153
f o
3
8
5
Function
p
n
" (rising edge). The
2
" (counter increment mode).
2
13. Timer S
"
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents