Hello!
I'm using bq27510 without external thermistor. I connected the resistance of 10K between the GND and the TS. Also connected 18K resistance between TC and BI / TOUT. I need to set a flag TEMPS register operation configuration in 0. I'm trying to rewrite the value in the data flash, but after writing the value and the checksum in BlockData and BlockDataCheckSum there was no transfer from BlockData to Data Flash. BQ is in unsealed mode.
I could not write the values in the data flash
Flags() = 0x0139
Status Control() = 0x0003
Battery voltage near 3.9V
Operation Configuration 0x0979. I need 0x0978.
if (w_1b_func(0x61,0x00)!= 0) { I2C_error(); }//write value 0x00 into 0x61
if (w_1b_func(0x3e,0x40)!= 0){ I2C_error(); }//write subclass 0x40 into 0x3e
if (w_1b_func(0x3f,0x00)!= 0) { I2C_error(); }//write offset 0x00 into 0x3f
if ( w_1b_func(0x41,0x78)!= 0) { I2C_error();}//write value 0x78 into 0x41
if (w_1b_func(0x60,0xCA)!= 0) { I2C_error(); }//write checksum.
What am I doing wrong?
I can't use EVM.
Sorry for my bad English.