Other Parts Discussed in Thread: MSP430F5528
All:
MSP430F5528 using Battery and USB
I have been seeing a clock "slip" on several devices under test. It appears that when a USB connection is made, and the power is switched from battery to USB, occassionally there is a crystal fault XT1. (XT2 is the crystal used for USB.)
When this happens, the source being used for RTC is no longer XT1, but REFO. By monitoring ACLK on P1.0, I was able to see a difference between XT1 (32.7685 KHz) vs. REFO (~33.0000 KHz). If the XT1 fault is not caught, then REFO will drive ACLK, which in turn feeds RTC. This can result in a "slip" of time over the period of 24 hours (usually the next day) that can be very significant - over 10 minutes. If this continues, the daily slip of 10 minutes can add up...
So, it looks like I will need to monitor XT1 faults and if one occurs, reset the fault, so that XT1 can then be used instead of REFO.
Are there any other situations besides XT1 fault that would cause REFO to source ACLK?
Also, is there anything other than the existence of XT1 fault (XT1LFOFFG in UCSCTL7) to indicate that ACLK is being driven by REFO? (If it had been initialized to run from XT1)
