Clocking problem with MCF52259 Board

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

Clocking problem with MCF52259 Board

1,663 Views
rParker
Contributor I

We have developed our own board based on the Tower Demo board. Our board is fitted with a 48MHz crstal as is the demo board but when we run exactly the same application code on our board it seems to be running much slower.

 

Both CLKMOD pins are tied LOW as default on the TWR demo board and XTAL is tied high (likewise on the demo board). Using the HelloWorld demo serial data is corrupted from our board while the demo works fine.

 

To make sure its not something to do with the serial line drivers we have put in a never ending loop to flash one of the LEDs at the end of the program. The demo board flashes the LED at a rate of 5Hz while our board flashes the LED at a rate of about 1.67 Hz.

 

Has anyone got any idea what we are doing wrong?

 

Thank you in advance

 

Richard.

Labels (1)
0 Kudos
Reply
4 Replies

1,449 Views
nnadal2
Contributor III
I make the same process and took the conclussion we must work with a fundamental frequency crystal. Later Freescale reported similar problems in MCF52259 errata

0 Kudos
Reply

1,449 Views
JimDon
Senior Contributor III

Put a scope on CLKOUT and see what you get...

Compare it to the TWR board.

0 Kudos
Reply

1,449 Views
TomE
Specialist II

5 / 1.67 = 3.

 

If you think your crystal should be running at 48MHz then it looks like it may be running at 16MHz.

 

That's been reported here a few times, most recently:

 

https://community.freescale.com/message/92682#92682

 

Previous detailed one (just search for "48MHz"):

 

https://community.freescale.com/message/66903#66903

 

Tom (A Random Poster)

 

0 Kudos
Reply

1,449 Views
rParker
Contributor I

Sorry guys I thought that I had checked the forums before posting but it turns out that I am using a 3rd overtone crystal which would explain the speed problems.

 

Thanks

 

Richard

0 Kudos
Reply