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.

BQ76952: Alert_Pin_Configuration

Part Number: BQ76952

Hi,

I would like to configure Alert pin or Multifunctional GPIO to give signal when device enters into sleep Mode and Change its state when its is normal Mode. Is it possible?

For Example: Sleep Mode: Alert Pin - High( 3.3V  )

                       Normal Mode: Alert Pin - LOW ( 0 V )

Please let me know 

  • Hello Mounish,

    The ALERT pin can be configured to trigger an interrupt when the part WAKES (Enters NORMAL mode) from SLEEP mode.

    The ALERT can be configured to be in active-low, as well. This would mean that the ALERT pin would remain HIGH in SLEEP mode and once you enter NORMAL mode, it will go LOW. However, the ALERT pin will remain latched high unless you clear the corresponding ALERT bit.

    This is explained in Section 6.6 ALERT Pin Operation of the Technical Reference Manual.

    Best Regards,

    Luis Hernandez Salomon

  • Hello Luis Hernandez Salomon,

    I would like to know, if any protection is triggered, will that prevent the device from entering into sleep Mode?

    1. For instance, Under Voltage protection  is triggered so  Device will wake from sleep Mode, Now if I clear alert status to reset Alert Pin and the device is in any protection status for long time, Will that prevent device from entering into sleep Mode?

    2. Does Wake bit Set, if the device enters into Normal Mode from Shutdown Mode?

    3. If the device is in Under Voltage protection status, Can the device enter in to sleep Mode?

    Thanks & Regards,

    Mounish

  • Hello Mounish,

    1. For instance, Under Voltage protection  is triggered so  Device will wake from sleep Mode, Now if I clear alert status to reset Alert Pin and the device is in any protection status for long time, Will that prevent device from entering into sleep Mode?

    The device will remain in NORMAL mode until the protection status is gone.

    2. Does Wake bit Set, if the device enters into Normal Mode from Shutdown Mode?

    No, this is only from SLEEP to NORMAL mode.

    3. If the device is in Under Voltage protection status, Can the device enter in to sleep Mode?

    No. I recommend to see Figure 7-1. Operational Modes of the TRM for reference here.

    For any new questions, I would recommend to start a new E2E thread!

    Best Regards,

    Luis Hernandez Salomon

  • Luis Hernandez Salomon,

    Thankyou I have gone through the TRM as you suggested. I have few more questions

    1. I have couple of direct commands in my loop section  to measure voltages and Currents every sec Approx. Does this commands awake device from sleep Mode ?

    2. 13.4.2.1 Power:Sleep:Sleep Current: I see its unit is mA, is this really "mA" or UserA? How can device measure current directly in mA?

    3. 13.4.2.2 Power:Sleep:Voltage Time: This parameter sets how often the device wakes to measure voltages and temperatures. So this doesnt mean device will exit sleep after every this seconds right?

    4. 13.4.2.3 Power:Sleep:Wake Comparator Current : Do you mind elaborating this?. What is Wake comparator current?

    5. I will Write Default Alarm Mask , such that Alert Pin is active only when wake is detected and Clear Alert Status when I wish , So that Alert Pin becomes inactive. Now  If device  wakes up When Protection is triggered, and If I clear Alert status. Does this reactivate Alert Pin because of Active protection? No right?

    6.By reading Battery status registers, I came to know that device is exiting sleep mode, as soon as it entered sleep even with No protections triggered, Except direct commands or sub commands were used for measurements. I guess my MCU power supply consumption is causing this. Should i work on Sleep Current or Wake Comparrator current. Please comment on this

    Thanks & Regards

    Mounish

  • Hello Mounish,

    1. I have couple of direct commands in my loop section  to measure voltages and Currents every sec Approx. Does this commands awake device from sleep Mode ?

    No.

    2. 13.4.2.1 Power:Sleep:Sleep Current: I see its unit is mA, is this really "mA" or UserA? How can device measure current directly in mA?

    This is in mA. It will be based on the calibration values for your sense resistor, these are CC Gain and Capacity Gain, also described in the TRM.

    3. 13.4.2.2 Power:Sleep:Voltage Time: This parameter sets how often the device wakes to measure voltages and temperatures. So this doesnt mean device will exit sleep after every this seconds right?

    No, it just means that every second, it will take a burst of all measurements, so the values would get updated every second, while still being in SLEEP mode.

    4. 13.4.2.3 Power:Sleep:Wake Comparator Current : Do you mind elaborating this?. What is Wake comparator current?

    It is similar to Power:Sleep:Sleep Current but comparator-based to provide a faster transition from SLEEP to NORMAL mode. I'd recommend to read Section 7.3 SLEEP Mode of the TRM.

    5. I will Write Default Alarm Mask , such that Alert Pin is active only when wake is detected and Clear Alert Status when I wish , So that Alert Pin becomes inactive. Now  If device  wakes up When Protection is triggered, and If I clear Alert status. Does this reactivate Alert Pin because of Active protection? No right?

    You are correct, it won't unless you configure the ALERT pin to trigger when a protection is triggered, so I don't think that would happen here.

    6.By reading Battery status registers, I came to know that device is exiting sleep mode, as soon as it entered sleep even with No protections triggered, Except direct commands or sub commands were used for measurements. I guess my MCU power supply consumption is causing this. Should i work on Sleep Current or Wake Comparrator current. Please comment on this

    Possibly, for initial testing you could increase both of them to see if there's any change.

    Best Regards,

    Luis Hernandez Salomon