Renesas M16C/29 Series Hardware Manual page 158

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group
Time measurement control register j (j=0 to 7)
b7
b6
b5
b4
Notes :
1. When the PCLK0 bit in the PCLKR register is "1", the selected clock source is f1. When the PCLK0
bit is "0", the selected clock source is f2.
2. This bit is in the G1TMCR6 and G1TMCR7 registers.
All bits 4 to 7 in the G1TMCR0 to G1TMCR5 registers should be set to "0".
3. These bits are available when setting the GT bit to "1".
4. The GOC bit is set to "0" after the gate function is cleared. See Figure 13.8 about the G1POk register
(k=4 when j=6 and k=5 when j=7).
Time measurement prescale register j (j=6,7)
b7
Note 1: The value which is written in this register is reflected synchronizing with the base timer count
source f
Note 2: The first prescaler, after the PR bit in the G1TMCRj register changes "0" (prescaler function
unused) to "1" (prescaler function used), may be divided by n, not by n+1. Subsequent prescalers
are divided by n+1.
Figure 13.6. G1TMCR0 to G1TMCR7 Registers, and G1TPR6 to G1TPR7 Registers
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
b3
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 (Note 2)
Gate function clear
GOC
select bit (Notes 2, 3, 4)
Gate function clear
GSC
bit (Notes 2, 3)
Prescaler function
PR
select bit (Note 2)
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 (Note 2)
.
BT1
page 138 of 402
13. Timer S (Input Capture / Output Compare)
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
: Avoid this setting
1
0
: f
BT1
1
1
: f
or f
1
0 : Gate function not used
1 : Gate function used
0 : Not cleared
1 : The gate is cleared when the base
timer matches the G1POk register
When setting the GSC bit to "1", the
gate is cleared.
0 : Not used
1 : Used
(Note 1)
Address
, 0325
16
16
Function
When reset
, 031B
0000 0000
16
16
2
, 031F
0000 0000
16
16
2
Function
RW
RW
RW
RW
RW
(Note 1)
2
RW
RW
RW
RW
When reset
0000 0000
2
Setting range
RW
00
to FF
RW
16
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents