EasyManuals Logo
Home>Renesas>Microcontrollers>M16C/29 Series

Renesas M16C/29 Series User Manual

Renesas M16C/29 Series
501 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #184 background imageLoading...
Page #184 background image
13. Timer S
puorG92/C61M
page 158
854fo7002,03.raM21.1.veR
2110-1010B90JER
Table 13.6 Register Settings Associated with the Time Measurement Function
Register Bit Function
G1TMCRj CTS1 to CTS0 Select time measurement trigger
DF1 to DF0 Select the digital filter function
GT, GOC, GSC Select the gate function
PR Select the prescaler function
G1TPRk - Setting value of prescaler
G1FS FSCj Set to 1 (time measurement function)
G1FE IFEj Set to 1 (channel j function enabled)
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.
Figure 13.19 Time Measurement Function (1)
FFFF
16
p
p
n
n
m
m
Base timer
INPC1j pin input
0000
16
G1TMj register
G1IRj bit
When setting to 0, write 0 by program
j = 0 to 7
G1IRj bit: Bits in the G1IR register
Set the base timer to 0000
16
(setting the RST1 bit to 1, and bits RST4 and RST2 to 0),
when the base timer value matches the G1PO0 register setting. The base timer is set to 0000
16
after it reaches the G1PO0 register value + 2.
The above applies to the following condition.
Bits CTS1 to CTS0 in the G1TMCRj registers are set to 01
2
(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 in registers G1BCR0 and G1BCR1 are set to 0 (no base
timer reset). Bits UD1 to UD0 bits are set to 00
2
(counter increment mode).

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas M16C/29 Series and is the answer not in the manual?

Renesas M16C/29 Series Specifications

General IconGeneral
BrandRenesas
ModelM16C/29 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals