h8s-2646 Renesas Electronics Corporation., h8s-2646 Datasheet - Page 667

no-image

h8s-2646

Manufacturer Part Number
h8s-2646
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
17.4
17.4.1
PWM waveforms are output from pins PWM1A to PWM1H as shown in figure 17.10.
Initial Settings: Set the PWM output polarity in PWPR1; enable the pins for PWM output with
PWOCR1; select the clock to be input to PWCNT1 with bits CKS2 to CKS0 in PWCR1; set the
PWM conversion cycle in PWCYR1; and set the first frame of data in PWBFR1A, PWBFR1C,
PWBFR1E, and PWBFR1G.
Activation: When the CST bit in PWCR1 is set to 1, a compare match between PWCNT1 and
PWCYR1 is generated. Data is transferred from PWBFR1A to PWDTR1A, from PWBFR1C to
PWDTR1C, from PWBFR1E to PWDTR1E, and from PWBFR1G to PWDTR1G. PWCNT1
starts counting up. At the same time the CMF bit in PWCR1 is set, so that, if the IE bit in PWCR1
has been set, an interrupt can be requested or the DTC can be activated.
Waveform Output: The PWM outputs selected by the OTS bits in PWDTR1A, C, E, and G go
high when a compare match occurs between PWCNT1 and PWCYR1. The PWM outputs not
selected by the OTS bits are low. When a compare match occurs between PWCNT1 and
PWDTR1A, C, E, and G, the corresponding PWM output goes low. If the corresponding bit in
PWPR1 is set to 1, the output is inverted.
PWCYR1
PWBFR1A
PWDTR1A
PWM1A
PWM1B
Operation
PWM Channel 1 Operation
OTS (PWDTR1A) = 0
Figure 17.10 PWM Channel 1 Operation
OTS (PWDTR1A) = 1
Rev. 5.00 Sep 22, 2005 page 641 of 1136
OTS (PWDTR1A) = 0
Section 17 Motor Control PWM Timer
OTS (PWDTR1A) = 1
REJ09B0257-0500

Related parts for h8s-2646