background image

2.6 Reference tables (pll0_phi, pll0_phi1, and pll1_phi)

The three tabs 

pll0_phi

pll0_phi1

, and 

pll1_phi

 are reference tables for the user to find the appropriate PLL dividers and multipliers

to achieve the desired PLL frequency. There is a tab for each PLL output because input frequencies and the range of acceptable
divider/multiplier values differ between each other. However, they all follow the same setup. Note that Columns A, B, and C of
these tabs are frozen so if the table looks cut off, just scroll left or right.

PLL frequencies are calculated from a reference frequency, a reference divider (RFD), a multiplier (MFD), and in PLL0, a prescaler
(PREDIV). The PLL reference is not manually configurable because there is a finite number of input values the PLL can take. For
example, PLL0 can only reference either the 16 MHz IRCOSC or the 8-40 MHz XOSC. PLL reference therefore comes from the

Tree

 tab. Configure 

AUX Clock Selector 3

 and 

AUX Clock Selector 4 

in 

Tree 

for PLL0 and PLL1, respectively. Once the PLL

reference frequency is configured, enter the desired PLL output frequency. Also, enter the PREDIV value when using 

PLL0_PHI

or 

PLL0_PHI1

. The reference table will then calculate the output frequency for each MFD and RFD setting. Like in the other

sections, frequencies are color-coded to define which values are valid and which are not. Shading will change automatically once
the output PLL frequencies are calculated. MFD and RFD settings that achieve the exact desired frequency will be shaded in
green; values that exceed the desired frequency, but are within MPC5746R hardware specifications are marked in yellow; and
frequencies that exceed the MPC5746R hardware specification are colored red. Below is a screenshot of the reference table for

PLL0_PHI

.

Figure 14. PLL0_PHI reference table

2.7 Summary

Almost all blocks populating this clock calculator represent real register fields in silicon. The 

Summary

 tab collates all the

information from the rest of the clock calculator into a list of register values, a screenshot of which is shown in 

Register summary

table

. The values in the register summary are interactive, updating automatically when the associated block is changed. Registers

listed within 

Summary

 are only the ones whose values are affected by clock configuration, not every single register available in

the SoC.

NXP Semiconductors

Clock calculator design

MPC574xR Clock Calculator Guide, Rev. 5, October 2018

Application Note

10 / 28

Summary of Contents for MPC5743R

Page 1: ...lculator The clock calculator makes use of macros to perform functions like resetting the spreadsheet to initial values configuring all clock frequencies to the maximum allowable settings and copying...

Page 2: ...requency cells Values that are out of range will be rejected and the user will receive an error message Invalid clock domain frequencies that arise from valid input values and legal but improper divid...

Page 3: ...Tree is the centerpiece of the tool This tab is the starting point for all clock frequency calculations It is organized to resemble the MPC5746R clock tree as presented in the following figure NXP Sem...

Page 4: ...following figure shows in part the diagram s clock tool counterpart The difference between the two is that the latter is interactive NXP Semiconductors Clock calculator design MPC574xR Clock Calculat...

Page 5: ...ured in the PLL0 tab PER_CLK selects from these three clock sources by selecting the value of the AUX Clock Selector 0 block Then finally the selected signal is divided by the PER_CLK prescaler value...

Page 6: ...also referred to simply as XTAL If the XOSC Select block selects XTAL XOSC will derive its frequency from the external oscillator XTAL block Alternatively a waveform can be driven directly to the EXT...

Page 7: ...if all modules using it can fit within a single window without having to scroll The frequencies on this tab are not meant to be modified and are dependent on frequency values in the Tree tab 2 4 LFAS...

Page 8: ...heet Figure 11 LFAST block diagram Since the LFAST signal must be generated from an input clock of 10 13 20 or 26 MHz this tool blocks any input from the signal RF_REF other than these four values RF_...

Page 9: ...0 and the user would know to change the input 2 5 PLLx PLL0 and PLL1 are visual abstractions of the PLL digital interface as in the next figure Figure 13 PLL0 control The input source of PLL0 and PLL1...

