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.

BQ41Z50: How do you utilize the GPIO 1/2/3 pins?

Part Number: BQ41Z50
Other Parts Discussed in Thread: BQSTUDIO, BQ40Z50,

Tool/software:

Looking through the Technical Reference Manual (SLUUCP8) I see multiple ways to utilize the DISP and LEDxxx pins, but am having trouble finding how to configure/control the GPIO1, GPIO2, and GPIO3 pins.

See for example page 91 Chapter 11 General Purpose Input Output (GPIO) Capability which talks about the LED pins and the DISP* pin but makes no mention of the other three GPIOs.

These pins are also not available as choices for the "FLAG MAP SETUP" feature.

What am I missing here?

  • Hello,
    We are looking into this. I will get back to you. 

  • Hello,

    The GPIO1, GPIO2, and GPIO3 pins are available for the following IO features: PRES, EMSHUT, GPIO_PF, BTP, or DISP.

    For instance, GPIO3 pin 6 is used for BTP, and GPIO1 pin 9 is used for GPIO_PF. If we navigate to the bqStudio Data Memory Tab, we will see them defined. See below.  

    BTP-battery trip point functionality is described in TRM section 6.9. 
    GPIO_PF trips when a PF-permanent failure occurs. 



    Where "pin number" is the package pin number.

    LED pins mask and 0x48 GPIORead()/0x49 GPIOWrite() are restricted to port RL (pins 32, 3, 4, 7, 8) in terms of port RL mask.


  • So unlike GPIO4/5/6/7, you cannot take over the GPIO1/2/3 pins and use them for other purposes?

    The BQ41Z50 datasheet does not make that clear at all (possibly a holdover from BQ40Z50 documentation???)

    (Tangent - the BQ41Z50 docs also sometimes mention support for FIVE LEDs (versus 3), I assume this is also copy/paste syndrome?)

    In particular, what if someone needed the "PWM" capability that the datasheet lists?

  • Hi Kevin,

    The bq41z50 catalog FW comes with these pins defined. Repurposing them requires FW change. You might need to contact your local FAE for this. It takes a lot of effort to do this. 

    For LEDs, We mention 3-LEDs




    In particular, what if someone needed the "PWM" capability that the datasheet lists?

    GPIO2 is defined as Pulser pin and it is a hidden parameter. If you like to see how it functions, I can display it for you. 

    Please note that the BQ41z50 is a pre-RTM device as of now. The purpose of this is for customers to try it and leave feedbacks so we can improve it by official RTM. 

  • >>For LEDs, We mention 3-LEDs

    What I am highlighting is that some places it says 3 (correct) but there are places that still say "up to 5 LEDs" (incorrect).

    >>GPIO2 is defined as Pulser pin and it is a hidden parameter. If you like to see how it functions, I can display it for you. 

    My particular application does not require the PWM feature.

    If there is a "hidden parameter" that allows overriding the GPIO 1/2/3 pins to enable using them as GPIOs I would be interested in seeing it.

  • Hi Kevin,

    In order to repurpose GPIO 1,2, and 3 a FW change is required as stated in my last reply. These pins have the specified roles. Even if you change the pin number, it will still have the same role.

    Apologies for any confusions on current documentation. We will make it better for official RTM.