112
7734Q–AVR–02/12
AT90PWM81/161
Then the frequency resolution is divided by 16. In the example above, the resolution equals
25Hz.
According to the ramp mode and the enhanced resolution mode (defined by PBFMn1:0), the
average frequency deviation Df can take three different values:
These values are applied according to the running mode and the enhanced resolution mode as
It must be noted that, in one and two ramps modes, it is possible to apply the FWM only on
pulse width while keeping a constant frequency.
Table 12-5.
Frequency deviation with Flank Width Modulation.
Notes:
1. The modulation is on the pulse width.
12.7.1
Frequency distribution
The frequency modulation is done by switching two frequencies in a 16 consecutive cycle frame.
These two frequencies are f
b1 and fb2 where fb1 is the nearest base frequency above the wanted
frequency and f
b2 is the nearest base frequency below the wanted frequency. The number of fb1
in the frame is (d-16) and the number of f
b2 is d. The fb1 and fb2 frequencies are evenly distrib-
uted in the frame according to a predefined pattern. This pattern can be as given in the following
table or by any other implementation which give an equivalent evenly distribution.
erated. This is the case if the bit PEOEPEn (PSC n End Of Enhanced Cycle Interrupt Enable) is
set. This allows:
To modify the modulation only on a new enhanced cycle start
To extend the enhanced modulation accuracy by software
PBFMn1:0
00
01
10
11
Running mode
RB
RB+RA
SB
SB+SA
Four Ramps
Df1
Df2
Df1
Df2
Two Ramps
Df1
Df2
0
One Ramp
Df1
0
Center aligned
Df2
fAVERAGE
16 d
–
16
---------------
fPLL
k
----------
×
d
16
------
fPLL
k 1
+
------------
×
+
=
Δf average
()
0
=
Δf1 average
()
fPSC
d
16kk 1
+
()
--------------------------
×
=
Δf2 average
()
fPSC
d
8kk 2
+
()
-----------------------
×
=