UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 244

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
8.7.4 PPG Output
(1) Basic Operation of PPG Output
204
Remark ALV0 = 0, ALV1 = 0
This function outputs a square-wave with the time determined by compare register CR01 value as one cycle, and the time
determined by compare register CR00 value as the pulse width. The PWM cycle output by the PWM is made variable. This
signal can only be output from the timer output (TO0).
When this function is used, the CLR01 bit of capture/compare control register 0 (CRC0) must be set to 1.
The pulse cycle and pulse width are as shown below.
• PPG cycle = (CR01 + 1)
• PPG pulse width = CR00
• Duty =
Figure 8-23 shows an example of PPG output using timer register 0 (TM0), Figure 8-24 shows an example of the case where
CR00 = CR01.
* 0 cannot be assigned to either CR00 or CR01.
PPG pulse width
TO1
(Timer Output)
TO0
(PPG Output)
PPG cycle
TM0
Count Value
INTC00
INTC01
where 1
0H
Count Start
x/f
=
x/f
XX
Figure 8-23 Example of PPG Output Using TM0
CR00
XX
CR01 + 1
; x = 8, 16, 32, 64, 128, 256, 512, 1024, 2048
CR00
CR01 *
CHAPTER 8 TIMER/COUNTER 0
*
CR00
CR01
Pulse
Width
Pulse Cycle
CR00
CR01
CR00
CR01

Related parts for UPD784026