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.

BQ32000: BQ32000 OF(Oscillator fail flag) bit issue

Part Number: BQ32000

Dear All

I find OF(Oscillator fail flag) bit cann't automatic change when I set or clear STOP bit,pls help provide suggestions,thanks

  • The OF flag is set and latched high on device power-up or oscillator failure. The latched bit will not automatically change and you will need to clear the flag in your interrupt service routine. To clear the flag, perform an I2C write operation and set the bit to 0.

    Kind regards,
    Lane Boyd
  • Lane

    As you say,the OF Flag is set when oscillator failure
    The STOP bit is used to force the oscillator to stop oscillating. and the Oscillator stop oscillating is not same as oscillator failure?
  • Your understanding is correct. The STOP bit forces the oscillator to stop oscillating, and this is an oscillator failure. The OF flag will set and latch, so the OF flag will not clear automatically when you clear the STOP bit.

    After powering on the BQ32000, the OF flag is set. Clear the OF flag to detect oscillator failures.

    When you set the STOP bit, OF will set high. When you clear the STOP bit, the OF flag will still be latched high, but there is no oscillator failure. Clear the OF flag to detect another oscillator failure. You must clear the OF flag after it is set or you will not be able to detect oscillator failures.

    Kind regards,
    Lane Boyd
  • Lane,I want to know how long the oscillator can start and be stable after clearing the stop flag .plese help provide suggestions,thanks
  • The oscillator will start and be stable very quickly. The output will stabilize in less than one second, faster than the timekeeping register refresh rate.

    Kind regards,
    Lane Boyd