Datasheet
144
4317K–AVR–03/2013
AT90PWM2/3/2B/3B
16.7.2 Modes of Operation
16.7.2.1 Normal Mode
The simplest mode of operation is the normal mode. See Figure 16-6.
The active time of PSCOUTn0 is given by the OT0 value. The active time of PSCOUTn1 is given
by the OT1 value. Both of them are 12 bit values. Thanks to DT0 & DT1 to adjust the dead time
between PSCOUTn0 and PSCOUTn1 active signals.
The waveform frequency is defined by the following equation:
16.7.2.2 Enhanced Mode
The Enhanced Mode uses the previously described method to generate a high resolution
frequency.
Figure 16-13. Enhanced Mode, Timing Diagram
The supplementary step in counting to generate f
b2
is added on the PSCn0 signal while needed
in the frame according to the fractional divider. See Table 16-5, “Distribution of fb2 in the modu-
lated frame,” on page 143.
The waveform frequency is defined by the following equations:
d is the fractional divider factor.
f
PSCn
1
PSCnCycle
------------------------------=
f
CLK_PSCn
OT0 OT1 DT0 DT1+++
----------------------------------------------------------------------=
PSCOUTn0
T1
Period
PSCOUTn1
OT0
OT1
DT1
DT0
T2
OT0
OT1+1
DT1
DT0
DT0
f1
PSCn
1
T
1
------
f
CLK_PSCn
OT0 OT1 DT0 DT1+++
----------------------------------------------------------------------==
f2
PSCn
1
T
2
------
f
CLK_PSCn
OT0 OT1 DT0 DT11++++
--------------------------------------------------------------------------------==
f
AVERAGE
16 d–
16
---------------
f1
PSCn
d
16
------
f2
PSCn
+=