hello.
I try to write G3 several parameter.(20 EA or more)
first
I send unseal...
//unsealed device
temp_cmd = CNTL_ADDR;
I2C_Data[0] = 0x14;
I2C_Data[1] = 0x04;
write_twi(BQ27510_ADDR, temp_cmd, 1, (uint8_t *)I2C_Data, 2);
WAIT_Ams(100); // 1 sec
temp_cmd = CNTL_ADDR;
I2C_Data[0] = 0x72;
I2C_Data[1] = 0x36;
write_twi(BQ27510_ADDR, temp_cmd, 1, (uint8_t *)I2C_Data, 2);
WAIT_Ams(660); // 1 sec
and.. Full access..
// full access mode
temp_cmd = CNTL_ADDR;
I2C_Data[0] = 0xFF;
I2C_Data[1] = 0xFF;
write_twi(BQ27510_ADDR, temp_cmd, 1, (uint8_t *)I2C_Data, 2);
WAIT_Ams(100); // 1 sec
temp_cmd = CNTL_ADDR;
I2C_Data[0] = 0xFF;
I2C_Data[1] = 0xFF;
write_twi(BQ27510_ADDR, temp_cmd, 1, (uint8_t *)I2C_Data, 2);
WAIT_Ams(660); // 1 sec
also Write function have delay 66 usec.
and I write parameter..
// Charging Voltage
BQ27510_value_set(Charging_Voltage_class, Charging_Voltage_offset, Charging_Voltage, Charging_Voltage_len);
//////////////////////////////////////////////////////////////////////////////////////////////////////////
// Taper Current
BQ27510_value_set(Taper_Current_class, Taper_Current_offset, Taper_Current, Taper_Current_len);
// Taper Voltage
BQ27510_value_set(Taper_Voltage_class, Taper_Voltage_offset, Taper_Voltage, Taper_Voltage_len);
// Initial_Standby
BQ27510_value_set(Initial_Standby_class, Initial_Standby_offset, Initial_Standby, Initial_Standby_len);
// CC_Threshold
BQ27510_value_set(CC_Threshold_class, CC_Threshold_offset, CC_Threshold, CC_Threshold_len);
// Design_Capacity
BQ27510_value_set(Design_Capacity_class, Design_Capacity_offset, Design_Capacity, Design_Capacity_len);
....
....
....
and so on....
3 item is successful...
but It can't read old data. and I2C error...
what's wrong?
I use datasheet BQ27520-G4 technical reference datasheet.
cause I can't find BQ27510-G3 and TI supporter recommend it.
he said "It is similar BQ27510-G3..."
same manner I use the function in it.
how long setting the time delay on it?