141
4317I–AVR–01/08
AT90PWM2/3/2B/3B
fractional divider number. The resulting output frequency is the average of the frequencies in the
frame. The fractional divider (d) is given by OCRnRB[15:12].
The PSC output period is directly equal to the PSCOUTn0 On Time + Dead Time (OT0+DT0)
and PSCOUTn1 On Time + DeadTime (OT1+DT1) values. These values are 12 bits numbers.
The frequency adjustment can only be done in steps like the dedicated counters. The step width
is defined as the frequency difference between two neighboring PSC frequencies:
with k is the number of CLK
PSC
period in a PSC cycle and is given by the following formula:
with f
OP
is the output operating frequency.
Exemple, in normal mode, with maximum operating frequency 160 kHz and f
PLL
= 64 Mhz, k
equals 400. The resulting resolution is Delta F equals 64MHz / 400 / 401 = 400 Hz.
In enhanced mode, the output frequency is the average of the frame formed by the 16 consecu-
tive cycles.
f
b1
and f
b2
are two neightboring base frequencies.
Then the frequency resolution is divided by 16. In the example above, the resolution equals 25
Hz.
Δ
f
f
1
f
2
–
f
PLL
k
----------
f
PLL
k
1
+
------------
–
f
PSC
1
k k
1
+
(
)
--------------------
×
=
=
=
n
f
PSC
f
OP
----------
=
f
AVERAGE
16
d
–
16
---------------
f
b
1
×
d
16
------
f
b
2
×
+
=
f
AV ERAGE
16
d
–
16
---------------
f
PLL
n
----------
×
d
16
------
f
PLL
n
1
+
------------
×
+
=