beautypg.com

Chapter 7 timer/counter units – NEC PD78214 User Manual

Page 212

background image

183

Chapter 7 Timer/Counter Units

7

Table 7-17 PWM Output on TO2 and TO3 (f

CLK

= 6 MHz)

Count clock

f

CLK

/16

f

CLK

/32

f

CLK

/64

f

CLK

/128

f

CLK

/256

f

CLK

/512

Minimum pulse width

2.7

5.3

10.7

21.3

42.7

85.3

PWM period (ms)

0.7

1.4

2.7

5.5

10.9

21.8

PWM frequency (Hz)

1465

732

366

183

92

46

Fig. 7-86 shows an example of 2-channel PWM output. Fig. 7-87 shows PWM output when FFH is set in the CR20
compare register.

Fig. 7-86 Example of PWM Output Using TM2

FFH

CR20

CR20

CR20

CR21

CR21

TM2
count value

0H

INTC20

INTC21

TO2

TO3

FFH

FFH

Remark ALV2 = 0, ALV3 = 0

This manual is related to the following products: