SLUAA04A june 2020 – may 2023 BQ25150 , BQ25155 , BQ25618 , BQ25619 , TS5A12301E , TS5A3157 , TS5A3159A , TS5A6542
For the communication implemented by this system the earbud acts as the slave. This prevents the earbud from entering communication mode while the case is in power mode. The earbud will only enter communication mode and transmit a message if it detects that the VIN_PGOOD_FLAG (register address 0x3) has been asserted and the internal ADC of the BQ25155 reads 0 V. This signals that the case has entered communication mode. Figure 4-1 is a flow chart of the earbud algorithm.
The earbud is first initialized to meet the user’s system requirements. Settings here include the charge current of the BQ25155, ADC conversion rate, etc. After Initialization the interrupts for the system are enabled. At this point the system is ready to start a charging cycle when it is connected to the case.
The following two tables show the registers that have been modified.
Name | Value | Purpose |
---|---|---|
ICHG_CTRL | 0x50 | Sets ICHG to 100 mA |
CHARGERCTRL0 | 0x92 | Disable Watchdog Timer |
ADCCTRL0 | 0x58 | Sets ADC to Continuous read at 3 mS per conversion |
ADCCTRL1 | 0x00 | Disable Comparators |
ADC_READ_EN | 0xFE | Enable ADC read channels |
Name | Value | Purpose |
---|---|---|
REG01(Charger Control 0) | 0x3A | Enable Boost Mode |
REG05(Charger Control 1) | 0x8E | Disable Watchdog timer |
REG06(Charger Control 2) | 0xC6 | Set boost voltage to 4.6 V |
After the system is initialized and connected to the case it will begin charging and wait to respond to communication cycles triggered by the case. While waiting on a communication cycle the earbud stores its battery voltage every .5 seconds. This must be done because when Vin goes to 0 to trigger a communication cycle the earbud battery voltage will sag slightly, taking a reading during this time will result in transmitting a voltage that is lower that charge voltage that is needed.
When case enters communication mode the input voltage will drop to 0 this will cause the BQ25155 to set a flag to indicate that Vin has dropped below an acceptable voltage and trigger an interrupt on its INT pin. This will trigger the ISR.