This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi, I have msp439F6779 on my board.And I am using 32Khz external chrystal for heart beat.But I think I have a problem about clock.When I try to blink leds without checking OFIFG flag.it is ok.The code is working and seems no problem for me.But when I add a code block for check OFIFG flag like :
while (SFRIFG1 & OFIFG) { // check OFIFG fault flag
UCSCTL7 &= ~(DCOFFG + XT1LFOFFG + XT2OFFG);
SFRIFG1 &= ~OFIFG; // Clear OFIFG fault flag
}
my program can not go out this while.The OFIFG flag remains set everytime.I tried 12pf parallel capacitors with my oscilator.But the result is same.Can anyone help me about that?
Hi,
the source of OFIFG bit getting set is one of the bits in the UCSCTL7: DCOFFG, XT1LFOFFG, or XT2OFFG. Could you check which one in your case causing this?
If it is really the XT1LFOFFG, check your hardware, or try to test it with the example code: http://www.ti.com/lit/zip/slac561 - MSP430F677x_UCS_6.c. If the example code doesn't work, most probably the problem is on the hardware side.
Thanks Leo, you were right. It was because of hardware problem.The problem solved when I changed mcu on my board.
Best Regards
**Attention** This is a public forum