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
Содержание PD78076
Страница 2: ...2 MEMO ...
Страница 12: ...12 MEMO ...
Страница 48: ...48 MEMO ...
Страница 64: ...64 MEMO ...
Страница 82: ...82 MEMO ...
Страница 100: ...100 MEMO ...
Страница 130: ...130 MEMO ...
Страница 180: ...180 MEMO ...
Страница 222: ...222 MEMO ...
Страница 248: ...248 MEMO ...
Страница 288: ...288 MEMO ...
Страница 308: ...308 MEMO ...
Страница 364: ...364 MEMO ...
Страница 494: ...494 MEMO ...
Страница 526: ...526 MEMO ...
Страница 544: ...544 MEMO ...
Страница 558: ...558 MEMO ...
Страница 580: ...580 MEMO ...
Страница 596: ...596 MEMO ...
Страница 598: ...598 MEMO ...
Страница 626: ...626 MEMO ...