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.

Set of OFIFG flag

Genius 5960 points
Other Parts Discussed in Thread: MSP430F435

Hi,

I am using the MSP430F435.

I am using the LFXT1CLK(8MHz) as a peripheral clock.
I am using the LFXT1CLK(8MHz) as the clock of the CPU.

If an error occurs in the DCO in that state,
OFIFG flag or will be set?

Best Regards,

hamada

  • Yes, it will be set. But it takes some time before the oscillator detects the fault.

    You should be able to fine this information in the device data-sheet and the family user's guide.
  • Hi,

    Thank you for reply.

    I am sure the user guide (SLAU056L) 300 pages.
    ( www.tij.co.jp/.../slau056l.pdf )

    However, if you did not use the DCO to MCLK / SMCLK / ACLK,
    OFIFG did not tell the judge whether is set when the DCO error has occurred.

    If possible I will expect an answer from "TI Emploee".

    Best Regards,

    hamada
  • The DCO cannot fail (or else the MSP itself is bricked permanently).
    A DCO fault rather indicates an FLL fault: The FLL has adjusted the DCO to its highest/lowest setting and the DCO is apparently configured with the wrong DCORSEL setting for the desired target (or the reference clock has failed).
    If the FLL has no reference (e.g. no LFXT1 running as reference on 4x family), then it tries to adjust the DCO down to 0Hz, which drives to DCO to its lowest setting and causes a DCO fault.
    To clear OFIFG, the DCO fault needs to be removed. Either temporarily (by simply setting DCOx to a value >0 and <32) or permanently (by additionally disabling the FLL - see users guide chapter 5.2.8 - or programming the FLL to a proper DCO target frequency and providing a reference clock)

**Attention** This is a public forum