h8s-2161b Renesas Electronics Corporation., h8s-2161b Datasheet - Page 384

no-image

h8s-2161b

Manufacturer Part Number
h8s-2161b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 13 Timer Connection
13.4.2
The timer connection facility and TMR_X can be used to generate signals with different duty
cycles and rising/falling edges (clamp waveforms) in synchronization with the input signal (IHI
signal). Three clamp waveforms can be generated: the CL1 to CL3 signals. In addition, the CL4
signal can be generated using TMR_Y.
The CL1 signal rises simultaneously with the rise of the IHI signal, and when the CL1 signal is
high, the CL2 signal rises simultaneously with the fall of the IHI signal. The fall of both the CL1
and CL2 signals can be specified by TCORA. The rise of the CL3 signal can be specified as
simultaneous with the sampling of the fall of the IHI signal using the system clock, and the fall of
the CL3 signal can be specified by TCORC. The CL3 signal can also fall when the IHI signal
rises.
TCNT in TMR_X is set to count internal clock pulses and to be cleared on the rising edge of the
external reset signal (IHI signal).
The value to be used as the CL1 signal pulse width is written in TCORA. Write a value of H'02 or
more in TCORA when internal clock is selected as the TMR_X counter clock, and a value or
H'01 or more when /2 is selected. When internal clock is selected, the CL1 signal pulse width
is (TCORA set value + 3
this pulse width is greater than the IHI signal pulse width.
The value to be used as the CL3 signal pulse width is written in TCORC. TICR in TMR_X
captures the value of TCNT at the inverse of the external reset signal edge (in this case, the falling
edge of the IHI signal). The timing of the fall of the CL3 signal is determined by the sum of the
Rev. 3.00 Mar 21, 2006 page 330 of 788
REJ09B0300-0300
IHI signal
PDC signal
TCORB
(threshold)
TCNT
Clamp Waveform Generation (CL1/CL2/CL3 Signal Generation)
Counter reset
caused by
IHI signal
Figure 13.2 Timing Chart for PWM Decoding
IHI signal is tested
at compare-match
0.5). When the CL2 signal is used, the setting must be made so that
Counter clear
caused by
TCNT overflow
At the 2nd compare-match,
IHI signal is not tested

Related parts for h8s-2161b