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.

bq76930: sample code to use bq76930 to achieve soc and cell balance feature

Part Number: BQ76930
Other Parts Discussed in Thread: TIDA-00449, BQ76940

Hello 

I will use bq76930 to be a AFE, i'm looking for sample code to use bq76930 to achieve cell balance, soc , voltage protection ... 

Is there anyone know where i can find such sample code to reference 

  • Hi Frank,

    Example code which provides a good SOC may not be available.  TIDA-00449 uses the bq76930 and includes code.  The design guide has a description of the code, scroll down to the Software section to find the firmware.  A voltage gauging example with a different monitor is described in the application report Multi-Cell Li-Ion Battery Management System Using MSP430F5529 and bq76PL536 which also has code available and may be a useful reference.

  • Hi WM5295,
    According to the "tiduar8b.pdf" chapter 4.2.6 - Firmware, it suggests to read ADC values (iSense) every 10ms and then we can get the CC value periodically.
    However, in another document "bq76940.pdf" chapter 7.3.1.1.3 - 16-Bit CC, it mentioned "A 16-bit integrating ADC. ............, The integration period for this reading is 250 ms."
    Why the two intervals are different (10ms and 250ms) that they are using the same BQ76930 AFE.
    Which interval should I use?

    thanks
  • Hi Liao,
    The TIDA-00449 has a feature with Q17 to read current using an ADC in the MCU rather than from the bq76930. The faster read possible from the MCU's ADC will give the system a finer resolution of how the current is behaving while the coulomb counter (16 bit integrating ADC) in the monitor will allow more resolution and accumulated charge but at a slower update. Use the interval appropriate for the measurement technique.