
R01UH0336EJ0102 Rev.1.02
Page 272 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 7 Clock Generation
(a)
Calculating the Thresholds of CLMAnCMPL.CLMAnCMPL[11:0] and
CLMAnCMPH.CLMAnCMPH[11:0]
The compare registers CLMAnCMPL and CLMAnCMPH are configured with
the minimum and maximum number of clock cycles of CLMAnTMON that are
assumed to be valid within 16 cycles of the sampling clock CLMAnTSMP.
The expected number of clock cycles is denoted by N.
Considering the allowed frequency deviations of CLMAnTMON and
CLMAnTSMP, the threshold values can be calculated by the following
formulas:
Note
For examples of CLMAnCMPH and CLMAnCMPL registers of this product,
refer to Table 7-16, Examples of CLMAnCMPH and CLMAnCMPL Register
Settings.
Minimum
thresholds
The following restrictions must be taken into account:
• CLMAnCMPL
0001
H
• CLMAnCMPH
CLM 0003
H
=
N =
Lower threshold
=
N
min
=
Upper threshold
=
N
max
=
16
f
CLMAnTSMP
---------------------------------
N
f
CLMAnTMON
----------------------------------
f
CLMAnTMON
f
CLMAnTSMP
----------------------------------
16
f
CLMAnTMON min
f
CLMAnTSMP max
----------------------------------------------
16
1
–
f
CLMAnTMON max
f
CLMAnTSMP min
-----------------------------------------------
16
1
+