UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 348

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
10.8.4 PPG Output
(1) Basic operation of PPG output
where CR20 = CR21.
308
Figure 10-29 shows an example of PPG output using timer register 2 (TM2), Figure 10-30 shows an example of the case
This function outputs a square-wave with the time determined by compare register CR21 value as one cycle, and the
time determined by compare register CR20 value as the pulse width. The PWM output PWM cycle is made variable.
This signal can only be output from timer output (TO2).
When this function is used, it is necessary to set the CLR21 bit of capture/compare control register 2 (CRC2) to 1 and
the CLR22 bit to 0, and to set the CMD2 bit of timer control register 1 (TMC1) to 0.
The pulse cycle and pulse width are as shown below.
• PPG cycle = (CR21 + 1)
• PPG pulse width = CR20
• Duty =
* CR20 and CR21 cannot be set to 0.
PPG pluse width
PPG cycle
=
x/f
x/f
CR
XX
XX
CR
; x = 8, 16, 32, 64, 128, 256, 512, 1024, 2048
21
where 1
20
CHAPTER 10 TIMER/COUNTER 2
1
*
CR20
CR21*

Related parts for UPD784026