Clocking problem with MCF52259 Board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Clocking problem with MCF52259 Board

1,670 次查看
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,456 次查看
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,456 次查看
JimDon
Senior Contributor III

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

Compare it to the TWR board.

0 项奖励
回复

1,456 次查看
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,456 次查看
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 项奖励
回复