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.
Part Number: BQ27220
y customer want to use the default parameters setting in BQ27220 but only want to change the FCC from 3000mAH to 13200mAH.
After few rounds of configuration and calibration steps using BQstudio below, he managed to get the BQstudio => Registers page for FCC changed correctly from 3000mAH to 13200 mAH.1. RESET=> UNSEAL => UNSEAL_FULL_ACCESS => ENTER_CFG_UPDATE2. Change data memory => Gas Gauging => CEDV Profile 1 2.1) change Full Charge Capacity value from 3000 to 13200 2.2) change Design Capacity value from 3000 to 13200
3. Click Write_All option4. Start calibration process: 4.1) Calibrate CC Offset and Board Offset 4.2) Calibrate Voltage 4.3) Calibrate Current. (can see neg value), All Calibrate Gas Gauge is TICKED after calibration 4.4) EXIT_CFG_UPDATE5. Go the Registers page, a continuous Refresh show the Full Charge Capacity (FCC) value has changed from the default 3000mAH to 13200mAH.
1: Please let me know if my steps above is correct or missing any steps.2. Can I check if I can skip the calibration steps (all in step 4 above)? We have tried to skipped it, but the result is the FCC value in step 5 is not updated after that. Why is that so? If calibration accuracy is assume correct, why we cannot skip the calibration?
1: Please let me know if my steps above is correct or missing any steps.2. Can I check if I can skip the calibration steps (all in step 4 above)? We have tried to skipped it, but the result is the FCC value in step 5 is not updated after that. Why is that so? If calibration accuracy is assume correct, why we cannot skip the calibration? 3. My customer do not want to write to OTP after they generate the golden file but they want to be able to write this golden file to BQ27220 data flash at boot up of AM3352. Do you have any example source code to configure the BQ27220 via I2C at startup from the AM3352 Sitara processor?
In reply to Onyx Ahiakwo:
Thx, got the Gauge to work without calibration steps with the following steps:
2. UnSeal Full Access
3. Enter CFG Update
4. Change the Design Capacity & FCC -> Write ALL
5. Exit CFG Update REINIT (NOTE : Yesterday we were doing “Exit CFG Update”. This will not update the registers, strange!)
6. Both Design Capacity & FCC are updated correctly.
Question: Can you help me to check if I translate all this step into the below correctly?
Step 1. Unseal
wr 0x00 0x14
wr 0x01 0x04
wr 0x00 0x72
wr 0x01 0x36
Step 2. Unseal Full Access
wr 0x00 0xff
wr 0x01 0xff
Step 3: ENTER_CFG_UPDATE
wr 0x00 0x90 0x00
rd 0x3b Operationstatus();
Step 4: Change Design Capacity (DC)
wr 0x3E 0x9F
wr 0x3F 0x92
rd 0x60 Old_Chksum
rd 0x61 Data_len
rd 0x40 Old_DC_MSB
rd 0x41 Old_DC_LSB
wr 0x40 0x33
wr 0x41 0x90
temp = mod(255 – Old_Chksum – OLD_DC_MSB – OLD_DC_LSB, 256);
New_Chksum = 255 – mod(temp + 0x33 + 0x90, 256);
wr 0x60 New_Chksum
wr 0x61 Data_len
Step 5: Change FCC
wr 0x3E 0x9D
rd 0x40 Old_FCC_MSB
rd 0x41 Old_FCC_LSB
temp = mod(255 – Old_Chksum – OLD_FCC_MSB – OLD_FCC_LSB, 256);
wr 0x91 0x00
rd 0x3b OperationStatus();
wr 0x00 0x30 0x00
Q2: Is there a shortcut where I can change Design Capacity and FCC in one shot before I update the checksum?
Hope to hear from you soon.
Best regards, kpk
In reply to Poh Kok Keng:
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. 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 respect to these materials. 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.