Renesas M16C/29 Series Hardware Manual page 171

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

Advertisement

M16C/29 Group
Table 13.4.2. 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 configuration and function vary depending on which channel is used.
Registers associated with the time measurement function should be set after setting registers associated with the base time.
INPC1j pin input
Base timer
G1TMj register
G1IRj bit
The above applies to the following condition.
When the base timer matches the G1PO0 register and is set to "0000
bit to "1", and the RST4 and RST2 bits to "0"), the base timer is set to "0000
reaches a setting value of the G1PO0 register+2.
Figure 13.4.1. Time Measurement Function (1)
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
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
j=0 to 7
G1IRj bit : Bits in the G1IR register
The CTS1 to CTS0 bits in the G1TMCRj registers are set to "01
is trigger on the rising edge). The PR bit is set to "0" (no prescaler used) and the GT bit
is set to"0" (no gate function used).
Bits RTS4, RTS2, and RTS1 of the G1BCR0 and G1BCR1 registers are set to "0" (no
base timer reset). The UD1 to UD0 bits are set to "00
page 151 of 402
13. Timer S (Input Capture / Output Compare)
Function
m
n
When setting to "0", write "0" by program
" (counter increment mode).
2
p
" (time measurement
2
" (setting the RST1
16
" after it
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents