4 pwm output operations – NEC uPD78P078 User Manual

Page 264

Advertising
background image

264

CHAPTER 10 8-BIT TIMER/EVENT COUNTERS 5 AND 6

10.4.4 PWM output operations

Setting the 8-bit timer mode control registers (TMC5 and TMC6) as shown in Figure 10-14 allows operation as

PWM output. Pulses with the duty rate determined by the values preset in 8-bit compare registers (CR50 and CR60)

output from the TO5/P100/TI5 or TO6/P101/TI6 pin.

Select the active level of PWM pulse with bit 1 of the 8-bit timer mode control register 5 (TMC5) or bit 1 of the

8-bit timer mode control register 6 (TMC6).

This PWM pulse has an 8-bit resolution. The pulse can be converted into an analog voltage by integrating it

with an external low-pass filter (LPF). Count clock of the 8-bit timer register 5 (TM5) can be selected with the timer

clock select register 5 (TCL5) and count clock of the 8-bit timer register 6 (TM6) can be selected with the timer clock

select register 6 (TCL6).

PWM output enable/disable can be selected with bit 0 (TOE5) of TMC5 or bit 0 (TOE6) of TMC6.

Figure 10-14. 8-Bit Timer Control Register Settings for PWM Output Operation

Remarks 1. n = 5, 6

2. x : Don’t care

1

TCEn

1

TMCn6

0

0

x

LVSn LVRn TMCn1 TOEn

TMCn

x

0/1

1

TOn output enable

Sets active level

PWM mode

TMn operation enable

Advertising
This manual is related to the following products: