Renesas M16C FAMILY series Hardware Manual page 160

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
Time Measurement Control Register j (j=0 to 7)
b7
b6
b5
b4
b3
NOTES:
1. When the PCLK0 bit in the PCLKR register is set to "0", the count source is f
PCLK0 bit is set to "1", the count source is f
2. These bits are in the G1TMCR6 and G1TMCR7 registers. Set all bits 4 to 7 in the G1TMCR0 to
G1TMCR5 registers to "0".
3. These bits are enabled when the GT bit is set to "1".
4. The GOC bit is set to "0" after the gate function is cleared. See Figure 13.7 for details on the G1POk
register (k=4 when j=6 and k=5 when j=7).
Time Measurement Prescale Register j (j=6,7)
b7
NOTES:
1. The G1TPR6 to G1TPR7 registers reflect the base timer value, synchronizing with the count source
f
cycles.
BT1
2. The first prescaler, after the PR bit in the G1TMCRj register is changed from "0" (not used) to "1"
(used), may be divided by n, rather than n+1. The subsequent prescaler is divided by n+1.
Figure 13.5 G1TMCR0 to G1TMCR7 Registers, and G1TPR6 to G1TPR7 Registers
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
b2
b1
b0
Symbol
G1TMCR0 to G1TMCR3
G1TMCR4 to G1TMCR7
Bit
Symbol
CTS0
Time Measurement
Trigger Select Bit
CTS1
DF0
Digital Filter Function
Select Bit
DF1
Gate Function
GT
Select Bit
Gate Function Clear
GOC
Select Bit
Gate Function Clear
GSC
(2, 3)
Bit
Prescaler Function
PR
Select Bit
b0
Symbol
G1TPR6 to G1TPR7 0324
As the setting value is n, time is measured when-
ever a trigger input is counted by n+1
page 140
f o
3
8
5
Address
0318
, 0319
, 031A
16
16
031C
, 031D
, 031E
16
16
Bit Name
b1
b0
0
0
: No time measurement
0
1
: Rising edge
1
0
: Falling edge
1
1
: Both edges
b3
b2
0
0
: No digital filter
0
1
: Do not set to this value
1
0
: f
BT1
1
1
: f
1
0 : Gate function is not used
(2)
1 : Gate function is used
0 : Not cleared
1 : The gate is cleared when the base
(2, 3, 4)
timer matches the G1POk register
The gate is cleared by setting the
GSC bit to "1"
0 : Not used
(2)
1 : Used
cycles.
1
(1)
Address
, 0325
16
16
Function
(2)
After Reset
, 031B
00
16
16
16
, 031F
00
16
16
16
Function
2 (1)
or f
cycles. And when the
2
After Reset
00
16
Setting Range
RW
00
to FF
RW
16
16
13. Timer S
RW
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents