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.
I am not using the evaluation software, but i am using a microcontroler with i2c to communicate with bq and I did already some writes and reads from flash I am using the bq34z100 and a I have a doubt about one of the steps to configure bq. In step 4, Determine the Sense Resistor Value, in the end is said that: The value of the current sense resistor should be entered into both CC Gain and CC Delta parameters in the Data Flash Calibration section of the Evaluation Software. In datasheet i see the position of this 2 registers in flash, but my doubt is what values i have to put in their, because i assume that is not just about put the value of resistor. My resistor is 1mOhm.
Can you help me?
You can use the document SLUA640, available for download from the TI website, to see an example of calibrating the current and finding the CC Gain and CC Delta. The typical bqEVSW value for these parameters will be the sense resistor value. E.g. “1” for 1 mohm.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to ThomasCosby:
After i implemented that example to calibrate the current, i ran very experiments and i couldnt made this work.With a fLoad=-1045 (1045mA) the result that i have reading the current register is 0x4B=43.It's obvious that this is wrong, in quantity and signal.So, firts of all i want to make some questions that i have about this process.
In the current:I read in others topics and i see some changes in the next formulas. I have this:
ccGain = fLoad/(e-adj_ccOffset); ccDelta = ccGain * 1193046.0f;
This is what is written in the document, is it what i really nead to make?
In the DF-write
Here have something wrong with the parenthesisShoul i use: tmp_val=2^(8-exp)*(val-128);ortmp_val=2^(8-exp)*val-128;
And finally, is proven that this document work in bq34z100 or exists some diferences that i should now?
In reply to jp_electric:
In reply to Drahomir Komar:
The floating point implementation is different from the standard algorithm and the document that I sent is all that I have to offer in calculating the values. The CC Delta and CC Gain are not the same and the document also provides a flow chart to calculate these parameters. The bq34z100 datasheet has a table that provides the data flash to EVSW conversion factors.
Dear AllNo one should take any notice of the flow diagram on page 8 of SLUA640, as it is full of errors.The F4 data type used to store values for CC Gain and CC Delta in flash with chips like the BQ34Z110 seems to be Xemics Floating Point. How it works is explained in How EVSW Display the Raw Data V1.03.pdfe2e.ti.com/.../How-EVSW-Display-the-Raw-Data-V1.03.pdfand there are VB functions (which do work) to convert in either direction between Xemics form in hex and the equivalent flash (not EVSW) decimal form on page 4 ofslva148a.pdfwww.ti.com/.../slva148a.pdfAll best,Tim.
In reply to Tim Rickman:
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.