h8s-2138 Renesas Electronics Corporation., h8s-2138 Datasheet - Page 409

no-image

h8s-2138

Manufacturer Part Number
h8s-2138
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
MSTPCRH Bit 4—Module Stop (MSTP12): Specifies 8-bit timer channel 0 and 1 module stop
mode.
MSTPCRH Bit 0—Module Stop (MSTP8): Specifies 8-bit timer channel X and Y and timer
connection module stop mode.
13.3
13.3.1
The timer connection facility and TMRX can be used to decode a PWM signal in which 0 and 1
are represented by the pulse width. To do this, a signal in which a rising edge is generated at
regular intervals must be selected as the IHI signal.
The timer counter (TCNT) in TMRX is set to count the 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 threshold for
deciding the pulse width is written in TCORB. The PWM decoder contains a delay latch which
uses the IHI signal as data and compare-match signal B (CMB) as a clock, and the state of the IHI
signal (the result of the pulse width decision) at the compare-match signal B timing after TCNT is
reset by the rise of the IHI signal is output as the PDC signal. The pulse width setting using
TICRR and TICRF of TMRX can be used to determine the pulse width decision threshold.
Examples of TCR and TCORB settings are shown in tables 13.3 and 13.4, and the timing chart is
shown in figure 13.2.
MSTPCRH
Bit 4
MSTP12
0
1
MSTPCRH
Bit 0
MSTP8
0
1
Operation
PWM Decoding (PDC Signal Generation)
Description
8-bit timer channel 0 and 1 module stop mode is cleared
8-bit timer channel 0 and 1 module stop mode is set
Description
8-bit timer channel X and Y and timer connection module stop mode is cleared
8-bit timer channel X and Y and timer connection module stop mode is set
Section 13 Timer Connection [H8S/2138 Group]
Rev. 4.00 Jun 06, 2006 page 355 of 1004
REJ09B0301-0400
(Initial value)
(Initial value)

Related parts for h8s-2138