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.

BQ32002: setting output of 1HZ is unsuccessful

Part Number: BQ32002


Hi,

We want to measure the pin7 IRQ output of the RTC chip, configured as a clock output of 1HZ or 512HZ. Register 22 is configured by default to 0 and output 512HZ. When we configure the 1HZ output, register 22 is set to 0x1 and the setting is unsuccessful. Register 7 is already configured as 0xc0. Why is it that the setting of 1HZ is unsuccessful, and there are other places that need to be modified?

  • You must also set FT in register 0x07 (CAL_CFG1). See datasheet table 1 for more info. I hope this helps.

    Kind regards,
    Lane
  • Hello Lane,

    The 0X07 register have been set to 0xc0, which is 1100 0000. Otherwise, 512HZ is not detected. Now switching 1HZ depends on the last bit of the 0x22 register to determine whether it is 1hz or 512hz. 0x22(SFR) set 0x1 , but still read is 0x00.The setting does not take effect.

  • It is strange that the setting does not take effect when writing 0x1 to 0x22 (SFR). I wonder if the I2C timings for read and write adhere to the datasheet specifications.
    Are you able to consistently read back the correct time successfully? When you change the time with a write operation, can you read back the correct time?

    For 1 Hz output, the setting of OUT does not matter. As a debug step, you could try writing 0x80 to 0x07 (CAL_CFG1).

    Kind regards,
    Lane