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.

CCS/BQ32000: OF bit can not be cleared after manually stop and start the RTC

Part Number: BQ32000

Tool/software: Code Composer Studio

Hi Sir,

  We are developing product on TI BLE SOC CC2640R2  with BQ32000 as RTC.  The product supports a factory reset function that it will reset the RTC after production test. To save backup power, I set the STOP bit in SECONDS register of BC32K for the factory reset.  After  a while,  a read to MINUTES register shows  that the OF flag is set also. This is reasonable because we manually stop the clock . The issue is that  after above process, i can not clear the OF flash in MINUTES register.  The operation is syncing time by writing seconds,minutes,hours...years  to the registers with both STOP and OF bits cleared.  However,  the result is STOP bit cleared, but OF bit keeps to be set.  The main power is kept on during above operations. So can help to explain this?

   

  • Hi Daniel,

    I am not sure I understood the last part of your statement.  Perhaps a sequence will help:

    Step STOP State OF State
    1 (Power on) 0 1(default)
    2 Write OF = 0 0 0(write)
    3 Oscillator normal run 0 0
    4 Stop oscillator 1 (write) 0
    5 Read during osc stop 1 1 (OF flag set)
    6 Restart oscillator 0 1
    7 Clear OF flag (must write 0x1.7 = 0) 0 0 (write)
    8 Read minutes 0 1

    You are saying that with the above method, the OF flag does not stay cleared after step 7, but keeps getting set to 1?  Are you changing the other bits of register 1?  Are you writing multiple bytes in a single I2C transaction?

    Best Regards,

  • Hi Rob,

       Yes, the sequence you listed is just the same as what i have done.  Under normal running state, after stop the OSC(STOP bit), the OF bit will be set but can not be cleared  after  restart the OSC(STOP bit) . I have try to use both  multiple bytes write (sync time from SECOND to YEAR) and  single write(MINUTE register) to clear OF bit,  both failed.  However, if i remove both main and backup power of BQ32K for a while. Then recover the backup and main power, then i can clear the OF bit from I2C bus.

       For the OF bit change from 0 to 1, it takes several clocks after OSC is stopped.  

      For I2C bus operation, i have checked the signal with logic analyzer. All read and write operations are OK.

  • Hello Daniel,

    I apologize for the delay, is there any update on your situation?

    73,
    Timothy
  • Hi Timothy,

       There is no update on the event. The issue is  still open.

      

  • Hi Daniel,

    I want to verify that you are writing 0 to the OF flag after the oscillator is stable.

    It appears similar to the thread here: e2e.ti.com/.../627668

    If you are writing 0 to the OF flag. Have you written multiple times?

    If still not clearing, have you tested with other devices/boards? Is this on a custom board, or are you using the EVM?

    Best Regards,
  • Hi Rob,

      Yes, I am writing 0 to OF flag and have written multiple times after the oscillator is table. The operation is done on my custom board and i do not have the EVM on hand. 

  • Hi Daniel,

    This is unusual behavior. My apologies for your troubles.

    I believe that there may be some problem with either the oscillator operation, or the device. if you have multiple boards, checking others may be helpful.

    If you can also provide a schematic, I'd like to review the oscillator portion.

    I have not found any device history on not being able to clear the OF flag.

    Best Regards,
  • Hi Rob,

        Yes, we do have multiple boards because it's under pre-production state. We temporarily disable the STOP oscillator feature because it's low power consumption even keeping running.

      Here is the schematic of RTC part,

        

    Can help check if anything wrong from the design ?  Thanks for your support.

     

  • Hi Daniel,

    I don't see an issue with your schematic.  I am trying to get access to more internal documentation to help you and I am having a difficult time.  I will have an update for you by the middle of next week.

    Best Regards,

  • Hi daniel,

    I have received our internal documentation and I do not see a problem or correction for your OF flag issue. I also don't see a history of OF flag bugs in the device.

    I can only recommend general troubleshooting method.

    1. Verify with a scope that the oscillator is starting up.
    2. When the oscillator has started up, write OF flag = 0.
    3. Re-read OF flag.

    Best Regards,
  • Hi Sir,

          OK, thanks for your support.