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

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
Section 17 Motor Control PWM Timer
Next Frame: When a compare match occurs between PWCNT1 and PWCYR1, data is transferred
from PWBFR1A to PWDTR1A, from PWBFR1C to PWDTR1C, from PWBFR1E to PWDTR1E,
and from PWBFR1G to PWDTR1G. PWCNT1 is reset and starts counting up from H'000. The
CMF bit in PWCR1 is set, and if the IE bit in PWCR1 has been set, an interrupt can be requested
or the DTC can be activated.
Stopping: When the CST bit in PWCR1 is cleared to 0, PWCNT1 is reset and stops. All PWM
outputs go low (or high if the corresponding bit in PWPR1 is set to 1).
17.4.2
PWM Channel 2 Operation
PWM waveforms are output from pins PWM2A to PWM2H as shown in figure 17.11.
Initial Settings: Set the PWM output polarity in PWPR2; enable the pins for PWM output with
PWOCR2; select the clock to be input to PWCNT2 with bits CKS2 to CKS0 in PWCR2; set the
PWM conversion cycle in PWCYR2; and set the first frame of data in PWBFR2A, PWBFR2B,
PWBFR2C, and PWBFR2D.
Activation: When the CST bit in PWCR2 is set to 1, a compare match between PWCNT2 and
PWCYR2 is generated. Data is transferred from PWBFR2A to PWDTR2A or PWDTR2E, from
PWBFR2B to PWDTR2B or PWDTR2F, from PWBFR2C to PWDTR2C or PWDTR2G, and
from PWBFR2D to PWDTR2D or PWDTR2H, according to the value of the TDS bit. PWCNT2
starts counting up. At the same time the CMF bit in PWCR2 is set, so that, if the IE bit in PWCR2
has been set, an interrupt can be requested or the DTC can be activated.
Rev. 5.00 Sep 22, 2005 page 642 of 1136
REJ09B0257-0500

Related parts for h8s-2646