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.
Put a scope on CLKOUT and see what you get...
Compare it to the TWR board.
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)
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