ANADIG_PLL1_CTRL bit fields

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

ANADIG_PLL1_CTRL bit fields

Jump to solution
1,173 Views
ealex
Contributor II

Hello

I have a question regarding the ANADIG_PLL1_CTRL register from the analog block.

In all reference manual versions (Vybrid Reference Manual, Rev. 6, 08/2013) ANADIG_PLL1_CTRL[DIV_SELECT] is bit 1, but setting that bit will not read back as 1, always as 0.

Instead, ANADIG_PLL1_CTRL[0] seems to be writable.

All other ANADIG_PLLn_CTRL registers seem to behave as described in the manual.

Is PLL1 limited to DIV_SELECT=0 ( X20 ? ) or is there an error in the manual and for PLL1 DIV_SELECT is bit 0 ?

Thanks,

Alexandru

Labels (3)
1 Solution
773 Views
juangutierrez
NXP Employee
NXP Employee

From our software it seems the DIV_SELECT is bit0 not bit1 as the RM stated

================ SystemInit fxn @ /src/cpu/system_Vybrid.c ================

  /* enable all the PLLs in Anadig */

  ANADIG->PLL1_CTRL=0x00002001; //PLL1 (System PLL) --> POWERDOWN=0, BYPASS=0, ENABLE=1, DIV_SELECT=1 (1->Fout=Fref*22, 0->Fout=Fref*22=>24M*22=528MHz)

  ANADIG->PLL2_CTRL=0x00002001; //PLL2 (PLL 528) --> POWERDOWN=0, BYPASS=0, ENABLE=1, DIV_SELECT=1 (1->Fout=Fref*22, 0->Fout=Fref*22=>24M*22=528MHz)

  /* PLL3 --> 480 MHz PLL for USB0 - leave as default */

So it seems there is an error in RM and DIV_SELECT is indeed bit0 and bit1 is Reserved

Actually in imx6 the CCM_ANALOG_PLL_SYS has this distribution.

View solution in original post

0 Kudos
7 Replies
773 Views
falstaff
Senior Contributor I

The PLL1 DIV_SELECT is still wrong in the Rev. 7 manual, as well as PLL2 (as Alexandru stated).

0 Kudos
773 Views
iankalinowski
Contributor II

Alexandru, where did you find Rev. 6 of the Vybrid Reference Manual?  As far as I can tell on http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=018rH3E3E0, the latest revision available is Rev. 5 (07/2013).

Thanks,

Ian

0 Kudos
773 Views
ealex
Contributor II

Thanks guys.

I've got it working using BIT0.

773 Views
naoumgitnik
Senior Contributor V

Hello Alexandru,

Before we proceed further, did you have a chance to review our software published on the Web and run on our boards to see how Vybrid does it? - It is for different OSs and quite well-commented.

Regards, Naoum Gitnik.

0 Kudos
773 Views
ealex
Contributor II

Hello

I see that the same documentation problem applies to PLL2.

I'm using the chip bare-metal. I did not have a chance to look over the code published on the Web.

0 Kudos
774 Views
juangutierrez
NXP Employee
NXP Employee

From our software it seems the DIV_SELECT is bit0 not bit1 as the RM stated

================ SystemInit fxn @ /src/cpu/system_Vybrid.c ================

  /* enable all the PLLs in Anadig */

  ANADIG->PLL1_CTRL=0x00002001; //PLL1 (System PLL) --> POWERDOWN=0, BYPASS=0, ENABLE=1, DIV_SELECT=1 (1->Fout=Fref*22, 0->Fout=Fref*22=>24M*22=528MHz)

  ANADIG->PLL2_CTRL=0x00002001; //PLL2 (PLL 528) --> POWERDOWN=0, BYPASS=0, ENABLE=1, DIV_SELECT=1 (1->Fout=Fref*22, 0->Fout=Fref*22=>24M*22=528MHz)

  /* PLL3 --> 480 MHz PLL for USB0 - leave as default */

So it seems there is an error in RM and DIV_SELECT is indeed bit0 and bit1 is Reserved

Actually in imx6 the CCM_ANALOG_PLL_SYS has this distribution.

0 Kudos
773 Views
karina_valencia
NXP Apps Support
NXP Apps Support

juangutierrez can you help on this case?

0 Kudos