UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 341

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
10.8.3 PWM Output
(1) Basic operation of PWM output
In this mode, a PWM signal with the period in which timer register 2 (TM2) reaches a full count used as one cycle is
output. The timer output (TO2) pulse width is determined by the value of compare register (CR20), and the timer output
(TO3) pulse width is determined by the value of compare register (CR21). When this function is used, the CLR21 bit
and CLR22 bit of capture/compare control register 2 (CRC2) and the CMD2 bit of timer control register 1 (TMC1) must
be set to 0.
The pulse cycle and pulse width are as shown below.
(a) BW2 = 0
(b) BW2 = 1
• PWM cycle = 256
• PWM pulse width = CR2n
• Duty =
• PWM cycle = 65536
• PWM pulse width = CR2n
• Duty =
* The CR2n cannot be set to 0.
* The CR2n cannot be set to 0.
PWM pulse width
PWM pulse width
PWM cycle
PWM
x/f
XX
x/f
XX
=
=
x/f
x/f
CR n
65536
CR n
256
XX
XX
CHAPTER 10 TIMER/COUNTER 2
2
2
*; x = 8, 16, 32, 64, 128, 256, 512, 1024, 2048
*; x = 8, 16, 32, 64, 128, 256, 512, 1024, 2048
301

Related parts for UPD784026