PLL calculation for S32k312

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PLL calculation for S32k312

Jump to solution
9,806 Views
mogilipuri_harish
Contributor II

hello team,

 

i am using the S32K312 microchip in our design. can please help me to calculate the PLL output frequency. We are using 40 MHz external crystal oscillator. can you provide one example calculation? is it okay if you we are using 40 MHz crystal oscillator? 

please provide the clock calculator for S32K312.

0 Kudos
Reply
1 Solution
9,694 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@mogilipuri_harish

Apart from the data sheet, there is no more guidance document for clock configuration

As shown in the figure,the version RTD 2.0.1 and above have routines for S32K312

Senlent_0-1679275360762.png

 

View solution in original post

0 Kudos
Reply
10 Replies
9,773 Views
mogilipuri_harish
Contributor II

hello senlent,

actually core clock frequency for S32k312 is 120Mhz.

0 Kudos
Reply
9,771 Views
Senlent
NXP TechSupport
NXP TechSupport

thanks for reminding

In S32K312, CORE_CLK=160Mhz can still run, but it is not recommended for customers to use this way, there will be unknown risks

0 Kudos
Reply
9,763 Views
mogilipuri_harish
Contributor II

here what are the variable values we can change??

0 Kudos
Reply
9,746 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi,

Didn't fully understand your question, do you mean which divider values can be changed?

Senlent_0-1679014916370.png

these parameters in the picture can be changed, you can view these clock tree configuration in S32 DS.

0 Kudos
Reply
9,732 Views
mogilipuri_harish
Contributor II

hi

 

Fxosc = 16MHz

PLL = (16/2)*60=480MHz

POSTDIV = 480/2 = 240MHz

PHIO = 240MHz/2 = 120MHz

CORE CLK = 120MHz/1=120MHz.

Can you please verify the PLL calculation for 120MHz? 

0 Kudos
Reply
2,917 Views
rekhak
Contributor I
Hi @mogilipuri_harish , were you able to resolve this issue. i am also dealing with same issue. i do have exactly same configuration , using MCAL 6.0.0 for S32K312.
facing error with "PLL ODIV2 = 2 " out of range
0 Kudos
Reply
9,722 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi,

for your reference,for example:

Senlent_0-1679045256458.png

PLL output frequency must be in range:640MHz~1,28GHz.

0 Kudos
Reply
9,719 Views
mogilipuri_harish
Contributor II

hi 

i am trying do this PLL clock calculation. can you given some notes how to do this calculation? like reference document. and i didn't find S32k312 example in tools, can you please share that it will be helpful to me.

0 Kudos
Reply
9,695 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@mogilipuri_harish

Apart from the data sheet, there is no more guidance document for clock configuration

As shown in the figure,the version RTD 2.0.1 and above have routines for S32K312

Senlent_0-1679275360762.png

 

0 Kudos
Reply
9,776 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@mogilipuri_harish

The FXOSC can be from 8MHz to40MHz,so the 40MHz crystal oscillator should be ok.

you can use "S32 Design Studio for S32 Platform" to set the clock tree.

for example:

Senlent_0-1678946272283.png

