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.

BQ40Z80: Question about LED display and uploading software

Part Number: BQ40Z80
Other Parts Discussed in Thread: BQSTUDIO, EV2400

Hi TI team,

I've been looking to use the BQ40Z80 as a part of our new BMS system and I jsut have a few questions about the chip that confuse me a little.

When it comes to the LED display, we are planning to use 4 LEDs rather than 6 LEDs. This means that I can short the LEDCNTLC pin to VSS and use the remaining LEDCNTLx pins to controll the 4 LEDs, correct? Staying on the topic of the LEDs, I have read up that there is an option to allow the display of LEDs while charging, but is it possible to program the LEDs so that they can start iluminate in diffrent directions? Example being if the battery pack is upside down in the charger the LEDs will go from Left to Right, rather than Right to Left. 

The question I have which I have difficulty understanding right now is how could the BQ40Z80 be programmed? Do I need to use a small pogo-jig on the SMBus line in order to upload the code? Is there other pins that are in charge of flashing new program to the memory of the chip? And what would be the most efficient way of uploading a developed code in a production scenario? 

Kind regards,

Patryk. 

  • Hi Patryk,

    In terms of LED configuration, you should be able to remove two LEDs to go from 6 to 4. There is however no way to switch the direction that the LEDs light up.

    For programming the BQ40Z80, this can be done in development by using the EV2400 communications adapter and our BQStudio software. However, we do not support any tools for programming in production so this is something that must be done on your end.

    Thanks and let me know if you have any further questions,

    Jackson

  • Hi Jackson,

    Thank you for getting back to me.

    As for the EV2400, what kind of pins does it needs to be connected to? I haven't looked at the device yet. I will soon but even then I'd like to be reassured.  

    As for the LEDs, can the free GPIO pins be used for a programmed LED display? Sort of, something like LEDCHG mode but user defined and only operating while the battery pack is charging. 

    Patryk.

  • Hi Patryk,

    The EV2400 will connect directly to the SMBC and SMBD pins on the BQ40Z80.

    The GPIO pins can be driven high, low, or high-z when used in output mode as you would to drive an LED. This can be done with the GPIOWrite() command. You could implement this in a way where you set the GPIO to be low whenever you want the LED to be on. This command would have to be sent by a host in production.

    Thanks,

    Jackson