Topic : PLL Change on STR912

Forum : ARM

Original Post
Post Information Post
March 13, 2008 - 1:41pm
Guest

Hi Friends,
Today i realised that my MCLK is running at 48MHz.
I tryed to change it to 96000 doing a basic PLL configuration.
However I should be violating something, because after changing the PLL values, enabling the PLL and changing the MCLKSource to MCLK everything freezes.

My board have a 25 MHz external oscilator.
I'm using RIDE with STR9-Lib functions.
I'm running the program from FLASH.

First my program enables some system clocks using SCU_AHBPeriphClockConfig for DMA, FMI, EMI.
After, it calls SCU_APBPeriphClockConfig for all GPIOs and UART.

After this clock enabling procedure I configure the UART for console debugging purposes.
Everything's fine up to now and then...

1) I disable the PLL with SCU_PLLCmd(DISABLE). Ok. No problem. Everything is working as it should be.
2) I configure the PLL Factors with PLLFactorsConfig. Ok.
3) Consulting the PLL Frequency with SCU_GetPLLFreqValue gives me the correct value (96000).
4) When i try to change the MCLK Source to PLL with SCU_MCLKSourceConfig(SCU_MCLK_PLL)
5) Freeze !

I tryed other combinations, but everything seems to hang somewhere.

The first question is what i'm doing wrong.
The second question is, seems that the PLL is already configured at boot time. From where this configuration was done ? On the Startup assembly module ? How can i change ?

Thanks for the help.
TudaDocHell

Replies
Post Information Post
+1
0
-1
March 21, 2008 - 2:05pm
Guest

PLL problem SOLVED !

Hi friends... found the problem... bad power supply.
I was using a simple power supply with 7,5V output (simple transformer with rectfier bridge and, by the way, not enough capacitors to filter the voltage ripple).
Everytime i was enabling the high frequency PLL, my external power supply (which has a BAD regulation) drops the supply voltage a little (from ~6,6V to 6,3V) and the ripple increases a lot due to the new board consuption.
The 5V voltage regulator in the REVA board cannot regulated at such supply voltage.
The 5V output line goes around 4,3V, the 3.3V output line goes below 2.4V... and the LVD boots the processor. The processor was booting constantly.
Replaced the external power supply by a 12V one...
Everything is fine...
Thanks for all help.
TudaDocHell