Download Print this page

Renesas M16C/50 Series User Manual page 416

Advertisement

M16C/5L Group, M16C/56 Group
(1) Example using the prescaler function (G1TPRj register is 02h and the PR bit in the G1TMCRj register is 1)
fBT1
Base timer
INPC1_ j pin input signals, or
trigger signals after passing
the digital filter
Internal time
measurement trigger
Prescaler
G1IRj bit
in the G1IR register
G1TMj register
j = 6 and 7
Note:
1. This applies to the second or later prescaler cycle after the PR bit in the G1TMCRj register is set to 1 (prescaler function is used).
(2) Example using the gate function (bits GT and GOC in the G1TMCRj register are 1, and the gate function
is disabled by matching with the G1POk register)
fBT1
Base timer
IFEj bit in the G1FE register
INPC1_ j pin input signals, or
trigger signals after passing
the digital filter
Internal time
measurement trigger
G1POk register
match signal
Gate control signal
G1IRj bit
in the G1IR register
G1TMj register
j = 6 and 7; k = j - 2
Figure 18.13 Prescaler and Gate Functions
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
n-2
n-1
n
n+1
(1)
0
FFFFh
G1POk register value
0000h
n+2
n+3
n+4
n+5
n+6
n+7
2
1
To set the bit to 0, write 0 by a program
n
This trigger input is ignored
by gate function
Gate
Gate release
To set the bit to 0, write 0 by a program
n+8
n+9 n+10 n+11 n+12 n+13 n+14
0
Gate
Page 379 of 803
18. Timer S
2
n + 12

Advertisement

loading