[email protected] wrote:

When I run the code it drops out through the bottom, so XT2 should be OK to
use.
Is there a newer hardware manual than SLAU056C ? This version definitely
says that:
a) XT2OFF defaults to 1 after Power On Clear
b) XT2OFF is 1 to disable XT2 and 0 to enable XT2. However it implies that
if you try and use XT2 for MCLK or SMCLK when the bit is set
it will turn XT2 on. Perhaps this is just a bad description of the function
of the bit. I'll try it the other way up!

Your comment about the documentation being a WOD makes me feel a bit better,
I was beginning to think that it was just me!

Thanks also for the additional info about the internal checking of the
clocks before swapping to them. With this in mind I will remove the
potentially endless loop if XT2 really doesn't work.

The document I was using is revision B. I just grabbed revision C. This has reversed the sense of XT2OFF, to agree with what you said. However, I think you have something backwards (or I do). I don't think XT2 is forced on by using it as MCLK or SMCLK. I think what happens is requests to use XT2 as MCLK or SMCLK are not obeyed unless XT2 is on.

Regards,
Steve



Reply via email to