Author Topic: Compiling and understanding Hex codes for TI BQ20z80 chipset  (Read 149 times)

0 Members and 1 Guest are viewing this topic.

Offline DavepixTopic starter

  • Newbie
  • Posts: 4
  • Country: us
    • David Neff Photography
Compiling and understanding Hex codes for TI BQ20z80 chipset
« on: March 02, 2025, 06:23:37 pm »
I’m trying to understand how to create the hex codes necessary to change parameters as well as understand codes that are reported back by the BMS/chipset.

For example, how would I create a hex code to write parameters from the register below, say, to write ZVCHG1 and CHGLED high and all the rest low or is it when bit 3 is low it’s CHGLED and high would be SLEEP?

The particular code I need to modify is following and I do wish to modify ZVCHG and SVCHG0 between each of the four choices to see if what they are connected to operats correctly. Operation Cfg A = 1E60 also B and C take hex codes and I’m pretty clueless as to how 1E60 is derived from the below table or parameters.



Operation Cfg A
This register is used to enable or disable various functions on the bq20z80.  These bits are continued in B.
LEDR LEDRCACHGLEDDMODE   LED1   LED0   CC1   CC0
--SLEEPTEMP1TEMP0SLEDZVCHG1   ZVCHG0


n       ZVCHG1,0 [1,0]:   These bits are also known as Pre-Charge 1,0.  These bits are used to tell the bq20z80 how the Pre-Charge circuit is configured in the application.  In other words it tells the bq2z80 what pin on the bq29312A to use for Pre-Charge functions when required.
•         1,1 =  No action is taken in Pre-Charge functions with this setting.
•         1,0 =  OD pin is used for Pre-Charge functions.
•         0,1 =  Charge FET is used for Pre-Charge functions.
•         0,0 =  ZVCHG FET is being used for Pre-Charge functions
Normal Setting:  If using a separate Pre-Charge FET it is highly recommended not to use the OD pin for this function because it does not have good “zero volt charging” capabilities when a battery is completely dead.  Therefore the ZVCHG pin should be used because it has excellent clamping abilities.  The default is for using the Charge FET pin on the bq29312A.

Reference materials used to get this far, Texas Instruments tech docs:
slua334b.pdf
slua340c.pdf
slua342.pdf
slua350.pdf
slua359.pdf
slua364b.pdf
slua375.pdf
slua379e.pdf
slua381.pdf
slua382.pdf
slua421a.pdf
sluaa98.pdf
sluu276.pdf
sluu313a.pdf
sluuc94.pdf
slva208b.pdf

Programming BQ20z80 chipset with EV2300 and BQ Evaluation software
Device is an Elinchrom Lithium battery for Ranger Quadra Hybrid or ELB flash systems.
This chipset is also found on older Apple laptop batteries

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf