Other Parts Discussed in Thread: ENERGIA, MSP430G2553, BQ27441-G1, BQSTUDIO
Hello Tech Support,
Currently I’m Working On BQ27742-G1 Fuel Gauge. My battery configuration is 3.7 v 4400 mAh.
I have made sample code on MSP430 board using ENERGIA IDE.
I'm successfully CONNECTED To BQ27742-G1 using MSP430g2553 Launchpad.
I'm successfully write and Read some data as per below table.
Command |
Read / Write |
Hex or Data |
Device ID |
WRITE : DEVICE_TYPE |
0x01 |
READ : DEVICE_TYPE |
0x0742 |
|
State Of Charge |
WRITE |
0x2C |
READ |
64 (%) |
|
Voltage |
WRITE |
0x08 |
READ |
3948 (millivolt) |
Then after i'm try to set capacity of Battery to 4400 mAh So , i'm trying to write Extend data
offset =10 , data = 4000
Unseal the IC
i2cWriteBytes( 0x00 , 0x13 , 2) //config cca in control mode// arg (address, data, byte)
i2cWriteBytes(0x61, 00, 1) //enable block data memory control
i2cWriteBytes(0x3e, 82, 1); //Write class ID using DataBlockClass
i2cWriteBytes(0x3f, (offset/32), 1); // Write 32-bit block offset (usually 0)
i2cWriteBytes(offset + 0x40,&data , 2); // Write class ID using DataBlockClass()
seal the Ic
Hardware schematic as shown above.
when i'm applying vcc to pack+ my device is started and i get the vcc voltage at Pack+ then after i'm successfully read data.
But when i'm writing data the ic pack+ voltage level to 0 v.
In this case i have question that if I’m unseal the ic voltage avail at pack+ or not.??
Thanks and regards
kalarav