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.

BQ21062: Long press functionality of MR button

Part Number: BQ21062

Hi Team,

I want to know the long press MR button functionality. I want to use Power cycle as well as Shipping mode in my device. As per the datasheet we can use only one functionality on long press, either Power cycle or Shipping mode.

Please help to suggest some idea here.

One more thing, I want to set the fast charge current. Where I can get the value of ICHG_Code. I need to set the 190mA current as fast charge current. Please suggest the value.

Thanks

  • Hi Sevender,

    I want to use Power cycle as well as Shipping mode in my device. As per the datasheet we can use only one functionality on long press, either Power cycle or Shipping mode.

    With the MR button functionality, you can enter ship mode which will shutdown the PMID output. This is seen in Figure 10-7 of the datasheet. A HW reset can be initiated through an I2C command through the HW_RESET bit This is in ICCTRL0 Register 0x35.

    One more thing, I want to set the fast charge current. Where I can get the value of ICHG_Code. I need to set the 190mA current as fast charge current. Please suggest the value.

    The ICHG code is the value set in the ICHG_CTRL register. You can use the BQ21061 setup guide tool as a reference.

    Best Regards,

    Anthony Pham

  • Hi Anthony Pham,

    Thanks for the clarification.

    Ok I can use shipping mode for power cycle also just need to press MR button again to restart..

    One more problem is, there are lot interrupts coming when we are pressing the MR button. Can we mask all the unused interrupts like wake2, reset warning etc.?  Masking means for example we will not get any interrupt when we press the MR button more the wake 2 timer.

    Please respond 

  • Hi Sevender,

    Yes, you can mask these interrupts. The Wake timers can be masked with bits 1 and 2 in the Mask3 register (0xA). 

    If you are not using the MR wake functionalities, you can use one of these timers to send the I2C command for hardware reset or shipmode. It cannot be configured for both.

    Best Regards,

    Anthony Pham