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 problem

Other Parts Discussed in Thread: BQ32000

Hi, I have problem with RTC BQ32000. I can read/write registers and I can see pulses on the IRQ pin, but the content of the registers is not update. I can see only static value if the chip is powered from source. If I switch off the power (RTC runnig from backup battery) the registers are updated and after switching on the values stored in that registers is new. Is that caused by bad setting I2C? I using Xmega128 TWI set up as master, frequency is cca 100kHz bus state is idle and smart mode is enabled. I see on this forum several people who has the same problem but never describe how tray solved it.

  • Prakticar,

    Some things to check before you started debugging this issue:

    1. Are you giving it sufficient time to update the registers? 

    When the user ‘STARTs’ reading the registers, we hold off on updating the registers for time coherency. For instance, let’s say the time is 2m and 59s. The customer reads 59s and then we update it and then the customer reads Minutes register, he would read the time as 3m 59s. So, once we get a START condition, we hold off on updating the registers and wait till the I2C transaction is complete. And this time update is held pending.

    When the RTC sees a STOP condition or a ‘wrong addr’, we update the time registers.

     

    2. Can you Read Reg 0x09h? What is the MSB (D7)? It should be 0. If not, please try writing a 0 to it.

    All RSVD bit values should be written as specified in the datasheet.

    Thanks

    Vivek