PS:The S32K312EVB we provide uses a 16MHz external crystal oscillator

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1616306%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPLL%20calculation%20for%20S32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1616306%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehello%20team%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ei%20am%20using%20the%20S32K312%20microchip%20in%20our%20design.%20can%20please%20help%20me%20to%20calculate%20the%20PLL%20output%20frequency.%20We%20are%20using%2040%20MHz%20external%20crystal%20oscillator.%20can%20you%20provide%20one%20example%20calculation%3F%20is%20it%20okay%20if%20you%20we%20are%20using%2040%20MHz%20crystal%20oscillator%3F%26nbsp%3B%3C%2FP%3E%3CP%3Eplease%20provide%20the%20clock%20calculator%20for%26nbsp%3BS32K312.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2202692%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PLL%20calculation%20for%20S32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202692%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F213282%22%20target%3D%22_blank%22%3E%40mogilipuri_harish%3C%2FA%3E%20%2C%20were%20you%20able%20to%20resolve%20this%20issue.%20i%20am%20also%20dealing%20with%20same%20issue.%20i%20do%20have%20exactly%20same%20configuration%20%2C%20using%20MCAL%206.0.0%20for%20S32K312.%3CBR%20%2F%3Efacing%20error%20with%20%22PLL%20ODIV2%20%3D%202%20%22%20out%20of%20range%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1618026%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PLL%20calculation%20for%20S32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1618026%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3Emogilipuri_hari%3C%2FSPAN%3E%3CWBR%20%2F%3E%3CSPAN%3Esh%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EApart%20from%20the%20data%20sheet%2C%20there%20is%20no%20more%20guidance%20document%20for%20clock%20configuration%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAs%20shown%20in%20the%20figure%2Cthe%20version%20RTD%202.0.1%20and%20above%20have%20routines%20for%20S32K312%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1679275360762.png%22%20style%3D%22width%3A%20590px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1679275360762.png%22%20style%3D%22width%3A%20590px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215281iBCD8756FE1BDDFDE%2Fimage-dimensions%2F590x310%3Fv%3Dv2%22%20width%3D%22590%22%20height%3D%22310%22%20role%3D%22button%22%20title%3D%22Senlent_0-1679275360762.png%22%20alt%3D%22Senlent_0-1679275360762.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1617571%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PLL%20calculation%20for%20S32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1617571%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20am%20trying%20do%20this%20PLL%20clock%20calculation.%20can%20you%20given%20some%20notes%20how%20to%20do%20this%20calculation%3F%20like%20reference%20document.%20and%20i%20didn't%20find%20S32k312%20example%20in%20tools%2C%20can%20you%20please%20share%20that%20it%20will%20be%20helpful%20to%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1617517%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PLL%20calculation%20for%20S32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1617517%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3Efor%20your%20reference%2Cfor%20example%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1679045256458.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1679045256458.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215146iCE9199EAA43467F2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Senlent_0-1679045256458.png%22%20alt%3D%22Senlent_0-1679045256458.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EPLL%20output%20frequency%20must%20be%20in%20range%3A640MHz~1%2C28GHz.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1617192%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PLL%20calculation%20for%20S32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1617192%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EDidn't%20fully%20understand%20your%20question%2C%20do%20you%20mean%20which%20divider%20values%20can%20be%20changed%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1679014916370.png%22%20style%3D%22width%3A%20684px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1679014916370.png%22%20style%3D%22width%3A%20684px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215070iAA9BCD506B2860D7%2Fimage-dimensions%2F684x159%3Fv%3Dv2%22%20width%3D%22684%22%20height%3D%22159%22%20role%3D%22button%22%20title%3D%22Senlent_0-1679014916370.png%22%20alt%3D%22Senlent_0-1679014916370.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ethese%20parameters%20in%20the%20picture%20can%20be%20changed%2C%20you%20can%20view%20these%20clock%20tree%20configuration%20in%20S32%20DS.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1616649%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PLL%20calculation%20for%20S32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1616649%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehere%20what%20are%20the%20variable%20values%20we%20can%20change%3F%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1616501%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PLL%20calculation%20for%20S32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1616501%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ethanks%20for%20reminding%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIn%20S32K312%2C%20CORE_CLK%3D160Mhz%20can%20still%20run%2C%20but%20it%20is%20not%20recommended%20for%20customers%20to%20use%20this%20way%2C%20there%20will%20be%20unknown%20risks%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1616484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PLL%20calculation%20for%20S32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1616484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehello%20senlent%2C%3C%2FP%3E%3CP%3Eactually%20core%20clock%20frequency%20for%20S32k312%20is%20120Mhz.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1616430%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PLL%20calculation%20for%20S32k312%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1616430%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22mailto%3AHi%40mogilipuri_harish%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHi%40mogilipuri_harish%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThe%20FXOSC%20can%20be%20from%208MHz%20to40MHz%2Cso%20the%2040MHz%20crystal%20oscillator%20should%20be%20ok.%3C%2FP%3E%0A%3CP%3Eyou%20can%20use%20%22S32%20Design%20Studio%20for%20S32%20Platform%22%20to%20set%20the%20clock%20tree.%3C%2FP%3E%0A%3CP%3Efor%20example%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1678946272283.png%22%20style%3D%22width%3A%20622px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1678946272283.png%22%20style%3D%22width%3A%20622px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214855iE6F83FE98C754D30%2Fimage-dimensions%2F622x406%3Fv%3Dv2%22%20width%3D%22622%22%20height%3D%22406%22%20role%3D%22button%22%20title%3D%22Senlent_0-1678946272283.png%22%20alt%3D%22Senlent_0-1678946272283.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EPS%3AThe%20S32K312EVB%20we%20provide%20uses%20a%2016MHz%20external%20crystal%20oscillator%3C%2FP%3E%3C%2FLINGO-BODY%3E