What is the relationship between FMPLL and BIUCR?

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

What is the relationship between FMPLL and BIUCR?

770 Views
tgc-yilmaz
Contributor III

Hello,

I'm using a MPC5644A and want to set the maximum value of the system frequency (150MHz). However,

If the system frequency is set to values greater than 82MHz, I have to make the following definitions in the __ppc_eabi_init file. Why are these definitions made in __ppc_eabi_init file? What is the relationship between FMPLL and BIUCR?

pastedImage_4.png

Thank you for your help...

Labels (1)
0 Kudos
3 Replies

590 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

there are APC, WWSC and RWSC bit fields in the BIUCR which are used to configure flash wait states:

pastedImage_1.png

And in the datasheet:

pastedImage_2.png

For 150MHz, there should be 0x----9C--

You can re-use initialization code from:

https://community.nxp.com/docs/DOC-101455 

Regards,

Lukas

0 Kudos

590 Views
tgc-yilmaz
Contributor III

Hello Lukas Zadrapa,

Thank you for your answer. I am asking for be sure. We do these definitions in order to be able to read properly from flash at higher operating frequencies. In this way, we prevent the error in the code by associating the flash reading speed with the operating frequency.

Regards,

0 Kudos

590 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, that's correct. The flash is not so fast, so if higher system clock is used, it's necessary to wait until the flash is able to provide requested data - this is managed by flash wait states. By default, the flash wait state are always configured to maximum. For best performance, it's necessary to follow the mentioned table from the datasheet and configure it appropriately.

Regards,

Lukas

0 Kudos