h8s-2158 Renesas Electronics Corporation., h8s-2158 Datasheet - Page 410

no-image

h8s-2158

Manufacturer Part Number
h8s-2158
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 14 Timer Connection
14.4
14.4.1
The timer connection facility and TMR_X 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 TMR_X 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 first 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 TMR_X can be used to determine the pulse
width decision threshold. Examples of TCR and TCORB settings of TMR_X are shown in tables
14.4 and 14.5, and the PWM decoding timing chart is shown in figure 14.2.
Table 14.4 Examples of TCR Settings
Table 14.5 Examples of TCORB (Pulse Width Threshold) Settings
Rev. 3.00 Jan 25, 2006 page 358 of 872
REJ09B0286-0300
Bit
7
6
5
4, 3
2 to 0
H'07
H'0F
H'1F
H'3F
H'7F
Operation
PWM Decoding (PDC Signal Generation)
CKS2 to CKS0
Abbreviation
CMIEB
CMIEA
OVIE
CCLR1, CCLR0
0.8 µs
1.6 µs
3.2 µs
6.4 µs
12.8 µs
: 10 MHz
Contents
0
0
0
11
001
0.67 µs
1.33 µs
2.67 µs
5.33 µs
10.67 µs
: 12 MHz
Description
Interrupts due to compare-match and overflow are
disabled
TCNT is cleared by the rising edge of the external
reset signal (IHI signal)
Incremented on internal clock ( )
0.5 µs
1.0 µs
2.0 µs
4.0 µs
8.0 µs
: 16 MHz
0.4 µs
0.8 µs
1.6 µs
3.2 µs
6.4 µs
: 20 MHz

Related parts for h8s-2158