AnsweredAssumed Answered

How to know what´s the bus frequency of my MCU - Using DEMOQE128 board and MCF51qe

Question asked by Jorge Andres Reyes Alvarez on Apr 4, 2009
Latest reply on Jun 18, 2012 by Luis Uribe

Hi,

 

I want to know How to know what´s the bus frequency of my MCU - Using DEMOQE128 board and MCF51qe...

 

I already programmed this, and made test with the oscilloscope to see the frequency output of a blinking led that the board has...i obviously counted the number of assembly steps that go through..This value was the bus frequency not the ISCOUT..The clocks are like this, first the DCOOUT, then i want to divide by four to have a ISCOUT of 8MHz, and later the bus frequency is predefined as ISCOUT/2 and that will be 4MHz...I dont know if im doing a wrong configuration, please help me....I already have the 4MHz in the bus freq, but im afraid that i did a wrong configuration, because i changed the BDIV bitfields and the bus frequency did not work...

 

#define FTrim_Val 0
#define ICSC1_FEI 0b00000100
#define ICSC2_FEI 0b00010110      //Con los dos primeros cuadro ISCOUT division DCOOUT/1                                                //DCOOUT=8MHz y ISCOUT=4Mhz
#define ICSSC_FEI 0b01000000 | FTrim_Val     //Midrange DCO32Mhz,dmx32=0,,,,Ftrim Default 0

 

I did this changing the BDIV bitfields in the ICSC2 register first from 0b10 (DCOOUT/4) and later with 00 (DCOOUT/1)and the result was the same....a 4MHz MCU frequency...and the command box in the debugger tells me that the MCU speed is 4MHz...

 

Thanks, please help me...

Outcomes