Problems with the UART (and Timers, etc) are usually due to the HF crystal
oscillator not having reached stability before being switched to in the
initialisation code. It is not good enough to switch the crystal to the MCLK
when the initial indication of the osc bit is that the osc is running. You need
to keep checking the OSC bit for a few milliseconds before finally switching to
the HF crystal. (The osc "bounces" around for a while, if a failure appears to
occur, the internal detection cct switches back to the DCO!)

It sounds very much like the above problem is what you have been experiencing!

Cheers
Harry

Home office phone (03) 9504 1957
hlemm...@optushome.com.au




-----Original Message-----
From: mspgcc-users-ad...@lists.sourceforge.net
[mailto:mspgcc-users-ad...@lists.sourceforge.net]on Behalf Of Robert Seczkowski
Sent: Sunday, November 23, 2003 8:20 AM
To: mspgcc-users@lists.sourceforge.net
Subject: [Mspgcc-users] MCLK & SMCLK & USART

DOes anybody experieenced problems, when MCLK was higher, than SMCLK
feeding USART.
I receive garbage at USART probably caused by speed difference.
robert


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to