Download Print this page

Renesas M16C/50 Series User Manual page 417

Advertisement

M16C/5L Group, M16C/56 Group
18.3.2.1
Gate Function (Channel 6 and 7)
When the GT bit in the G1TMCRj register (j = 6 and 7) is 1 (gate function used), acceptance of trigger
inputs is disabled after the time measurement by the first trigger input.
When 1 is written to the GSC bit in the G1TMCRj register, acceptance of trigger inputs becomes
enabled again.
When the GOC bit in the G1TMCRj register is 1, acceptance of trigger inputs also becomes enabled
again by matching the base timer with the G1POk register (k = j - 2).
"(2) Example using the gate function" in Figure 18.13 "Prescaler and Gate Functions" shows the
operation example of this function.
18.3.3
Waveform Generation Function
A waveform is generated using the base timer value and the G1POj register value (j = 0 to 7). The
waveform generation function has the following three modes:
Single-phase waveform output mode
Inverted waveform output mode
Set/reset (SR) waveform output mode
In single-phase waveform output mode and inverted waveform output mode, compare match output is
selectable.
In all three modes, each channel output can be temporarily disabled and used as a programmable I/O
port when the waveform generation is in progress.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
18. Timer S
Page 380 of 803

Advertisement

loading