Clocking problem with MCF52259 Board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Clocking problem with MCF52259 Board

1,674件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,460件の閲覧回数
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 件の賞賛
返信

1,460件の閲覧回数
JimDon
Senior Contributor III

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

Compare it to the TWR board.

0 件の賞賛
返信

1,460件の閲覧回数
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 件の賞賛
返信

1,460件の閲覧回数
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 件の賞賛
返信