Calculating the user defined ratio, 1 high resolution 12.20 format, Table 3. example 12.20 r-values – Cirrus Logic CS2300-OTP User Manual
Page 22: 2 high multiplication 20.12 format, Table 4. example 20.12 r-values, Calculating the, Calculating the user defined ratio” on, Cs2300-otp
![background image](/manuals/466173/22/background.png)
CS2300-OTP
22
DS844F2
7. CALCULATING THE USER DEFINED RATIO
Note:
The software for use with the evaluation kit has built in tools to aid in calculating and converting the User
Defined Ratio. This section is for those who would like to know more about how the User Defined Ratio is
calculated and stored.
Most calculators do not interpret the fixed point binary representation which the CS2300-OTP uses to define the
output to input clock ratio (see
); However, with a simple conversion we can use these tools
to generate a binary or hex value for Ratio
0-3
to be stored in one time programmable memory. Please see
for more details on programming.
7.1
High Resolution 12.20 Format
To calculate the User Defined Ratio (R
UD
) to store in the register(s), divide the desired output clock frequen-
cy by the given input clock (CLK_IN). Then multiply the desired ratio by the scaling factor of 2
20
to get the
scaled decimal representation; then use the decimal to binary/hex conversion function on a calculator and
write to the register. A few examples have been provided in
Table 3. Example 12.20 R-Values
7.2
High Multiplication 20.12 Format
To calculate the User Defined Ratio (R
UD
) to store in the register(s), divide the desired output clock frequen-
cy by the given input clock (CLK_IN). Then multiply the desired ratio by the scaling factor of 2
12
to get the
scaled decimal representation; then use the decimal to binary/hex conversion function on a calculator and
write to the register. A few examples have been provided in
Table 4. Example 20.12 R-Values
Desired Output to Input Clock Ratio
(output clock/input clock)
Scaled Decimal
Representation =
(output clock/input clock)
•
2
20
Hex Representation of
Binary R
UD
12.288 MHz/10 MHz=1.2288
1288490
00 13 A9 2A
11.2896 MHz/44.1 kHz=256
268435456
10 00 00 00
Desired Output to Input Clock Ratio
(output clock/input clock)
Scaled Decimal
Representation =
(output clock/input clock)
•
2
12
Hex Representation of
Binary R
UD
12.288 MHz/60 Hz=204,800
838860800
32 00 00 00
11.2896 MHz/59.97 Hz =188254.127...
771088904
2D F5 E2 08