
4. Clock Sources
A31G22x Clock Setting Guide
18
4.5.2.
Calculating PLL Output Frequency
PLL of A31G22x series can set the output frequency, f
OUT
, in 1MHz increments accurately. The formula
for the f
IN
is introduced below. Input range of the f
IN
frequency can be ranging from 1MHz to 3MHz,
however, it is recommended to be up to 2MHz:
𝑓
IN
=
𝑓
PLLINCLK
(R + 1)
,
Where 1MHz ≤ 𝑓
IN
≤ 3MHz (Recommanded 𝑓
IN
= 2MHz)
At this time, the range of f
VCO
output frequency should be set to 200MHz or less, and the calculation
formula is shown below:
𝑓
VCO
= 𝑓
IN
× (N
1
+ 1), 𝑓
VCO
≤ 200MHz
The SCU_PLLCON register also supports the Doubler function which can double the f
VCO
output through
the bit setting of VCOMODE. When using this doubler function, the output of f
VCOx2
should be set to
250MHz or less:
𝑓
𝑉𝐶𝑂∗2
= 𝑓
VCO
× (D + 1),
𝑓
VCO
∗ 2 ≤ 250MHz,
𝑖𝑓 D = 1
As a result, the final frequency of PLL, f
PLLOUT
, can be obtained from the formula below using the formula
above:
𝑓
PLLOUT
=
𝑓
PLLINCLK
× (N
1
+ 1)
(R + 1) × (N
2
+ 1) × (P + 1)
× (D + 1) =
𝑓
IN
× (N
1
+ 1)
(N
2
+ 1) × (P + 1)
× (D + 1)
=
𝑓
VCO
(N
2
+ 1) × (P + 1)
,
𝑖𝑓 𝐷 = 0