Other Parts Discussed in Thread: BQSTUDIO
Greetings,
I am using the STM32L431RC microcontroller, with Bq76952 IC and trying to work with controlling the MOSFETs in test mode by writing the [FET_EN] bit in the Mfg Status Init register to 0x50. using the test code
void AFE_ManufacturingStatus(){
TX_4Byte[0] = 0x43; TX_4Byte[1] = 0x93; TX_4Byte[2] = 0x50; TX_4Byte[3] = 0x00;
I2C_WriteReg(0x3E, TX_4Byte, 4);
TX_2Byte[0] = Checksum(TX_4Byte, 4); TX_2Byte[1] = 0x06; // Checksum and Length
I2C_WriteReg(0x60, TX_2Byte, 2);
}
and enabling SLLEP_CHG bit in fet options using the test code
void AFE_FETOptions(){
TX_3Byte[0] = 0x08; TX_3Byte[1] = 0x93; TX_3Byte[2] = 0x1F;
I2C_WriteReg(0x3E, TX_3Byte, 3);
TX_2Byte[0] = Checksum(TX_3Byte, 3); TX_2Byte[1] = 0x05;
I2C_WriteReg(0x60, TX_2Byte, 2);
}
After giving the Fet_control(0x00) the Pre-Discharge, Charge, Discharge Mosfets are turned ON, and when it's stepped over the Pre MOSFETs are turned OFF. while the charge and discharge MOSFET is turned on without CHARGE_PUMP, I'm also turning ON the CHARGE_PUMP manually using the function.
void Charge_Pump(){
TX_3Byte[0] = 0x09; TX_3Byte[1] = 0x93; TX_3Byte[2] = 0x01;
I2C_WriteReg(0x3E, TX_3Byte, 3);
delayUS(1000);
TX_2Byte[0] = Checksum(TX_3Byte, 3); TX_2Byte[1] = 0x05;
I2C_WriteReg(0x60, TX_2Byte, 2);
}
- Are there any other configurations I need to look after?? or is the code I have written needs to be modified?
- what are the conditions I need to look for enabling All the MOSFETs with Charge Pump without Test mode? while the default conditions are set as such.
- Should I configure anything extra to make the MOSFETs turn on in normal mode with CHARGE_PUMP and why the pre-MOSFET's are turning OFF
2) I am also using BQ7695202 IC and where I could not perform any of the operations with the same code I did for BQ76952, what are the changes I need to do
Kindly Help.
Thanks and regards,
Rohith Sai S