Page 10: ...HI or PLL0_PHI1 The reference table will then calculate the output frequency for each MFD and RFD setting Like in the other sections frequencies are color coded to define which values are valid and wh...

Page 11: ...RUN_MC among the MC_ME_ MODE _MC registers should be set to 0xX0XX00F4 Assuming the instances of X are 0 the resulting S32DS C code would be MC_ME DRUN_MC R 0x000000F4 Summary also includes an overvie...

Page 12: ...o auxiliary clocks The dynamic C code in these functions depend on tool settings just like the register summary These functions can be copied and pasted to a source file via Ctrl C Ctrl V or by clicki...

Page 13: ...The values in its tables are based on the MPC5746R s datasheet and reference manual and therefore should not be modified by the user The following figure is a screenshot of the Limits tab NXP Semicon...

Page 14: ...LL The example will not only show the correct configurations but also how the tool responds if improper configurations are attempted When configuring clocks for a module start at Peripheral Domains As...

Page 15: ...plains what each available value represents As shown in the figure PBRIDGE_x_CLK is currently enabled and sourced from the 16 MHz IRCOSC divided by 1 for a final frequency of 16 MHz Since the only way...

Page 16: ...empt to enter 7 MHz to the XOSC frequency cell A dialog box appears notifying the user that the value is not accepted when he she tries to click away from the cell Figure 22 Invalid frequency input Se...

Page 17: ...circles the blocks that represent the XOSC crystal the XOSC controller and the effective frequency as sensed by AUX Clock Selector 4 and CMU_0 Figure 24 Actual XOSC frequency with source turned off N...

Page 18: ...urned on 3 1 2 Configure PLL0 Follow the XOSC path to AUX Clock Selector 3 Change the AUX Clock Selector 3 value to 1 so that PLL0 sources from XOSC as shown in the figure below NXP Semiconductors Clo...

Page 19: ...rce frequency Figure 27 PLL0 calculator Configure the dividers to achieve 200 MHz The correct configuration can be achieved by trial and error but the MPC574xR Clock Calculator provides a lookup table...

Page 20: ...equency of 40 MHz and a PREDIV of 2 This example will use a MFD of 20 and a RFD of 2 but before configuring the PLL0 tab it is worth noting what happens if the output PLL frequency is out of range In...

Page 21: ...xt figure the output PLL0_PHI is 200 MHz and the cell remains unshaded meaning the configuration fits within spec Figure 31 PLL0_PHI configured to 200 MHz Go back to Tree to observe that the PLL0_PHI...

Page 22: ...rogressive clock switch before propagating to the various system clock domains PCFS takes IRCOSC in this diagram because its logic is organized in terms of IRCOSC cycles You can find more information...

Page 23: ...maximum allowable PBRIDGE_x_CLK frequency of 50 MHz The tool will highlight the PBRIDGE_x_CLK cell red to signify that such a frequency is not allowed as shown in the following figure Figure 35 PBRIDG...

Page 24: ...he associated Clk En block to 1 and the CAN_CLK divider to 0 40 MHz 0 1 40 MHz So in closing this example has achieved its goal a 40 MHz XOSC driving a PLL that produces an output of 200 MHz and from...

Page 25: ...k_Init and InitPeriClkGen provide dynamic clock generation C code The code will configure the clocks to the settings as configured in this clock calculator It can be copied and pasted to a source file...

Page 26: ...Conclusion This application note gives an overview of the MPC5746R interactive clock calculator It seeks to simplify clock configurations in the form of a graphical tool so that a user can more easil...

Page 27: ...74xR_Clock_Calculator file 2 December 2017 Updated the associated AN12020SW 3 January 2018 Editorial updates 4 February 2018 Updated the associated AN12020SW 5 October 2018 Updated the associated AN12...

Page 28: ...ITAG I2C BUS ICODE JCOP LIFE VIBES MIFARE MIFARE CLASSIC MIFARE DESFire MIFARE PLUS MIFARE FLEX MANTIS MIFARE ULTRALIGHT MIFARE4MOBILE MIGLO NTAG ROADLINK SMARTLX SMARTMX STARPLUG TOPFET TRENCHMOS UCO...

Reviews: