Help About Clock initialization in QE128, to set 50MHz

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

Help About Clock initialization in QE128, to set 50MHz

1,023 Views
erooll
Contributor II
Hi, I'm trying to use device initialization to setup clock CPU to run at 50 MHz, I use DEMOQE evaluation board, it use a external crystal which value is 32.768KHz, when I put 50 MHz in CPU, a error is generated, shows me that the closer frecuency allows is 29.884416MHz.
Attach the image of settings in device initialization.
 
Someone could help me with a source code by initialize clock to set CPU clock at 50MHz
 
Thanks.
 
Labels (1)
0 Kudos
1 Reply

156 Views
ProcessorExpert
Senior Contributor III
The "Internal bus clock" property refer to the BUSCLK signal on the Figure: 1.3 - System Clock Distribution Diagram in the reference manual of the MCF51QE128. The CPU core clock is twice the Internal bus clock. So to setup the CPU clock to 50MHz the Internal bus clock mus be set to 25MHz. Please note that with the 32.768kHz external crystal the nearest possible value is 25.165824MHz.

Weblink to the reference manual:
http://www.freescale.com/files/32bit/doc/ref_manual/MCF51QE128RM.pdf?fsrch=1


Processor Expert Support Team
www.processorexpert.com
0 Kudos